$ sudo apt-get install libtool
[sudo] password for johndoe:
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 2%
Reading state information... Done
The following extra packages will be installed:
autotools-dev libltdl-dev
Suggested packages:
libtool-doc autoconf automaken gfortran fortran95-compiler gcj
The following NEW packages will be installed:
autotools-dev libltdl-dev libtool
0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
Need to get 793 kB of archives.
After this operation, 2572 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
0% [Working]
Get:1 http://ftp.debian.org/debian/ squeeze/main autotools-dev all 20100122.1 [71.9 kB]
0% [1 autotools-dev 4044 B/71.9 kB 5%]
9% [Waiting for headers]
Get:2 http://ftp.debian.org/debian/ squeeze/main libltdl-dev amd64 2.2.6b-2 [197 kB]
11% [2 libltdl-dev 17.3 kB/197 kB 8%]
33% [Waiting for headers]
Get:3 http://ftp.debian.org/debian/ squeeze/main libtool amd64 2.2.6b-2 [524 kB]
34% [3 libtool 640 B/524 kB 0%]
100% [Working]
Fetched 793 kB in 1s (494 kB/s)
Selecting previously deselected package autotools-dev.
(Reading database ...
(Reading database ... 5%
(Reading database ... 100%
(Reading database ... 86827 files and directories currently installed.)
Unpacking autotools-dev (from .../autotools-dev_20100122.1_all.deb) ...
Selecting previously deselected package libltdl-dev.
Unpacking libltdl-dev (from .../libltdl-dev_2.2.6b-2_amd64.deb) ...
Selecting previously deselected package libtool.
Unpacking libtool (from .../libtool_2.2.6b-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up autotools-dev (20100122.1) ...
Setting up libltdl-dev (2.2.6b-2) ...
Setting up libtool (2.2.6b-2) ...
$ rvm pkg install libyaml
Fetching yaml-0.1.4.tar.gz to /home/johndoe/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/johndoe/.rvm/src
Configuring yaml in /home/johndoe/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/johndoe/.rvm/src/yaml-0.1.4.
Installing yaml to /home/johndoe/.rvm/usr
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
$ rvm reinstall all --force
Removing /home/johndoe/.rvm/src/ruby-1.9.3-p194...
Removing /home/johndoe/.rvm/rubies/ruby-1.9.3-p194...
ruby-1.9.3-p194 - #configure
ruby-1.9.3-p194 - #download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
11 9871k 11 1103k 0 0 699k 0 0:00:14 0:00:01 0:00:13 741k
50 9871k 50 4991k 0 0 1924k 0 0:00:05 0:00:02 0:00:03 1993k
100 9871k 100 9871k 0 0 2960k 0 0:00:03 0:00:03 --:--:-- 3043k
ruby-1.9.3-p194 - #extract
ruby-1.9.3-p194 - #validate
Libraries missing for ruby-1.9.3-p194: libruby.so.1.9. Refer to your system manual for installing libraries
Mounting remote ruby failed, trying to compile.
Installing Ruby from source to: /home/johndoe/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /home/johndoe/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /home/johndoe/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring
ruby-1.9.3-p194 - #compiling
ruby-1.9.3-p194 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.24 for ruby-1.9.3-p194 ...
Installation of rubygems completed successfully.
Saving wrappers to '/home/johndoe/.rvm/bin'.
ruby-1.9.3-p194 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p194 - #importing default gemsets (/home/johndoe/.rvm/gemsets/)
Install of ruby-1.9.3-p194 - #complete
Making gemset ruby-1.9.3-p194 pristine.
Making gemset ruby-1.9.3-p194@global pristine.
$ rvm reinstall 1.9.3
Removing /home/johndoe/.rvm/src/ruby-1.9.3-p194...
Removing /home/johndoe/.rvm/rubies/ruby-1.9.3-p194...
ruby-1.9.3-p194 - #configure
ruby-1.9.3-p194 - #download
ruby-1.9.3-p194 - #extract
ruby-1.9.3-p194 - #validate
Libraries missing for ruby-1.9.3-p194: libruby.so.1.9. Refer to your system manual for installing libraries
Mounting remote ruby failed, trying to compile.
Installing Ruby from source to: /home/johndoe/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /home/johndoe/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /home/johndoe/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring
ruby-1.9.3-p194 - #compiling
ruby-1.9.3-p194 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.24 for ruby-1.9.3-p194 ...
Installation of rubygems completed successfully.
Saving wrappers to '/home/johndoe/.rvm/bin'.
ruby-1.9.3-p194 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p194 - #importing default gemsets (/home/johndoe/.rvm/gemsets/)
Install of ruby-1.9.3-p194 - #complete
Making gemset ruby-1.9.3-p194 pristine.
Making gemset ruby-1.9.3-p194@global pristine.
johndoe@vps-1108479-11741:~$ rails -v
/home/johndoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Rails 3.2.3
$