Installation records of Rails and Redmine in centos Linux

Source: Internet
Author: User
Tags imagemagick redmine
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.

  1. Preparations
    # yum install httpd \
    httpd-devel \
    openssl-devel \
    zlib-devel \
    mysql-server \
    mysql-devel \
    gcc \
    gcc-c++ \
    curl-devel
  2. 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
  3. 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.