Monday, January 17, 2011

Upgrading git on snow leopard

If you have followed

1. curl -O http://kernel.org/pub/software/scm/git/git-1.7.3.tar.bz2
2. tar xzvf git-1.6.4.2.tar.bz2
3. cd git-1.6.4.2
4. ./configure --prefix=/usr/local
5. make
6. sudo make install

Error installing ruby-1.8.7-p330 on Snow Leopard

The error :

make[1]: *** [readline.o] Error 1
make: *** [all] Error 1

Error running 'make ', please read ...make.log

Snow Leopard version is 10.6.5

1) Make sure you have the latest XCode installed. I have 3.2.5
2) rvm update && rvm reload
3) rvm_archflags="-arch x86_64"
4) rvm install ruby-1.8.7

Fixes the problem and installs ruby-1.8.7-p330.