Reputation: 1526
I have an older mac mini (v10.5.8) I would like to put the latest version of rails on.
gem update --system
gives me "no such file to load"
gem install rubygems-update
gives me the same thing as above
So I manually downloaded from rubygems.org/pages/download and extracted the tar then tried running ruby setup.rb
but that gives me...
./lib/rubygems/core_ext/kernel_require.rb:45:in 'gem_original_require': no such file to load -- stringio (LoadError)
...so I'm stuck now..I'm not sure where to go from here...running ruby -v
gives me "1.8.7 (2008-05-31 patchlevel 0"
Upvotes: 1
Views: 458
Reputation: 8526
Instead of using the system ruby, you should try to use rvm
to install a recent version of Ruby:
$ curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled --ruby=1.9.3
Or, if you want more control
$ curl -L https://get.rvm.io | bash -s stable
$ rvm get head
$ rvm install 1.9.3
Either way, make sure you run
$ rvm --default use 1.9.3
Note that you may have to install XCode and XCode Command-Line Tools before all of this. Note also that you probably shouldn't use sudo
... just have it install ruby for your user.
Upvotes: 2