Do not know why colleagues clinging to redmine, but gave an old machine let me help install, record some of the pits encountered, may be able to help the needs of friends.
Install Ruby
Windows can be installed directly through the Rubyinstaller.
Linux can be installed from the source code.
System is redhat, before compiling yum to check if there is a dependency
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
Do not know how to do, yum
has been prompted the following information:
Error Message: Abuse of Service detected for server xxxxError Class Code: 49
The troubleshooting was too troublesome to re-install Yum once.
Delete the original Yum
rpm -aq|grep yum|xargs rpm -e --nodeps
Related rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpmwget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpmwget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpmwget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
Installation
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpmrpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpmrpm -ivh yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Find a ready-to-use Yum source, put it /etc/yum.repos.d/
down, execute
yum clean allyum makecache
After the execution, I found a new hint.
Portal Yum command:unable to read consumer identity Warning and solution
Follow these steps to resolve the issue
Modify
- /etc/yum/pluginconf.d/product-id.conf
- /etc/yum/pluginconf.d/subscription-manager.conf
Change the enabled inside to 0.
Save Exit and Execute
rm -rf /var/cache/yum/*yum clean all
Okay, install Ruby.
tar zxvf ruby.tar.gzcd ruby./configuremakemake installruby -vexport PATH=/usr/local/ruby/bin:$PATH
Installing Redmine
Download redmine-2.6.2.tar.gz
tar zxvf redmine-2.6.2.tar.gzmkdir /var/www/redminecd redmine-2.6.2cp -av redmine-2.6.2/* /var/www/redmine
Say you need to configure a database, just on the machine with MySQL, to redmine create libraries and users
create database redmine character set utf8;create user ‘redmine‘@‘localhost‘ identified by ‘my_password‘;grant all privileges on redmine.* to ‘redmine‘@‘localhost‘ identified by ‘my_password‘;
Modify the database configuration in the next redmine, modify the name and configuration
cd /var/www/redmine/configcp database.yml.example database.yml
Rely on management with bundler
gem install bundlercd /var/www/redminebundle install
The following prompt appears
Linking Shared-object fiddle.so
/USR/BIN/LD:./LIBFFI-3.2.1/.LIBS/LIBFFI.A (RawAPI.O): Relocation RX86against '. Text ' Can not ' Used when making a shared object; Recompile with-fpic
./libffi-3.2.1/.libs/libffi.a:could not read Symbols:bad value
Recompile with -fPIC
?
Installing Libffi-dev can solve this problem, refer to https://github.com/sstephenson/ruby-build/issues/690#issuecomment-68113987
Create a table
rake db:migrate RAILS_ENV="production"
Load Default configuration
rake redmine:load_default_data RAILS_ENV="production"
Start
ruby script/rails server webrick -e production
Redmine-Installation with notes