I'm following Michael Hartl's Rails tutorial, so far I've installed Git 1.7.5.4 x86_64 (I'm running OSX 10.5.8) and I'm trying to install rvm
After I run the following:
$ curl -kL get.rvm.io | bash -s stable
I get:
BASH 3.2.25 required (you have 3.2.17(1)-release)
I've tried changing the shell, using chsh -s /opt/local/bin/bash
but I get shell '/opt/local/bin/bash' does not exist
Not sure where to go from here but I'd appreciate any guidance. Thanks!
mpapis' instructions are great, but didn't completely cover all the issues when I tried them, so this is what I had to do. Every time I install RVM on a legacy system it's a real trial. The below is far from perfect and it took almost an hour, but it got me Ruby 1.9.3 on 10.5.8.
The big picture (stuff that isn't always explained):
sudo
, so these commands are to be entered withoutsudo
, just as shown.rvm pkg install zlib
, butpkg
has been deprecated, so enterrvm help autolibs
to read more…rvm pkg install zlib
do its thing I gave in and later, my RVM install of Ruby used it nicely.Installing required packages: autoconf, automake, [etc.] gdbm, ncurses........
followed by even more very slowly-appearing lines of..........
), but it will finish.Get the rvm-install script (the
k
option by-passes SSL warnings):Prevent the BASH version check
Manually comment out the lines that check your version of
bash
(lines 3-11) in the 'rvm-installer' script (reason: OS X 10.5.8 has BASH 3.2.17 and the script warns:BASH 3.2.25 required (you have 3.2.17(1)-release)
.Run the installer
Make sure the rvm-installer script is executable:
Just run the script as below to get RVM (the suggested command
/rvm-installer -s stable
might only bring up theUsage
document):You should then see:
if you get
SSL certificate problem
, allowcurl
to do an 'insecure' download then run the script again:Start using RVM and install Ruby
To start using RVM right away enter:
To install Ruby 1.9.3 (safest option with standard 10.5 libraries) you should now be able to enter:
(long process here - see point 5 above). Then to use your new Ruby, enter:
Are you on a Power PC Mac? If you're on an Intel PC, why not upgrade to Lion. Lion comes with BASH 3.2.48. Otherwise, you'll have to try using MacPorts as CodeGnome stated.
Homebrew is generally a bit nicer than MacPorts, as it doesn't require lots of
sudo
action. Here's an article that guided me to upgrading my install of bash: http://concisionandconcinnity.blogspot.com/2009/03/upgrade-bash-to-40-in-mac-os-x.htmlAs for steps:
Install Git using Homebrew (optional, but nice to have a more up-to-date
git
)Now install
bash
:Add this install of
bash
to the allowed shells list:/usr/local/Cellar/
by default, then symlinks any binaries to/usr/local/bin
, so you've now got the latestbash
sitting at/usr/local/bin/bash
Finally, change your shell to use this new one:
Open a new terminal window/tab, and run these commands to double-check your work:
You could run the installer by removing the check for bash version.
Install RVM
Make sure to read
rvm requirements
, I advice you to install osx-installer or Xcode which supportsgcc-4.2
- a GNU GCC not LLVM GCC, only Ruby 1.9.3-p194 is working good with LLVM.Install Rubies
Test
File
test.log
will be created, please open a ticket for RVM with the results - if it worked well I will downgrade the check - if not, fixes should be made before downgrading the check.You need a way to install the correct version of Bash. One way is:
sudo port install bash