Horas and konnichiwa untuk semua


Redmine on FreeBSD
May 5, 2007, 11:15 pm
Filed under: notes/General

First get ruby’s tarball.
Then do “./configure; make; make install
Then install gems as follows:

 ruby setup.rb

Then install rails as follows:

gem update
gem install rails --include-dependencies

Then basically follow this basic installation steps:

http://www.redmine.org/index.php?s=install

(getting ruby via SVN is recommended on ruby site… so do the following svn checkout svn://rubyforge.org/var/svn/redmine)

But there will be iconv related error when running rake (rake db:migrate RAILS_ENV="production" and so on).

Change directory to /ext/iconv inside ruby’s tar ball directory, then do the following:

$ ruby extconf.rb --prefix=$HOME/app --with-iconv-dir=/usr/local
$ make
$ cp iconv.so /usr/local/lib/ruby/1.8/i386-freebsd5.4

This will elimiate iconv error.

Uncomment this on config/environment.rb

ENV['RAILS_ENV'] ||= 'production'

References:

http://www.imasy.or.jp/~garsl/td/?date=0509

http://www.machu.jp/diary/20041004.html#p01