On Mac, Ruby depeds another library called Readline.
Here the steps for installing ruby on mac :
============================================================================
curl ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz | tar xz
cd readline-5.1
./configure --prefix=/usr/local
make
sudo make install
cd ..
============================================================================
now we can install ruby without any problem...
try following commands to install ruby :
============================================================================
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz \
| tar xz
$ cd ruby-1.8.6
$ ./configure --prefix=/usr/local --enable-pthread \
--with-readline-dir=/usr/local
$ make
$ sudo make install
$ sudo make install-doc
$ cd ..
===================================================================
Now we are done. try to have "ruby -v" on terminal.
$ ruby -v
~ good luck ~
No comments:
Post a Comment