linux 安装redmine 遇到的问题

1、编译安装ruby-2.3.1时

  需要先安装libyaml、libyaml-devel

2、 安装gem install rake

    ERROR: Loading command: install (LoadError)
    cannot load such file -- zlib
    ERROR: While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

     安装zlib-devel后,进入ruby源码文件夹 
  安装ruby自身提供的zlib包 
  #cd ext/zlib
  #ruby ./extconf.rb
  #make
  #make install

  ERROR: While executing gem ... (Gem::Exception)

  Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

    yum -y install openssl-devel
     yum -y install openssl

    将ruby 源码目录下的include 目录软链接到 / 目录下:

    ln -s /...../ruby-2.2.3/include  /

    编译安装:make && make install

2、gem install rmagick 出错时   

  yum install ImageMagick-devel  

3、Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add `gem 'mysql'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

  在Gemfile  添加  gem "mysql"  然后执行 bundle install

4、LoadError: libmysqlclient.so.18: cannot open shared object file: No such file or directory

  解决方案   /alidata/server/mysql-5.6.21/lib 写入  /etc/ld.so.conf 然后运行ldconfig重建/etc/ld.so.cache

5、ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT)

  解决方案:config/database.yml  下的 adpter修改mysql2

原文地址:https://www.cnblogs.com/grimm/p/5569094.html