安装openproject

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

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

你可能感兴趣的:(安装openproject)