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
78 votes
3 answers
121k views

How to find and install latest Ruby version using RVM?

I finally got RVM working and now I would like RVM to install the latest stable ruby version. In the tutorial I am using they installed ruby 1.9.3 with command : rvm install 1.9.3 Now I want to ...
Private's user avatar
  • 3,954
67 votes
7 answers
170k views

Determine which version of a gem is installed?

Is there a way via CLI to determine which version number of a gem is installed on my machine? Similar to yolk -l for python? I'm trying to see if I have the latest version of compass / sass / zurb ...
chrisjlee's user avatar
  • 10.8k
31 votes
4 answers
73k views

How can I completely remove Ruby + Rails + Gems?

I have messed up my Ruby dev environment on Ubuntu 10.04. What is the best possible way to remove these packages from my system? Ruby All Gems RubyGems To start fresh, I would like to re-install ...
zengr's user avatar
  • 808
30 votes
3 answers
16k views

How to install jekyll?

According to the jekyll site, this is how you make a new website with jekyll: ~ $ gem install jekyll ~ $ jekyll new myblog ~ $ cd myblog ~/myblog $ jekyll serve gem install jekyll didn't work, nor ...
Jonathan's user avatar
  • 7,450
23 votes
5 answers
29k views

Install ruby 2.0 without ruby-switch?

I'm finding the task of installing ruby 2.0 on the latest Ubuntu 14.04 rather frustrating. I'm aware that I could forgo the packages and install from source - but I'd far rather install a package - ...
aSteve's user avatar
  • 459
23 votes
2 answers
45k views

Why do I need to run "/bin/bash --login"

I have just setup a new Ubuntu 13.10 server with ruby 2.1.1 installed through rvm. The problem is that whenever I switch to the user "rails" (the user I installed ruby and rails with) I have to run /...
Ole Henrik Skogstrøm's user avatar
21 votes
5 answers
40k views

How do you install less css command line compiler?

From my understanding and correct me if I'm wrong, I have to get ruby or NPM installed to get the less css compiler working. I don't have any ruby installed and I'm not really sure how to get my ...
chrisjlee's user avatar
  • 10.8k
20 votes
2 answers
61k views

How do you uninstall Ruby 1.8.7 and install Ruby 1.9.2?

Does anyone know how to properly uninstall Ruby 1.8.7 and install Ruby 1.9.2 on Ubuntu 11.10? I have thoroughly searched and none of the tutorials I've found have worked. Also, I spent a very long ...
Dmat00's user avatar
  • 235
17 votes
2 answers
59k views

Install ruby 2.2.3 via apt

How to install Ruby 2.2.3 via apt on Ubuntu Wily? I tried sudo apt-get install ruby2.2-dev and sudo apt-get install ruby2.2 (What's the difference, btw) and both commands seem to have installed quite ...
Michiel de Mare's user avatar
16 votes
4 answers
21k views

Install Ruby 2.0 with OpenSSL and ReadLine support

I have a fresh Ubuntu 12.04 VM, and I would like to install Ruby 2.0.0-p0. I am able to get Ruby installed easily enough, but I am unable to get gems to work. $ gem install bundler ERROR: Loading ...
Jarrett Meyer's user avatar
16 votes
2 answers
54k views

How do I upgrade to Ruby 2.2 on my Ubuntu system?

I’m using Ubuntu Linux. Below is the uname info myuser@myinstance:~$ uname -a Linux myinstance 3.18.0-52-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux I’m ...
Dave's user avatar
  • 2,095
14 votes
4 answers
42k views

How do I install ruby-rvm?

I want to install a rails environment on Ubuntu 11.04. I tried: $ sudo apt-get install ruby-rvm But got the error: Unable to locate package ruby-rvm My other PC has Ubuntu 11.10, and this works ...
Ben's user avatar
  • 390
14 votes
2 answers
62k views

WARNING: You don't have <a directory> in your PATH, gem executables will not run

I installed a tools package my friend recommended and this is what I keep getting when I try to upgrade. My system has also started freezing after I installed the tools. ryan1@ryan1:~$ sudo apt-get ...
user231939's user avatar
14 votes
7 answers
4k views

How do I set up Ruby on Rails?

I am interested in setting up a Ruby on Rails environment on my 10.10 laptop. Is there anything special I need to keep in mind for installation (i.e. that could be new or unique to 10.10)? Are ...
rifferte's user avatar
  • 686
14 votes
2 answers
38k views

Error when starting Redis server: "Address already in use"

I am trying to install redis, according to the instructions here : https://redis.io/download, but getting the error : Creating Server TCP listening socket *:6379: bind: Address already in use ...
Nomi's user avatar
  • 143
13 votes
2 answers
3k views

Why is it so difficult to setup Ruby on Rails on Ubuntu?

I've spent a few hours this morning trying to setup Rails on a fresh instance of Ubuntu and I noticed that the process is incredibly more convoluted than on Windows. On Windows I go to rubyinstaller....
Alexandr Kurilin's user avatar
11 votes
4 answers
42k views

How to set default to ruby 2.1.2?

I have ruby 1.9.3 and 2.1.2. When I open the terminal by default it uses ruby 1.9.3 but I want to use ruby 2.1.2. How can I set ruby 2.1.2 to be default?
Rasool's user avatar
  • 351
11 votes
5 answers
42k 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 ...
MH Sagar's user avatar
  • 397
11 votes
5 answers
15k views

Package for Ruby 2.0 on precise

Has there been any news from the maintainers of Ubuntu packaging of Ruby as to whether they'll be releasing a package for Ruby 2.0? If so, have they indicated whether they'll be releasing any packages ...
Andrew Grimm's user avatar
  • 1,314
11 votes
3 answers
15k views

Upstart tracking wrong PID of process - not respawning

I originally asked this question on StackOverflow. Then realised that this is probably a better place. I have bluepill setup to monitor my delayed_job processes. (Ruby On Rails application) Using ...
Anjan's user avatar
  • 220
11 votes
3 answers
13k views

/sbin/getty process causing 100% CPU utilization

I have an instance of Ubuntu 12.04 LTS (GNU/Linux 3.2.0-25-virtual i686) running as a KVM-VM on a host-machine that runs one more VM beside it. I deploy a Ruby on Rails application using the ...
scrrr's user avatar
  • 761
10 votes
2 answers
2k views

Jekyll broken after upgrading Ubuntu/Ruby

I use Jekyll on my Ubuntu laptop. It worked with 15.10. I've upgraded to 16.04 and I got this error message : $ jekyll -v bash: /usr/local/bin/jekyll : /usr/bin/ruby2.1 : bad interpreter: no file or ...
Samuel's user avatar
  • 223
10 votes
4 answers
57k views

rvm /usr/bin/env: ruby no such file error

I've installed rvm + ruby systemwide. which ruby /usr/local/rvm/rubies/ruby-2.1.1/bin/ruby and: /usr/bin/env: ruby: No such file or directory Everything else works fine, putting direct path of ...
user avatar
10 votes
1 answer
11k views

Cannot install sqlite3

OS: Ubuntu 12.04 LTS $sudo apt-get install libsqlite3-dev The following packages have unmet dependencies: libsqlite3-dev : Depends: libsqlite3-0 (=3.7.9-2ubuntu1) but 3.7.9-2ubuntu1.1 is to be ...
CodeFarmer's user avatar
9 votes
2 answers
13k views

Installing MySQL Ruby Gem

Hi I am unsuccessfully trying to install MySQL Gem on Ubuntu 10.04. I have tried the following commands: sudo gem install mysql sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config I ...
sharmil's user avatar
  • 191
9 votes
2 answers
12k views

How to access the Ruby Command line in ubuntu 14.04?

I have Installed Ruby On Rails of version 2.1.3p242 on my system. But I can't findout the ruby command line. I have searched but not found. I have try to to check through man ruby : Show some ...
Nishant's user avatar
  • 211
9 votes
3 answers
28k views

How do I update to the latest version of SASS?

This is really stupid but I've been Googling for an hour now and can't find the answer. I'm on Ubuntu 10.10, and I'm trying to update to the latest version of SASS so that I can use an @import rule ...
powerbuoy's user avatar
  • 337
8 votes
2 answers
7k views

How can I get gedit ready for programming in Ruby and Ruby on Rails?

I'd like to know which gedit plugins I could install to make programming for Ruby and Ruby on Rails easier?
vhbsouza's user avatar
  • 448
8 votes
1 answer
9k views

Can't install Rails on Ubuntu 16.04

i'm noob. This is my problem when i try. Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. current directory: /...
Alekx Yánez's user avatar
8 votes
2 answers
25k views

How would you install OpenSSL package for Ruby?

I have trouble finding the package for this software. I built and installed from the packages found here, but it's still not working properly with rvm and gem (log is located here). How would you ...
stanigator's user avatar
8 votes
2 answers
29k views

OpenSSL installed, but Ruby unable to require it

I'm trying to setup github-pages on my Ubuntu laptop, and following the guide provided by Github I have to install the bundler package; giving the command ~$ gem install bundler returns me this ...
user avatar
8 votes
2 answers
52k views

How to get /usr/bin/env ruby to point to the correct ruby environment?

So I was making a cgi ruby script and had the following at the top of the script file: #!/usr/bin/env ruby require 'rubygems' require 'action_pack' require 'cgi' After a couple of hours of not ...
Nona's user avatar
  • 263
8 votes
1 answer
4k views

Installation of capybara-webkit ruby gem

I have following errors when I try to install capybara-webkit ruby gem Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/s/.rvm/rubies/ruby-1.8.7-p371/bin/...
Sergei Struk's user avatar
8 votes
5 answers
11k views

"no such file to load -- zlib" error when installing a gem [closed]

When I decided to install gem in ubuntu yesterday ( with this command : sudo gem install algorithms ) , bash gave me an error. How can I install gem in ubuntu like that installing on windows ? *******...
user avatar
8 votes
0 answers
277 views

Installing only ruby 1.9 [duplicate]

Possible Duplicate: How do I set up Ruby on Rails? It seems that if I do an "sudo apt-get install ruby-full build-essential" the Ruby is installed with version 1.8. How can I install only ...
Pablo's user avatar
  • 249
7 votes
5 answers
27k views

foreman: command not found

I am following this tutorial of Heroku. I installed foreman with sudo gem install foreman but when I try to use this in the terminal with command foreman this returns foreman: command not ...
Daniel Flores's user avatar
7 votes
2 answers
1k views

How do I get "ruby" to do what "ruby1.9.1" does?

I want to start off by saying... I really don't need to be using 1.9.2. I understand that you don't ever, ever use Python 3.2, so if the common advice is that I should use 1.8, I'll do that. But don't ...
Daniel's user avatar
  • 1,899
7 votes
2 answers
2k views

How to 'cd' to a directory found with 'find'?

I have a file in gmail.rb in the below directory: root@ubuntu:~# find / -name gmail.rb|more /media/aruprakshit/FA686DE4686DA05D/Rubyscript/gmail.rb But when i am trying to reach to the Rubyscript ...
Arup Rakshit's user avatar
6 votes
2 answers
19k views

How to install ruby 1.8.7 back on Ubuntu 14.04 after upgrade?

Upgrading to 14.04 removed my ruby 1.8.7. I need it back. :) Badly. Some old projects still rely on it. Gems seems to be left untouched. How do I install ruby 1.8 back while still keeping Ubuntu 14....
user272449's user avatar
6 votes
3 answers
5k views

How to install Ruby Ripper, or another app that does MP3s through a GUI

I have tried to install ruby ripper various times (raring) using code pasted from the internet. everytime i get to sudo apt-get install rubyripper, i get this back: E: Unable to locate package ...
bruce's user avatar
  • 2,887
6 votes
1 answer
8k views

Can't install gems from behind proxy

I'm running 12.04 in a VM, and I am behind a corporate proxy. I've got the environment variables set (tried both all lower and all upper case for [http|https|ftp]_proxy, as well as not specifying the ...
Lee Lowder's user avatar
6 votes
2 answers
676 views

installing ruby 1.9.2 for octopress

So, I am trying to install Octopress. I need ruby 1.9.2. It looks like sudo apt-get install ruby wants to install ruby 1.8. I've read that RVM is a good way to go. But it seems rather excessive since ...
Seamus's user avatar
  • 926
6 votes
1 answer
8k views

Can't install json 1.8.1

I'm trying to install json gem using ruby 2.2.3 (I've tried with other oversions), and I always get the same error: Fetching: json-1.8.1.gem (100%) Building native extensions. This could take a ...
mishelashala's user avatar
6 votes
3 answers
503 views

Is it possible to update the app indicator from code?

I use ruby-libappindicator bindings to manage ubuntu application indicators. I want to indicate if port 3000 is used by any application. Port checking isn't a problem but I also need to update the ...
freemanoid'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
5 votes
4 answers
17k views

How to install Elasticsearch on 16.04 LTs

I have Ubuntu 16.04 LTS on virtual box and I'd like to install elasticsearch in order to use it with Ruby on Rails. I've done a search on google on how to do the installation, but I have found mutiple ...
ltdev's user avatar
  • 597
5 votes
3 answers
22k views

How to downgrade Ruby on Ubuntu?

I'm running Ubuntu 16.04. My ruby version is: ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu] How can I downgrade ruby to version 2.1 to be in line with the rest of my development team (some of our ...
Jasper Citi's user avatar
5 votes
1 answer
38k views

GNU Make not found - How to install GNU Make on 12.04

We have set up an Ubuntu 12.04 LTS server for RoR. We did successfully install rvm and git. However installation failed with rvm for zlib and ruby 1.9.3. Here is the error log for $rvm install 1.9.3: ...
user938363's user avatar
5 votes
5 answers
68k views

Can't install a Ruby package: Failed to build gem native extension

I installed ruby 2.1.0 and package pdfbeads on 32bit 12.04 last year following the blog https://railssavvy.wordpress.com/2012/06/02/install_ruby_and_rails/, and it worked. Now it seems that I have ...
Tim's user avatar
  • 25.2k
5 votes
1 answer
7k views

How to install ruby?

I am pretty new to ruby world and I don't know about installing it. Viewing methods from blogs with google search but feeling confuse. Could somebody help me to setup ruby in my Ubuntu 13.10?
Raja G's user avatar
  • 102k

1
2 3 4 5
10