一、软件版本
Yaml 0.1.4 : http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Ruby-1.9.3-p194: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
Rubygems-1.8.24:http://rubygems.org/pages/download
Redmine-2.0.3:http://rubyforge.org/frs/?group_id=1850
二、安装Redmine(Apache+SVN+Passenger)
1.安装Yaml
[root@cent5-ADCPtest]# cd /opt/software/
[root@cent5-ADCPtest software]# wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
[root@cent5-ADCPtest software]# tar zxf yaml-0.1.4.tar.gz
[root@cent5-ADCPtest software]# cd yaml-0.1.4
[root@cent5-ADCPtest yaml-0.1.4]# ./configure --prefix=/opt/yaml
[root@cent5-ADCPtest yaml-0.1.4]# make && make install
2.安装Ruby
[root@cent5-ADCPtest software]# tar zxf ruby-1.9.3-p194.tar.gz
[root@cent5-ADCPtest software]# cd ruby-1.9.3-p194
[root@cent5-ADCPtest ruby-1.9.3-p194]# ./configure --prefix=/opt/ruby
[root@cent5-ADCPtest ruby-1.9.3-p194]# make && make install
注:ruby安装到自定义路径,下面的ruby,rake,gem 命令都要加上Ruby安装的绝对路径,如/opt/ruby/bin/ruby /opt/ruby/bin/rake /opt/ruby/bin/gem
3.安装Redmine
[root@cent5-ADCPtest software]# tar zxf redmine-2.0.3.tar.gz
[root@cent5-ADCPtest software]# mv redmine-2.0.3 /opt/redmine

4.安装Rubygems
[root@cent5-ADCPtest software]# tar zxf rubygems-1.8.24.tgz
[root@cent5-ADCPtest software]# cd rubygems-1.8.24
[root@cent5-ADCPtest rubygems-1.8.24]# ruby setup.rb
/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
RubyGems 1.8.24 installed
== 1.8.24 / 2012-04-27
* 1 bug fix:
* Install the .pem files properly. Fixes #320
* Remove OpenSSL dependency from the http code path
-----------------------------------------------------------------------------
RubyGems installed the following executables:
/opt/ruby/bin/gem
[root@cent5-ADCPtest rubygems-1.8.24]# /opt/ruby/bin/gem install rails -v=3.2.6 //安装rails,-v=3.2.6是版本号
[root@cent5-ADCPtest rubygems-1.8.24]# /opt/ruby/bin/gem install bundler  //Redmine 1.4 版本后使用Bundler来管理gems  依赖关系,在Redmine的目录里有一个Gemfile 需要的依赖包写在里面。
/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Successfully installed bundler-1.1.5
1 gem installed
Installing ri documentation for bundler-1.1.5...
Installing RDoc documentation for bundler-1.1.5...
[root@cent5-ADCPtest redmine]# vim Gemfile //由于使用的是Mysql数据库,需要将Gemfile中的配置关于PostgreSQL的安装包注释掉,如果系统没有安装PostgreSQL而不注释掉,安装时会提示错误。
# Database gems
#platforms :mri, :mingw do
#  group :postgresql do
#    gem "pg", ">= 0.11.0"
#  end
#
#  group :sqlite do
#    gem "sqlite3"
#  end
#end
[root@cent5-ADCPtest redmine]# bundle install --without development test rmagick //这一步会安装Mysql的Adapter, 如果Mysql的安装路径不是系统默认的,这一步安装时会提示安装错误,需要增加安装参数安装
单独安装 Mysql2的依赖包 :
gem install mysql2 -v '0.3.11' -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
然后再运行上面的命令
5.创建数据库
mysql> create database redmine character set utf8;
mysql> grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password';
mysql> flush privileges;

[root@cent5-ADCPtest redmine]# cd config
[root@cent5-ADCPtest config]# cp database.yml.example database.yml

[root@cent5-ADCPtest config]# vim database.yml
# Default setup is given for MySQL with ruby1.8. If you're running Redmine
# with MySQL and ruby1.9, replace the adapter name with `mysql2`.
# Examples for PostgreSQL and SQLite3 can be found at the end.
production:
adapter: mysql2  //将mysql修改为mysql2
database: redmine
host: localhost
username: redmine
password: redmine
encoding: utf8
[root@cent5-ADCPtest config]# rake generate_secret_token //
会产生config/initializers/secret_token.rb
[root@cent5-ADCPtest config]# RAILS_ENV=production rake db:migrate //创建数据库结构
....
==  ChangeChangesPathLengthLimit: migrating ===================================
-- change_column(:changes, :path, :text, {:default=>nil, :null=>true})
-> 0.0119s
-- change_column(:changes, :path, :text, {:null=>false})
-> 0.0105s
-- change_column(:changes, :from_path, :text)
....

转载于:https://blog.51cto.com/stuart/965622

Linux环境下Redmine的安装(一)相关推荐

  1. linux校园网客户端,Ubuntu Linux环境下校园网客户端安装使用

    最近发现好多兄弟姐妹不用Linux原因是在我们学校大大环境下上校园网有点费劲,或者干脆就不会弄,亦或者根本就没想到上网^_^ 这里我写上这么一段简单的过程,为了大家能够顺利上网,大牛直接掠过,不要喷我 ...

  2. Linux环境下Python的安装过程

    Linux环境下Python的安装过程 前言 一般情况下,Linux都会预装 Python了,但是这个预装的Python版本一般都非常低,很多 Python的新特性都没有,必须重新安装新一点的版本,从 ...

  3. Linux环境下Protobuf完整安装和使用教程

    Linux环境下Protobuf完整安装和使用教程 目标 下载和安装 环境配置 一个例子 1.报文定义 2.报文生成 3.使用报文 4.编译程序 5.常见问题: 目标 本文将教会一个完全的新手如何搭建 ...

  4. hp ux安装mysql5.1.56_详细讲解Linux环境下MySQL5.1安装步骤

    1.下载MySQL免安装版/二进制版软件(不用编译) 文件格式:MYSQL-VERSION-OS.tar.gz 2.创建MySQL组,建立MySQL用户并加入到mysql组中 (不同版本的Unix中, ...

  5. linux环境下使用virtualbox安装ghost系统

    linux环境下使用virtualbox安装ghost系统 环境为Ubuntu 18.04LTS,这次难点在于使用virtualbox如何使用虚拟机外部的文件安装系统.后来看到加载iso很方便,就往这 ...

  6. k8s简介以及linux环境下的详细安装步骤

    k8s简介以及linux环境下的详细安装步骤 k8s是Kubernetes的简称,Kubernetes中间有8个单词,所以叫k8s,就是这么简单粗暴. 我们可以看到docker的图标是鲨鱼,k8s的图 ...

  7. linux下的python安装,linux环境下的python安装过程

    一.下载python源码包 打开ubuntu下的shell终端,通过wget命令下载python源码包,如下图所示: wget https://www.python.org/ftp/python/3. ...

  8. django配置环境linux,linux环境下Django的安装配置详解

    linux环境下Django的安装配置详解 1. 下载安装Django pip install Django==1.6.5 测试是否安装成功 >>> import django> ...

  9. Linux环境下ANTs软件安装(基于源码)

    Linux环境下ANTs软件安装(基于源码) 1.下载Cmake 在命令行里运行: 2.下载ITK 在命令行里运行: 3.ANTs安装 (1)在命令行里运行: (2)编译完之后如果在 antsbin ...

最新文章

  1. HTML5 基础知识(四)
  2. 《深入Java虚拟机》笔记
  3. jboss eap 6.2+ 版本中 加密datasource密码等敏感信息
  4. 【Git】git add -A = git add . + git add -u
  5. 鼠标提上去弹出提示层(定位)
  6. 【转】Spark源码分析之-scheduler模块
  7. html 在手机上运行,怎么在手机上打开HTML
  8. linux实验总结及心得_安全实验室 | 内网渗透—Linux权限维持技巧总结
  9. 孔夫子告诉你:编程到底能教会你什么!
  10. c盘清理代码_IntelliJ IDEA 缓存和索引介绍和清理方法(一)
  11. VB讲课笔记05:数据输入输出
  12. python-知识回顾-16
  13. GJB150A湿热试验-高低温交变湿热试验标准检测报告
  14. PyTorch使用多GPU并行训练及其原理和注意事项
  15. zynq之ps端开发
  16. Matlab之双坐标轴绘制plotyy
  17. VBS教程--摘自百度百科
  18. Mac如何给压缩文件加密
  19. 微信公众平台接口测试帐号申请流程
  20. CSS: text-decoration

热门文章

  1. c语言迷宫算法设计,基于C语言的可连通迷宫算法设计及实现(毕业学术论文设计).doc...
  2. 云南无线数字电视文化传媒股份有限公司签约神策,数据赋能 IPTV
  3. 70 周岁快乐 | 盛世华诞,每一刻都值得铭记
  4. 一句代码实现 HTML5 语音搜索
  5. 容器化实践金融业案例一
  6. JedisPool无法获得资源问题
  7. 【JavaScript】父子页面之间跨域通信的方法
  8. hdu 2441(ACM(Array Complicated Manipulation))
  9. django admin search_fields
  10. sed/awk与unix命令等价代码[转]