problem with a legacy application running in 1.8.6

25 views
Skip to first unread message

Lee Richmond

unread,
Jun 6, 2012, 6:39:36 AM6/6/12
to RVM (Ruby Version Manager)
I'm currently developing on a macbook pro with lion as my OS

I've used the GCC compiler to instead of the Xcode installation purely
because I know that the Xcode version of GCC is buggy.

the app I'm trying to set up uses ruby 1.8.6 and rubygems 1.4.2
however I am getting an error when trying to install rubygems 1.4.2
the error is as follows:

Using /Users/leerichmond/.rvm/gems/ruby-1.8.6-p420
Removing old Rubygems files...
Installing rubygems-1.4.2 for ruby-1.8.6-p420 ...
ERROR: Error running 'GEM_PATH="/Users/leerichmond/.rvm/gems/
ruby-1.8.6-p420:/Users/leerichmond/.rvm/gems/ruby-1.8.6-p420@global:/
Users/leerichmond/.rvm/gems/ruby-1.8.6-p420:/Users/leerichmond/.rvm/
gems/ruby-1.8.6-p420@global" GEM_HOME="/Users/leerichmond/.rvm/gems/
ruby-1.8.6-p420" "/Users/leerichmond/.rvm/rubies/ruby-1.8.6-p420/bin/
ruby" "/Users/leerichmond/.rvm/src/rubygems-1.4.2/setup.rb"', please
read /Users/leerichmond/.rvm/log/ruby-1.8.6-p420/rubygems.install.log
WARN: Installation of rubygems did not complete successfully.

when I look at the log I'm getting the following:

[2012-06-06 11:33:34] GEM_PATH="/Users/leerichmond/.rvm/gems/
ruby-1.8.6-p420:/Users/leerichmond/.rvm/gems/ruby-1.8.6-p420@global:/
Users/leerichmond/.rvm/gems/ruby-1.8.6-p420:/Users/leerichmond/.rvm/
gems/ruby-1.8.6-p420@global" GEM_HOME="/Users/leerichmond/.rvm/gems/
ruby-1.8.6-p420" "/Users/leerichmond/.rvm/rubies/ruby-1.8.6-p420/bin/
ruby" "/Users/leerichmond/.rvm/src/rubygems-1.4.2/setup.rb"
File not found: README
RubyGems 1.4.2 installed

Now I can see that in the log it says that 1.4.2 is installed and that
the only file it could not find is a README but when I go into the
application and type the following "rvm use 1.8.6; rvm rubygems 1.4.2"
I get the above error all over again.

Could anyone point me in the right direction, I've been using rvm for
a while now and generally know my way around but this is beginning to
get frustrating.

Thanks in advance

Lee

mpapis

unread,
Jun 27, 2012, 2:53:54 PM6/27/12
to rubyversi...@googlegroups.com
sorry for late answer, you need to call `rvm rubygems 1.4.2` only once in context of a ruby, it will stick with that ruby.

just use `rvm use 1.8.6` and your ruby + rubygems will be switched to versions you wanted to use
Reply all
Reply to author
Forward
0 new messages