Page 1 of 1

[SOLVED] Install and use rvm (Ruby Version Manager)

PostPosted: Jun 4th, '13, 09:07
by marcusmau
Hello,
I will use rvm to run many ruby on rails app with different version of ruby. To do that, I have installed ruby-rvm with MCC but after, when I need to use it, I can't :
with my username
Code: Select all
[marc@erato ~]$ rvm
bash: rvm : commande introuvable

or root :
Code: Select all
[root@erato marc]# rvm
bash: rvm : commande introuvable

What have to I make after install to use rvm ?
Merci

Re: Install and use rvm (Ruby Version Manager)

PostPosted: Jun 4th, '13, 16:40
by tom_
well,
I'm not an ruby user so I cannot help you,
however I found this link, probably it can clarify the situation for you:

https://bugs.mageia.org/show_bug.cgi?id=6959

bye

Re: Install and use rvm (Ruby Version Manager)

PostPosted: Jun 4th, '13, 17:02
by marcusmau
Hello, I know this bug because I was the reporter. I have open a topic in french http://www.mageialinux-online.org/forum/topic-15429+installation-et-utilisation-de-rvm-ruby-version-manager.php. I think that the ruby-rvm package is the gem and the rvm script have not the same use. (excuse my poor english)

Re: Install and use rvm (Ruby Version Manager)

PostPosted: Jun 4th, '13, 21:50
by doktor5000
marcusmau wrote:
Code: Select all
[marc@erato ~]$ rvm
bash: rvm : commande introuvable



I don't know ruby at all, but there's no such binary inside the package:
Code: Select all
[doktor5000@Mageia3 ~]$ rpm -ql ruby-rvm
/usr/share/ruby/gems/gems/rvm-1.11.3.5
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/alias.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/cleanup.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/configuration.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/env.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/gemset.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/info.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/list.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/rubies.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/sets.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/tools.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/utility.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/environment/wrapper.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/errors.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/install_command_dumper.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell/abstract_wrapper.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell/calculate_rvm_path.sh
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell/result.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell/shell_wrapper.sh
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell/single_shot_wrapper.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/shell/utility.rb
/usr/share/ruby/gems/gems/rvm-1.11.3.5/lib/rvm/version.rb
/usr/share/ruby/gems/specifications/rvm-1.11.3.5.gemspec


You may want to try http://octopress.org/docs/setup/rvm/ but it seems it needs 32bit libyaml-devel,
on a x86_64 system which seems weird. But if it works, doesn't matter, no?

Re: Install and use rvm (Ruby Version Manager)

PostPosted: Jun 4th, '13, 22:38
by marcusmau
Hello,
I have install 32bit libyaml-devel and 64bit bison and rvm works. But I find that it's not very clean to must install a 32bit rpm on a 64bit Mageia. The rvm install by MCC is the gem and I install gem by "gem install rvm", I don't need MCC. But the rvm script isn't a gem. The gem is to use rvm api with ruby apps and the rvm script is to change ruby version.

Re: Install and use rvm (Ruby Version Manager)

PostPosted: Jun 4th, '13, 23:04
by doktor5000
Well, that's what our ruby maintainer also commented in your bugreport ...

Anyways, please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks