ubuntu安装redmine

redmine是一个bug跟踪系统
1、sudo apt-get install ruby1.8 ruby1.8-dev
安装完查看版本
sudo ruby -version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]

2、sudo apt-get install libmysqlclient-dev

3、sudo apt-get install libopenssl-ruby1.8

4、手工下载RubyGems安装特定版本
如果已经安装了,需要先卸载
sudo apt-get autoremove rubygems
从http://rubyforge.org/frs/?group_id=126 下载rubygems-1.6.2版本
解压缩并进入目录执行安装 sudo ruby setup.rb
如果报错误
RubyGems installed the following executables:
/usr/bin/gem1.8
则执行
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem

查看gem版本 sudo gem -v

1.6.2

5、安装模块
sudo gem install rails -v=2.3.11
sudo gem install rake -v=0.8.7
sudo gem install mongrel
sudo gem install sprockets -v ‘2.0.3’
sudo gem install -v=0.4.2 i18n
sudo gem install mysql

安装完了 我的gem list

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
hike (1.2.1)
i18n (0.4.2)
mysql (2.8.1)
rack (1.3.5, 1.1.2)
rails (2.3.11)
rake (0.8.7)
sprockets (2.0.3)
tilt (1.3.3)

6、剩下的步骤按照手册执行
参考http://www.redmine.org/projects/redmine/wiki/RedmineInstall
创建mysql数据库帐号,创建数据库
下载redmine-1.2.2并解压缩到目录
修改 config/database.yml
执行命令 rake generate_session_store
执行命令 RAILS_ENV=production rake db:migrate
执行命令 RAILS_ENV=production rake redmine:load_default_data
执行命令 ruby script/server webrick -e production
打开浏览器访问http://localhost:3000
默认用户名密码为admin/admin
7、特别注意的是这个redmine应用对环境兼容性的要求。

Compatibility notes

Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.
RubyGems 1.3.7 or higher is required with following limitations :
Rails 2.3.5 will fail with RubyGems 1.5.0 or later, stick to previous versions of RubyGems !
Rails 2.3.11 will fail with RubyGems 1.7.0 or later, stick to previous versions of RubyGems !
Rake 0.8.7 is required (rake 0.9.x is not supported by Rails yet)
Rack 1.1.x is required, 1.1.0 has a bug with quotes (#8416). Database migration would fail with other version.
Mongrel 1.1.5 needs a patch attached to #7688 to work fine with Rails 2.3.11. In case of upgrade, another issue may appear for some time after migration (#7857).
I18n 0.4.2 is required for Redmine >= 1.0.5
Rails 2.3.11 to 2.3.14 suffer from a major issue with sending mails to multiple recipients, see #8751 for details and solution.
Rails 2.3.14 is a minor security release known to work fine with Redmine 1.2.x series (except for previous point) and can be used as a replacement for 2.3.11 (read config/environment.rb first).

参考资料
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
http://articles.slicehost.com/2009/4/9/debian-lenny-ruby-on-rails

原创文章,转载请注明: 转载自海波无痕

本文链接地址: ubuntu安装redmine

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在server, soft分类目录,贴了, , , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论链接可以 移除 nofollow.