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
2 votes
1 answer
522 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), ...
WhipperHelp's user avatar
0 votes
1 answer
2k 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. ...
premg's user avatar
  • 1
5 votes
1 answer
4k 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: [...
user3447014's user avatar
1 vote
1 answer
2k 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 ...
Lyle Phillips's user avatar
1 vote
2 answers
4k 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....
Harshvardhan's user avatar
1 vote
0 answers
141 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 ...
tanius's user avatar
  • 6,293
1 vote
1 answer
6k 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'...
ChocolateOverflow's user avatar
1 vote
1 answer
364 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>&...
Loki's user avatar
  • 13
0 votes
1 answer
230 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 ...
Trey's user avatar
  • 202
0 votes
1 answer
561 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 ...
Reyneer Leon's user avatar
1 vote
1 answer
613 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 ...
canaryGrapher's user avatar
1 vote
0 answers
78 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 ...
Bhimasen Rautaray's user avatar
0 votes
1 answer
1k 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/...
Dipak's user avatar
  • 123
4 votes
2 answers
753 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 ...
Alireza's user avatar
  • 1,284
1 vote
2 answers
693 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 ...
current_user's user avatar
0 votes
0 answers
264 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 ...
czheng15's user avatar
1 vote
0 answers
1k 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: rake aborted! Don't ...
J. Doe's user avatar
  • 11
0 votes
2 answers
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... ...
user1869232's user avatar
0 votes
1 answer
636 views

How do you run Ruby scripts?

I installed Ruby on Synaptic Package Manager but when I double click a .rb file it just opens using Leafpad instead of running. I can't find Ruby in the start menu and when I type Ruby in LXTerminal ...
VistaRefugee's user avatar
0 votes
1 answer
295 views

How to list and remove files only if multiple conditions are met

This is on ubuntu 18.04. I have access to bash, pip3, and ruby gems on this machine. Trying to work with multiple mp4 files that were sent to us by VHS converter company. Each file has at least a ...
S Jenkins's user avatar
0 votes
1 answer
2k views

Failed to build gem native extension - Mastodon

I'm trying to install Mastodon (joinmastodon.org) on a Ubuntu 16.04 server. Firs I get this rbenv: version `2.5.3' is not installed (set by /home/mastodon/live/.ruby-version) I installed the 2.5.3 ...
Adrian's user avatar
  • 323
1 vote
1 answer
2k views

nokogiri installation error - mkmf.rb can't find header files

I get this following when I try to install nokigiri, Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. ...
Hasan's user avatar
  • 149
0 votes
0 answers
535 views

ruby works for normal users but not for root

I have an ubuntu 18.04 machine with ruby installed. I login with a user that is part of the www-data group and I am able to execute this: ruby myprogram.rb without any issue If I try to do sudo ...
Lelio Faieta's user avatar
1 vote
1 answer
3k views

Ubuntu 18.04: How to install Ruby1.9.1(ruby1.9.1-full, rubygems1.9.1, ruby1.9.1-dev)?

I have followed below steps to install Ruby1.9.1 on ubuntu 18.04 but it is showing latest ubuntu version after installation: Steps: sudo apt-get install ruby1.9.1-full sudo apt-get install rubygems1....
Swapnil's user avatar
  • 111
2 votes
1 answer
6k views

zlib1g-dev installation

I have been having issues with installing zlib1g-dev (I need it for rbenv to work). Apt will not install it, saying that I don't have the required dependencies (it doesn't say exactly which zlib1g i ...
nameless's user avatar
0 votes
1 answer
81 views

Why is libjs-jquery required by ruby2.3?

I just installed the package ruby in Xenial, and I noticed a couple of javascript packages where also required. Does anyone know why they are needed by ruby? Note that I have NOT installed ruby-on-...
kristianp's user avatar
  • 233
0 votes
0 answers
169 views

Ruby doesn't run on reboot

I have an Ubuntu 18.04 server, running Apache2, PHP, and Ruby 2.5.1. Everything works until I reboot, and then Ruby fails to run. ruby -v hangs as well as any other command, there is no error as Ruby ...
Daniel Porter's user avatar
0 votes
0 answers
2k views

can't install or uninstall Heroku on ubuntu 18

I am trying to run heroku on my terminal with heroku login command but everytime it show me this message Install the Heroku CLI from https://cli.heroku.com If i do heroku -v , heroku run rails c ...
Pooja Mokariya's user avatar
1 vote
0 answers
152 views

Can't update or remove ruby-net-telnet

Running Ubuntu 16.04. All other packages update fine but attempting to update or remove ruby-net-telnet returns errors Preparing to unpack .../ruby-net-telnet_0.1.1-2_all.deb ... Unpacking ruby-net-...
Daniel Schiavone's user avatar
1 vote
1 answer
284 views

Ruby version differs from the rbenv one in server

In my server (Ubuntu 16.04) I have two users: root and other. I want to config a Rails project. Now, after some configuration I installed the v2.5 version of Ruby (required) as a root user using ...
Kenny Horna's user avatar
2 votes
1 answer
3k views

Error while installing ruby on Windows Subsystem for Linux

I am trying to install Jekyll by following Jekyll on Windows Subsystem for Linux tutorial. There is a steep to install ruby from BrightBox repository. I had triggered following command: sudo apt-add-...
Kiran Shahi's user avatar
0 votes
0 answers
20 views

“Heroku-cli” isn’t output during verification process, how do I fix? I’ve even uninstalled

The issue I'm having is really throwing me here. While running through an installation process called Installfest, I started setting everything up with the Linux OS. I'm using Ubuntu in the Oracle VM. ...
erik's user avatar
  • 33
3 votes
2 answers
4k views

Ruby gem installation failed

I tried to install the gosu Ryby gem with $ sudo gem install gosu Building native extensions. This could take a while... ERROR: Error installing gosu: ERROR: Failed to build gem native ...
Shane.D's user avatar
  • 605
0 votes
1 answer
717 views

How to install last stable version of Ruby with RVM without root privileges?

I'm creating a bash script to install automatically the last stable version of ruby without root privileges. This is what I have so far: #Install GPG Keys curl -sSL https://rvm.io/mpapis.asc | gpg2 --...
Facundo Chambo's user avatar
1 vote
0 answers
119 views

AWS Instance with 30 GB RAM, still running out of Memory and High CPU usage with small app?

We are on 30 GB AWS instance running a Ruby on Rails app using Passenger + Apache. Though the App Postgres DB has millions of records, The DB size is few GB only. Now I am finding the server to ...
iCyborg's user avatar
  • 1,061
1 vote
1 answer
5k views

How to execute files with an ".install" extension?

Ubuntu 16 I'm currently trying to install Shoes GUI, and downloaded the Shoes for Linux file which has an .install extension, but double-clicking the file does nothing. I thought of the .install file ...
Partylover's user avatar
6 votes
1 answer
6k views

How to update ruby version to 2.5.1?

When I tried opening metasploit by msfconsole It showed an error rbenv: version `2.5.1' is not installed (set by /opt/metasploit-framework/.ruby-version) I tried rbenv install rbx-2.5.1 its ...
Afoolish Brat's user avatar
0 votes
1 answer
901 views

my bash terminal is showing unwanted message when starting

bash: source: /home/vj/.rvm/scripts/rvm: is a directory Recently I tried to install ruby on my PC. And after that installation every time am starting my terminal it is showing the above message. I ...
Vishnu Jeejo's user avatar
0 votes
1 answer
164 views

Install emacs and ruby [duplicate]

I'm a new user of ubuntu and I tried to install emacs and ruby but there is an error and I don't know how to resolve. The emacs error is this: E: Could not open lock file /var/lib/dokg/lock - open (...
Nayeli's user avatar
  • 1
1 vote
1 answer
953 views

how to proceed installation of ruby compass? [duplicate]

Error installing compass: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.23/ext/ffi_c /usr/bin/ruby2.3 -r ./siteconf20180226-6140-2ex61w.rb ...
Maksym Vitalyevich Malin's user avatar
1 vote
1 answer
380 views

Is it possible to add RubyMine to panel on Ubuntu 17.10?

I've downloaded RubyMine archive and extracted it into my home directory. When I execute ./RubyMine/bin/rubymine.sh, the IDE starts, and in Ubuntu panel, I can see RubyMine icon. When I right click on ...
Alex Zakruzhetskyi's user avatar
1 vote
1 answer
2k views

Error running - gem Install sass

Erro Log #gem install sass Building native extensions. This could take a while... ERROR: Error installing sass: ERROR: Failed to build gem native extension. /usr/bin/ruby2.2 -r ./...
Sudhakaran Rajendran's user avatar
1 vote
1 answer
1k views

How to install compass-normalize?

When compilation gulp I get the following error: LoadError on line ["55"] of /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- compass-normalize Run with --trace to ...
Владимир Владимирович's user avatar
4 votes
1 answer
22k views

E: Unable to locate package ruby!

Got this error message: [sudo] password for saeedeh: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ruby What should I ...
saeedeh's user avatar
  • 51
0 votes
0 answers
303 views

Script to change volume

I have a ruby script that lets me adjust the volume using a bash script. The script has worked for years, but now works intermittently. This is what I have tried. 1/26/18 I found another way to ...
fixit7's user avatar
  • 3,117
2 votes
1 answer
4k views

Error when trying install Ruby with RVM on Ubuntu 17.10 [duplicate]

I installed RVM in my Ubuntu 17.10 but when I try to install Ruby I have this error: $ rvm install 2.5.0 Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/...
Jacques Marques's user avatar
1 vote
1 answer
2k views

Updating rubygems

i want to install ruby gems on my linux machine. in the documentation it tell me to type this commands $ sudo gem install rubygems-update $ sudo update_rubygems this error goes up $ sudo ...
MaliciouSSymbol's user avatar
2 votes
1 answer
179 views

Is it safe to remove Ruby on 17.10?

I wanted to remove Ruby from my system as I do not use it. However, after past experience (removed Python 2.7 ...) I have learnt not to do so without checking the dependencies. The following packages ...
Ankur S's user avatar
  • 661
0 votes
1 answer
329 views

Location of ruby-gtk2 library files moved in 17.10?

I am trying to use Rubyripper (a CD ripping program that is downloadable from here: http://code.google.com/p/rubyripper) on Ubuntu 17.10. It is a script and a bunch of files; you install the ...
Andrew's user avatar
  • 283
1 vote
1 answer
2k views

How to uninstall Ruby which was build from source?

I wanted to install ruby version 2.2.3, so I downloaded the source and installed from there as per instructed here: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-...
Bmax's user avatar
  • 213

1
2
3 4 5
10