Snow Leropard上编译ruby1.9.2-p290

阅读更多

Ruby 1.9.2刚出的时候,我就发过一个Blog: http://ankyhe.iteye.com/blog/741720

今天重新编译了一个新版本的,过程如下

 

(1) 编译Readline 6.1

 

(2) 下载ruby源代码,解压

 

(3) $ruby_src$ mkdir build

      $ruby_src$ cd build

      $ruby_src/build $ ../configure --prefix=/Users/AnkyHe/local/ruby-1.9.2-p290 --enable-pthread --enable-shared CFLAGS=‘-I/User/AnkyHe/local/readline/include -DHAVE_RL_USERNAME_COMPLETION_FUNCTION’ LDFLAGS=-L/Users/AnkyHe/local/readline/lib

 

(4) make install clean

 

(5) 安装rails

 

gem install sqlite3

 

gem install rails

你可能感兴趣的:(Snow Leropard上编译ruby1.9.2-p290)