RVM(1.20.12) does not install Ruby 2.0.0p195 but installs 1.8.7

104 views
Skip to first unread message

Nalesso Moreira

unread,
May 25, 2013, 11:46:28 PM5/25/13
to rubyversi...@googlegroups.com
Hello,
I am new to rvm, However I have never had this sort of issue.
My OS was Debian Lenny old-stable so that made me to migrate to Debian Wheezy x86_64 (stable).
 gcc   4.4.7-2
 git     1.8.1.2
 curl   7.21.0
 bash  4.1.5
 
After installing all the dependencies ruby needs I installed rvm:
 \curl -L https://get.rvm.io | bash -s -- --ignore-dotfiles

So far so good, However when I tried to install ruby 2.0

 rvm install ruby-2.0.0

Despite the fact it is not being compiled the installation finished without prompting any error, Therefore when I run:
 rvm 2.0.0
 ruby -v

It says:
 $HOME/.rvm/rubies/ruby-2.0.0-p195/bin/ruby: No such file or directory

As it shows, somehow it is not being compiled, Now I don't know how the lastest rvm works when installing ruby.
Therefore I started looking for the 'cure' 
What I came up with was:
 
 rvm install ruby-2.0.0 --with-gcc=gcc

When I do this it does compile and works perfectly.
Thereafter when I run:
 rvm 2.0
 ruby -v #=> ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]

It does not shows the error:
 $HOME/.rvm/rubies/ruby-2.0.0-p195/bin/ruby: No such file or directory

Okay it is working, but I am so curious why it works that I need to ask the ones more skilled than me.
Due to some hacking in the expectation of getting it to work, I have seen that when I type rvm install 2.0, it downloads ruby-2.0.0-p195.tar.bz2 and it renames it prepending  'bin'.
When I type rvm install 2.0 --with-gcc=gcc which downloads ruby-2.0.0-p195.tar.bz2 and does not prepend bin to its file's name.

Moreover, I installed ruby 1.8.7 and it worked perfectly, without using any flag.
What I have also noticed is that bin-ruby-2.0.0-p195 has a dir tree totally different than ruby-2.0.0-p195 .
Also rvm install 2.0.0 does not generate any blob_number_extract.log, _name.log, _install.log. However it generates blob_number_gem.install.log, _gemsets.initial.log, etc.
Whereas rvm install 2.0.0 --with-gcc=gcc generates all sorts of logs.

I am looking forward to hearing from you.

Kind Regards,

Antonio C Nalesso

Jabari Zakiya

unread,
May 26, 2013, 3:08:16 PM5/26/13
to rubyversi...@googlegroups.com


To check the rvm rubies that have been installed do:

$ rvm list

To select a ruby version to actually use you MUST do:

$ rvm use <ruby-in-list>

So if Ruby 2.0.0-p195 is in the 'rvm list' to use it do:

$ rvm use ruby-2.0.0

If you just do a  "$ ruby -v"  first, you will be see/use the ruby version supplied by the OS.
 

mpapis

unread,
May 26, 2013, 3:38:38 PM5/26/13
to rubyversi...@googlegroups.com
please open a bug report https://github.com/wayneeseguin/rvm/issues

Nalesso Moreira

unread,
May 26, 2013, 5:05:43 PM5/26/13
to rubyversi...@googlegroups.com
Thanks Jabari Zakiya,

It does show the rubies I have got installed. However when I '$ ruby -v' it says 'No such file or directory'.
That's why I found it very strange, because it installs but it is not compiling somehow and I do not know why.
Reply all
Reply to author
Forward
0 new messages