view · edit · sidebar · attach · print · history

Setup de.oddb.org

setup logs

Ruby 1.8.6

Install ruby 1.8.6-p369 with following patches and openssl-0.9.8.
(1.8.6-trunk could not be patched)

  • oniguruma patch.
  • bug fix patch from ruby 1.8.7
1. checkout ruby-1.8.6-p369
$ cd workspace
$ svn co http://svn.ruby-lang.org/repos/ruby/tags/v1_8_6_369 ruby_1_8_6_p369
2. create bug fix patch for dbi gems (from Ruby 1.8.7 enterprise edition)
$ 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

3. download oniguruma patch
$ 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

4. clone openssl-0.9.8
$ 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
5. compile ruby
$ 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.

6. zlib
$ cd /path/to/src/ext/zlib
$ /path/to/ruby extconf.rb 
$ make
$ make install

Rubygems

1 install rubygems 1.3.5
$ cd workspace
$ wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgzt 

Apache2

1 create http.conf
2 compile mod_ruby with installed Ruby-1.8.6
$ 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 

PostgreSQL

($ 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

view · edit · sidebar · attach · print · history
Page last modified on June 15, 2012, at 10:33 AM