The latest installation of Redmine requires Rails. The following is a record of the Rails installation process under CentOSLinux5.3. Note: MySQL and Rmagick are installed to further install Redmine. Preparation # yuminstallhttpd \ httpd-devel \ openssl-devel \ zlib-devel \ mysql-server \ mysql-
Recently installed REdMine needs to install RaiLsIn CentOS Linux 5.3, the Rails installation process is recorded as follows. Note: MySQL and Rmagick are installed to further install Redmine.
- Preparations
# yum install httpd \
httpd-devel \
openssl-devel \
zlib-devel \
mysql-server \
mysql-devel \
gcc \
gcc-c++ \
curl-devel
- Ruby, RubyGems
Ruby
# cd ~/source/
# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz -C ~/source/
# tar xvzf ~/source/ruby-1.8.7-p174.tar.gz -C ../build/
# cd ../build/ruby-1.8.7-p174
# ./configure && make && make install
# ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
RubyGems
# wget http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz -C ~/source/
# tar xvzf ~/source/rubygems-1.4.2.tgz -C ../build/
# cd ../rubygems-1.5.2
# ruby setup.rb
# gem -v
1.4.2
- Rails, pasick (mod_rails), Rmagick, MySQL gem
Rails 2.3.11
# gem install rails -v=2.3.11
Passenger
# gem install passenger
passenger-install-apache2-module
After the installation is complete, add the following content to httpd. conf as prompted.
LoadModule passenger_module /usr/ local /lib/ruby/gems/1.8/gems/passenger-3.0.4/ext/apache2/mod_passenger.so |
PassengerRoot /usr/ local /lib/ruby/gems/1.8/gems/passenger-3.0.4 |
PassengerRuby /usr/ local /bin/ruby |
MySQL gem
# gem install gem
The installation process will produce a lot of "No definition for" printing, you do not need to worry about it.
Rmagick 1.15.17
InstallRmInstall ImageMagick-devel and TrueType fonts before agick.
# gem install libjpeg libtiff libpng libwmf ghostscript ImageMagick-devel
# yum install rpm-build cabextract
# wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec -P ~/source/
# vim ~/source/msttcorefonts-2.0-1.spec
9th rows of msttcorefonts-2.0-1.spec
%define fontdir /usr/share/fonts/%{name}
Change
%define fontdir /usr/share/fonts/default/TrueType
Font installation
# rpmbuild -bb msttcorefonts-2.0-1.spec
# rpm -ivh /usr/src/RedHat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
Test
# convert label:abc abc.gif
# ll abc.gif
-rw-r--r-- 1 root root 555 Mar 3 21:04 abc.gif
Finally, install Rmagick 1.15.17.
# gem install rmagick -v 1.15.17