Ubuntu 10.04 + mysql + Nginx 安装与集成 Redmine 1.4
一、安装 mysql
simba@simba-laptop:~$ sudo apt-get install mysql-server libmysqlclient-dev
二、安装 nginx(安装步骤进行至passenger nginx 模块时,发现可以先不着急安装nginx,彼时一起安装)
simba@simba-laptop:~$ sudo apt-get install nginx
三、安装ruby 1.8
simba@simba-laptop:~$ sudo apt-get install ruby1.8
四、安装 RubyGems 1.8.24
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.zip\
simba@simba-laptop:~$ tar -zxf ./rubygems-1.8.24.tgz
simba@simba-laptop:~$ cd rubygems-1.8.24/
simba@simba-laptop:~/rubygems-1.8.24$ ruby ./setup.rb
五、配置RubyGems(你懂的)
simba@simba-laptop:~$ gem sources --clear-all
simba@simba-laptop:~$ gem source --add http://ruby.taobao.org/
simba@simba-laptop:~$ gem sources --update
六、安装bundle
simba@simba-laptop:~/rubygems-1.8.24$ sudo gem install bundle
七、下载redmine 1.4
simba@simba-laptop:~$ git clone https://github.com/redmine/redmine.git -b 1.4-stable ./redmine_1.4
simba@simba-laptop:~$ sudo mv ./redmine_1.4/ /opt/
simba@simba-laptop:~$ cd /opt/redmine_1.4/
simba@simba-laptop:/opt/redmine_1.4$ rm ./.git -Rf
八、安装redmine 1.4 依赖包
#确保以下依赖包已经正常安装,以免反复
sudo apt-get install ruby1.8-dev libmagick9-dev libsqlite3-dev libpq-dev
#其实使用mysql时这两个包 libsqlite3-dev libpq-dev 并非必须,可以修改Gemfile来避免检查这两个包。
#如果将来希望使用“scrum-pm” 插件,在Redmine Gemfile中添加以下几行,是个好主意!
gem "googlecharts", :require => "gchart"
gem "mini_magick"
simba@simba-laptop:/opt/redmine_1.4$ bundle install
Issue A:
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
How:
simba@simba-laptop:/opt/redmine_1.4$ sudo apt-get installruby1.8-dev
Issue B:
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
How:
simba@simba-laptop:/opt/redmine_1.4$ sudo apt-get install libpq-dev
Issue C:
Can't install RMagick 2.13.1. Can't find Magick-config in ...
How:
simba@simba-laptop:/opt/redmine_1.4$ sudo apt-get installlibmagick9-dev
<