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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby marcusmau » Jun 4th, '13, 09:07

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
Last edited by marcusmau on Jun 5th, '13, 14:13, edited 1 time in total.
marcusmau
 
Posts: 3
Joined: Jun 4th, '13, 08:51

Re: Install and use rvm (Ruby Version Manager)

Postby tom_ » Jun 4th, '13, 16:40

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
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: Install and use rvm (Ruby Version Manager)

Postby marcusmau » Jun 4th, '13, 17:02

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)
marcusmau
 
Posts: 3
Joined: Jun 4th, '13, 08:51

Re: Install and use rvm (Ruby Version Manager)

Postby doktor5000 » Jun 4th, '13, 21:50

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?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Install and use rvm (Ruby Version Manager)

Postby marcusmau » Jun 4th, '13, 22:38

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.
marcusmau
 
Posts: 3
Joined: Jun 4th, '13, 08:51

Re: Install and use rvm (Ruby Version Manager)

Postby doktor5000 » Jun 4th, '13, 23:04

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest