安装openproject

https://www.openproject.org/projects/openproject/wiki/Installation_OpenProject_2_4#2-Quick-installation

本文安装环境centos6.3 64位 ruby1.9.2 mysql 5.1.7 git version 1.8.4 (PS:搭过gitlab)

Quick installation


安装前看下要求

git clone https://github.com/opf/openproject.git

cd openproject

git checkout 2.4.0


复制一份 config/database.yml.example 然后编辑,如果没指定启动环境,最好都按以下格式

production:

  adapter: mysql2

  database: openproject

  host: localhost

  username: root

  password: "123456"

  encoding: utf8

否则会出现 The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.

gem list 另外看下有没有安装 没有的话

gem install mysql2  //ruby1.9


./setup.rb --without postgres  //运行安装脚本

 

script/server >>log/3000.log & //启动

登录http://ip:3000  admin/admin


问题:

checking for vm_core.h... no

checking for vm_core.h... no

An error occurred while installing linecache19 (0.5.12), and Bundler cannot continue.


gem install ruby-debug19 -- --with-ruby-include=/usr/local/rvm/src/ruby-1.9.2-p320/      //ruby-debug包含这个linecache19


undefined method `source_index' for Gem:Module


gem update --system 1.8.25


转载于:https://my.oschina.net/longquan/blog/196533

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值