Install ruby 1.8.6-p369 with following patches and openssl-0.9.8.
(1.8.6-trunk could not be patched)
$ cd workspace $ svn co http://svn.ruby-lang.org/repos/ruby/tags/v1_8_6_369 ruby_1_8_6_p369
$ cd workspace $ git clone https://github.com/FooBarWidget/rubyenterpriseedition187-248.git $ cd rubyenterpriseedition187-248/ $ git co 2be9552406aaa04bdf07f43ab64762aa9583ca35 $ git diff --no-prefix HEAD~1 > ../syck.patch $ cd /path/to/ruby/src $ patch ext/syck/rubyext.c < /path/to/syck.patch (ChangeLog Hunk is failed)
NOTE
Check out revision 2be9552406aaa04bdf07f43ab64762aa9583ca35
.
Attach:ruby-186-sych.patch.txt
$ cd workspace $ wget http://dev.ywesee.com/uploads/att/oniguruma_patch_for_ruby-1.8.6_p369.20100615_from_Hannes-san.tar.gz $ tar xvf oniguruma_* $ cd oniguruma $ ./configure --with-rubydir=/path/to/ruby_1_8_6 $ make 186
Attach:oniguruma-patches-make186-output.log-20120613.txt
$ cd workspace $ wget ftp://ftp.openssl.org/snapshot/openssl-0.9.8-stable-SNAP-`date +%Y%m%d`.tar.gz $ tar xvf openssl-0.9.8-stable-SNAP-* $ cd openssl-0.9.8-stable-SNAP-20120329 $ ./config --prefix=/path/to/local --openssldir=/path/to/local/ssl $ make $ make install $ /path/to/local/bin/openssl version OpenSSL 0.9.8v-dev xx XXX xxxx
$ cd /path/to/ruby-1.8.6-p369 $ autoconf $ ./configure --prefix=/path/to/local --disable-option-checking --with-openssl-dir=/path/to/local --enable-shared $ make $ make install
NOTE
You may need to Uncomment of ext/Setup to complie this ruby for your architecture.
see README of ruby.
$ cd /path/to/src/ext/zlib $ /path/to/ruby extconf.rb $ make $ make install
$ cd workspace $ wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgzt
$ cd workspace $ git clone https://github.com/shugo/mod_ruby.git $ cd mod_ruby $ /path/to/bin/ruby ./configure.rb --prefix=/path/to/local --exec-prefix=/path/to/local --with-apxs=/usr/sbin/apxs --with-apr-includes=/usr/include/apr-1 $ make $ sudo make install
NOTE
If you need to install with another mod_ruby.so.
Please rename before install.
$ sudo cp /usr/lib/apache2/modules/mod_ruby.so /usr/lib/apache2/modules/mod_ruby193.so
($ sudo -u postgres createuser oddb ) $ sudo -u postgres createdb -E UTF8 -T template0 oddb
check(or update) db_name,db_user in lib/oddb/config.rb