$ wget http://www.selenic.com/mercurial/release/mercurial-1.1.tar.gz[enter]
$ tar zxvf mercurial-1.1.tar.gz
$ cd mercurial-1.1
$ python setup.py install --home=$HOME/local
export PYTHONPATH=${HOME}/local/lib/python
PATH=$HOME/local/bin:$PATH
$ source ~/.bashrc
$ mkdir hgtest
$ hg init hgtest
$ hg init
Traceback (most recent call last):
File "/home/t100/local/bin/hg", line 11, in ?
from mercurial import demandimport; demandimport.enable()
ImportError: No module named mercurial
$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
$ tar xzvf ruby-1.8.7-p72.tar.gz
$ cd ruby-1.8.7-p72
$ ./configure --prefix=$HOME/local
$ make
$ make install
export PATH=$HOME/local/bin:$GEM_HOME/bin:$PATH
$ source ~/.bashrc
$ which ruby
/home/t100/local/bin/ruby
$ wget http://rubyforge.org/frs/download.php/17190/rubygems-1.3.1.tgz
$ tar zxvf rubygems-1.3.1.tgz
$ cd rubygems-1.3.1
$ ruby setup.rb
また、gemでセットアップしたソフトウェアが使えるように$ which gem
/home/t100/local/bin/gem
export GEM_HOME=${HOME}/local/lib/ruby/gems
PATH=$HOME/local/bin:$GEM_HOME/bin:$PATH
$ gem install rails
Successfully installed rake-0.8.3
Successfully installed activesupport-2.2.2
Successfully installed activerecord-2.2.2
Successfully installed actionpack-2.2.2
Successfully installed actionmailer-2.2.2
Successfully installed activeresource-2.2.2
Successfully installed rails-2.2.2
7 gems installed
Installing ri documentation for rake-0.8.3...
Installing ri documentation for activesupport-2.2.2...
Installing ri documentation for activerecord-2.2.2...
Installing ri documentation for actionpack-2.2.2...
Installing ri documentation for actionmailer-2.2.2...
Installing ri documentation for activeresource-2.2.2...
Installing RDoc documentation for rake-0.8.3...
Installing RDoc documentation for activesupport-2.2.2...
Installing RDoc documentation for activerecord-2.2.2...
Installing RDoc documentation for actionpack-2.2.2...
Installing RDoc documentation for actionmailer-2.2.2...
Installing RDoc documentation for activeresource-2.2.2...
$ which rails
/home/t100/local/lib/ruby/gems/bin/rails
$ rails -v
Rails 2.2.2
$ sqlite3 -version
3.3.17
$ wget http://rubyforge.org/frs/download.php/39477/redmine-0.7.3.tar.gz
$ tar zxvf redmine-0.7.3.tar.gz
$ cd
$ mkdir rails
$ mv redmine-0.7.3 ./rails/redmine
$ cd rails/redmine
$ chmod o+w tmp log
$ cd config
$ cp database.yml.example database.yml
$ vi database.yml
production:
adapter: mysql
database: redmine
host: localhost
username: root
password:
encoding: utf8
production:
adapter: sqlite3
database: db/redmine.db
timeout: 5000
$ rake db:migrate RAILS_ENV=production
$ rake redmine:load_default_data RAILS_ENV=production
(in /home/t100/rails/redmine)
Select language: bg, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sr, sv, th, uk, zh, zh-tw [en] ja
====================================
Default configuration data loaded.
$LOAD_PATH.push("/home/t100/local/lib/ruby/site_ruby/1.8")
$LOAD_PATH.push("/home/t100/local/lib/ruby")
ENV['GEM_HOME'] ||= '/home/t100/local/lib/ruby/gems/1.8'
ENV['PATH']+=':/home/t100/local/bin'
ENV['PYTHONPATH'] ||= '/home/t100/local/lib/python'
Options +FollowSymLinks +ExecCGI
#Options +FollowSymLinks +ExecCGI
#!/home/t100/local/bin/ruby
ENV['RAILS_ENV']||='production'
$ cd ~/www
$ mkdir labs
$ ln -s $HOME/rails/redmine/public $HOME/www/labs/redmine
アプリケーションエラーが出ちゃう、、、??Application error ails application failed to start properly”
$ cd ~/rails/redmine/public
$ ruby dispatch.cgi
$ ruby dispatch.cgi
/home/t100/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- iconv (MissingSourceFile)
$ cd ruby-1.8.7-p72/ext/iconv/
$ ruby extconf.rb --prefix=$HOME --with-iconv-dir=/usr/local
checking for iconv() in iconv.h... no
checking for iconv() in -liconv... yes
checking for const of iconv() 2nd argument... yes
creating Makefile
$ make
gcc -I. -I. -I/home/t100/local/lib/ruby/1.8/i386-freebsd6.1 -I. -DICONV_INPTR_CONST -I/usr/local/include -fPIC -g -O2 -c iconv.c
gcc -shared -o iconv.so iconv.o -L. -L/home/t100/local/lib -Wl,-R/home/t100/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-soname,iconv.so -liconv -lcrypt -lm -lc
$ make install
/usr/bin/install -c -m 0755 iconv.so /home/t100/local/lib/ruby/site_ruby/1.8/i386-freebsd6.1
![]() | 入門Redmine Linux/Windows対応 (2008/11) 前田 剛 商品詳細を見る |