1, 安装系统时尽量不要选择ruby,如果已安装
rpm -qa | grep ruby
rpm -e ${已安装上ruby包名}
2, 检查系统,确定已安装gcc,make
gcc -v
make -v
3, 安装ruby 1.8.5
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz
tar xzvf ruby-1.8.5.tar.gz
cd ruby-1.8.5
./configure --prefix=/usr/local/ruby
make && make install
export PATH=$PATH:/usr/local/ruby/bin/
4, 安装rubygems
wget http://rubyforge.org/frs/download.php/20990/rubygems-0.9.4.zip
unzip rubygems-0.9.4.zip && cd rubygems-0.9.4
ruby setup.rb
5, 安装rails
gem install rails -v=1.2.3
各种依赖库均选Y
6, 安装mongrel(有平台选项的均选ruby)
gem install mongrel
各种依赖库均Y
7, 安装sybase-ruby库
wget http://enjoy1.bb-east.ne.jp/~tetsu/sybct-ruby-0.2.9.tar.gz
tar xzvf sybct-ruby-0.2.9.tar.gz
cd sybct-ruby-0.2.9
编缉extconf.rb文件,指向正确sybase路径
ruby extconf.rb
make
cp sybct.o sybct.so sybct.rb sybsql.rb /usr/local/ruby/lib/ruby/site_ruby/1.8/i686-linux
export LD_LIBRARY_PATH=${SYBASE_HOME}/OCS-12_5/lib
8, 结合apache与mongrel (APP_ROOT为应用程序根目录)
参见文章: http://mongrel.rubyforge.org/docs/apache.html
9, 安装ImageMagick和RMagic(不要安装RMagic的gem包)
先检查依赖库:libpng,libjpeg,libtiff,gd-devel
unzip ImageMagick-6.3.4-4.zip
cd ImageMagick-6.3.4-4
./configure --prefix=/usr/local/ImageMagick
make && make install
export PATH=$PATH:/usr/local/ImageMagic/bin
编辑:/etc/ld.so.conf,加入
/usr/local/ImageMagick/lib
执行:ldconfig
tar xzvf RMagick-1.15.6.tar.gz
cd RMagick-1.15.6
./configure
make && make install
posted on 2007-07-11 12:44
liunix 阅读(626)
评论(0) 编辑 收藏