Questions tagged [ruby]

A dynamic, open source programming language with a focus on simplicity and productivity. (quote: ruby-lang.org)

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

rbenv not allowing me to use ruby commands

I tried installing rbenv in my ubuntu 18.04 server and it worked (shows list of versions, locally or globally) but ruby -vreturns mr2552@ip-10-5-121-225:~$ ruby -v Command 'ruby' not found, but can ...
0
votes
0answers
18 views

How do I completly remove jekyll, ruby, and all ruby gems?

I don't know much about ruby. I was trying to get jekyll running on this computer a few months ago. I remember that I installed jekyll and several ruby gems following different tutorials and without ...
0
votes
0answers
43 views

Installing RVM from a non-root user will not work

I've installed a new droplet with Ubuntu 20.04, and I've added a non-root user, and switched to it. Installation (https://github.com/rvm/ubuntu_rvm): sudo apt-get install software-properties-common ...
1
vote
0answers
71 views

SocketError: sockaddr resolved to multiple nodename

ruby build is failing with error make spec failing, Any input on this will be useful I am using Build language: c Build dist: bionic Build id: 764199404 Job id: 764199405 Runtime kernel version: 5.4.0-...
1
vote
1answer
226 views

Have two different OpenSSL versions installed for rbenv - Ubuntu 20.04

I want to have two different OpenSSL versions in my OS. Right now, openssl version -v returns OpenSSL 1.1.1f 31 Mar 2020 I want to have OpenSSL 1.0.2 as well, for I need to install Ruby 2.2.10 with ...
1
vote
0answers
35 views

Problem in generating a GNU screen session with Ruby in Ubuntu 20.04

I have a workstation with Ubuntu 20.04 installed where I'm facing problem in generating GNU screen session inside a ruby script. The Ruby script has to generate a new GNU screen session with a custom ...
2
votes
1answer
269 views

Ruby seems to have messed up APT

I recently added the Backbox ppa to install a few security tools. The packages updated and downloaded flawless how ever now everytime I run any apt command I get the below: Traceback (most recent call ...
0
votes
1answer
113 views

Can't install ruby due to missing packages

I am trying to install Ruby for the purposes of using Jekyl for static site generation. I'm following the instaructions at https://www.ruby-lang.org/en/documentation/installation/ and found an ...
1
vote
1answer
122 views

How to install curl development dependencies Ubuntu 20.04

Was trying to run bundle install for a Ruby on Rails project which required gem curb. Here's what happened: gem install curb Fetching curb-0.9.11.gem Building native extensions. This could take a ...
0
votes
0answers
88 views

Sonic Pi boot error (3.2.2 on ubuntu studio 20.04)

I'm trying to install sonic pi in its latest version 3.2.2 there is no official support.. I installed the deb file from a super user named robin newman: https://in-thread.sonic-pi.net/t/sonic-pi-3-2-2-...
0
votes
1answer
106 views

Can't open Rails console after upgrading to Ubuntu 20.04, libreadline.so.7 not found

Last night I updated Ubuntu from 18.04 to 20.04 . I'm a Ruby on Rails developer and I haven't been able to launch Rails console since the update. I'm getting an error related to libreadline.so.7 . I'...
0
votes
0answers
31 views

Using bundle clean command in Ubuntu

In setting up an academic page, I am supposed to execute the command bundle clean on my Ubuntu Terminal. I first changed my current directory to the github folder and then tried to execute this ...
0
votes
0answers
24 views

Unable to install ruby libpq-dev [duplicate]

I am trying to bundle install a Ruby project, the install fails when trying to install a gem and it says: An error occurred while installing pg (1.2.3), and Bundler cannot continue. Make sure that '...
0
votes
0answers
80 views

Installing Ruby with asdf-vm failes with error

I'm using asdf-vm to install Ruby (Ruby plugin). When I try to install I"m getting the following errors: Downloading ruby-2.7.2.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7....
2
votes
3answers
3k views

libffi.so.7: cannot open shared object file: No such file or directory

I just upgraded to ubuntu 20.10 and when I tried to work with rails app that was working perfectly fine earlier started to show this error. LoadError: libffi.so.7: cannot open shared object file: No ...
2
votes
1answer
309 views

Command 'ruby' not found after successful installation using rbenv on Ubuntu 20.04

Please pardon my errors (if any) as this is my first question here. I just successfully installed ruby on my Ubuntu 20.04 following this guide: https://github.com/jhu-ep-coursera/fullstack-course1-...
0
votes
0answers
57 views

Installing newer Jekyll on Ubuntu 16.04

I tried to install Jekyll today on my old Ubuntu 16.04. I followed the guide to install using gem, and it complains about the following error messages. Building native extensions. This could take a ...
0
votes
1answer
175 views

Gem::LoadError: Specified 'mysql' for database adapter,

I am trying to run rake db:setup for my old rails project and it is throwing the following error. `rake aborted! Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add `...
0
votes
1answer
444 views

Installing fpm on Ubuntu 20.04

I tried to install ruby2.3 on Ubuntu 20.04. sudo apt install ruby2.3 failed as it is unable to locate package ruby2.3. I then tried installing via snap: $ sudo snap install ruby --classic $ sudo snap ...
1
vote
1answer
318 views

Ubuntu upgrade error (16.04 > 18.04). “Please install all available updates for your release before upgrading”. No update seems to be available

First of all, sorry for the long question. I have tried the following set of commands to upgrade my 16.04 to 18.04. The end result is "Please install all available updates for your release before ...
1
vote
2answers
167 views

How to script the startup of an app using multiple precursory values?

I have a webapp I'd like to start with a script, rather than open 3 tabs and start the processes, then change a line to a config file, and then start the web server. First, so I can test webhooks, I ...
0
votes
0answers
1k views

Make failed error when installing mysql2 with version 0.5.3 gem on ubuntu 20.04

Make failed when installing mysql2 with version 0.5.3 gem on ubuntu 20.04 . The complete details and output are as below. workarounds tried before installing Installed libmysqlclient-dev using ...
0
votes
1answer
54 views

I installed chruby/ruby-install on Ubuntu 20.04: cannot execute ruby from within bash-script

I have a ruby setup from here: installation_ruby now when I run a gem inside of a bash-script I get the following error: /usr/bin/env: »ruby“: Datei oder Verzeichnis nicht gefunden Diverse tips on ...
0
votes
0answers
358 views

Error while trying to start my rails server on Ubuntu

After installing and creating my rails project, I tried starting up the server with 'rails s' and got the following error: Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem ...
0
votes
0answers
869 views

Nginx not accessible from external IP

Forgive the totally n00b question, but I'm pulling my hair out at this. I followed this tutorial to deploy a rails app on an Ubuntu 18.04 headless server. I'm using Phusion Passenger and Nginx to ...
0
votes
0answers
22 views

RubyMine doesn't recognize user created environment variables [duplicate]

TLDR: Basically RubyMine does not recognize any user created environment variable when launched from a desktop entry, but when launched from console (using $ mine) it can recognize all the environment ...
0
votes
0answers
39 views

RVM loses settings after reboot

I am an amateur at ruby, and new to RVM, so very possibly I'm missing something already documented... I just wiped my ubuntu 19.10 system and freshly installed 20.04 desktop. The RVM setup I had ...
0
votes
2answers
434 views

sudo apt install ruby not working

When running sudo apt install ruby or sudo apt install ruby-full And checking ruby -v I get the error: user@C-Ubuntu:~$ ruby -v Command 'ruby' not found, but can be installed with: sudo snap ...
-1
votes
0answers
72 views

Can not install gem bundle because of massing path variable

I need to install bundle for ruby. I installed ruby as explained in the wiki. But if I execute gem install bundle, I revieve: WARNING: You don't have /root/.gem/ruby/2.7.0/bin in your PATH, gem ...
0
votes
0answers
85 views

will upgrading ubuntu to 16.04 change my ruby version?

Will upgrading ubuntu version from 14.04 to 16 upgrade my ruby version 1.9.3 to its latest? I don't mind keeping multiple versions but it shouldn't delete the old one. These are the upgrade steps I ...
1
vote
0answers
567 views

Problem installing a ruby gem on Ubuntu 16.04

I have a problem installing a Rubygem pdfbeads on my Ubuntu 16.04 and wonder if anyone could help. I never used or ran ruby before, but I needed this gem as it is required within a DJVU-to-PDF file ...
2
votes
1answer
801 views

Problem with accessing an installed ruby gem package from a shell script under Ubuntu 16.04

I used snap to install the latest version of ruby under Ubuntu 16.04 $ sudo snap install ruby --classic $ which ruby /snap/bin/ruby $ ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-...
2
votes
1answer
321 views

Why no support for Whipper - cd ripping software?

Curious why Whipper isn't available from Ubuntu repos? You may be curious why I'm after that when there is other software out there. Well, it and RubyRipper were developed after ExactAudioCopy (EAC), ...
0
votes
1answer
1k views

install ruby 2.3.1 - Ubuntu 19.10 - Build Failed

I am new to Ubuntu and Ruby installation, and Linux installation in general. I'm getting the below output when i try to install Ruby 2.3.1 via rbenv. Any idea what the issue could be? Many thanks. ...
3
votes
1answer
2k views

Running desktop shortcut just opens it in text editor

I've looked at some other stackexchange questions pertaining to this topic, but for whatever reason I still cannot get to a resolution. This is the simple test.desktop file I have on my desktop: [...
0
votes
1answer
1k views

Intsalling ruby 1.9.3-p551 on Ubuntu 18.04

I am trying to install a older ruby version using rbenv. $ rbenv install ruby 1.9.3-p551 I'm getting this error BUILD FAILED (Ubuntu 18.04 using ruby-build 20191004) Inspect or clean up the ...
1
vote
1answer
2k views

Cannot utime: Operation not permitted

I am trying to install rvm when in run the command \curl -sSL https://get.rvm.io | bash -s stable I get: Downloading https://github.com/rvm/rvm/archive/1.29.9.tar.gz Downloading https://github....
1
vote
0answers
50 views

How can I manage all my Ruby gems as Ubuntu packages?

Whenever I have to install Ruby software on our Ubuntu based webserver, I run into a new gem package manager problem that I never saw with Ubuntu packages. By now I really hate it, and got the idea ...
1
vote
1answer
4k views

How to upgrade Ruby to version >=2.4.4 on Ubuntu 16.04? (for wpscan)

I'm currently on Ubuntu 16.04. I'm trying to install wpscan. I already have ruby but it's v.2.3.1 (default). I've tried both suggested methods, gem install wpscan and "from sources". In both cases, I'...
1
vote
1answer
125 views

Why doesn't sudo crontab work but crontab works?

I want to execute a ruby script containing sudo commands. If I enter this command in " crontab -e ", it works fine: * * * * * /usr/bin/ruby ~/myfolder/test.rb >> ~/myfolder/mylog.log 2>&...
0
votes
1answer
79 views

Uninstalling old xenial Ruby gems after bionic upgrade

When I upgraded to Bionic, Ruby was upgraded from its default Xenial version 2.3 to its default Bionic version 2.5. That means that Ruby gem-provided programs that I installed via gem install no ...
0
votes
1answer
302 views

How to install Rails?

I can't find this specific error in the web but when typing sudo gem install rails -v 5.2.2 I get the following error: nysa@nysa-System-Product-Name:~$ sudo gem install rails -v 5.2.2 Fetching ...
1
vote
1answer
440 views

Cannot connect mySQL to Ruby on Rails on Ubuntu 19.04

I am facing difficulties in installing Ruby Gems on my Ubuntu 19.04 Whenever I try to install the gem, I get make failed, exit code 2. However, MySQL is correctly installed on my OS. And even Ruby ...
1
vote
0answers
46 views

elasticsearch issue in ubuntu 18.04

I have a Ubuntu 18.04 system with 4 GB RAM and 500 GB hard disk. I have installed elastic search in my system with : sudo apt-get install elasticsearch but while starting an elastic search with ...
0
votes
1answer
892 views

Ruby on Rails on Ubuntu 19.0.4 crashing

How to add following dependencies to start my rails server: While starting the server using following command bin/start thin getting following error message: /usr/share/rvm/rubies/ruby-2.3.1/lib/ruby/...
2
votes
1answer
303 views

Why Vagrant fails after OS upgrade?

Multiple packages upgraded like gem, ruby and its plugins. Now when I run vagrant up I get: Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may ...
1
vote
2answers
226 views

Redirect to 'www' prefix domain using nginx

I brought a domain in godady and I have Installed Passenger + Nginx on a Linux/Unix(Ubuntu) server and deployed a Ruby app. Now my domain looks something like http://example.com when I try to request ...
0
votes
0answers
140 views

Problems with text editors on ubuntu

So, I am new to Ubuntu, which is required for my CS course that primarily focus on ruby and Ocaml. The problem that I'm having is that whenever I try to open up the project file with command "ruby ...
1
vote
0answers
626 views

Ruby on Rails, db commands missing from rake

I am trying to create a database with the following command: bundle exec rake db:create but, that command is missing along with all the other db commands. The error I get is the following: rake ...
0
votes
2answers
2k views

gem install failure

I am trying to install an instagram-crawler by using the gem command: gem install instagram-crawler But I am receiving the following error: Building native extensions. This could take a while... ...

1
2 3 4 5
10