您的位置:首页 > 运维架构 > Linux

linux 安装redmine 遇到的问题

2016-06-08 09:45 691 查看
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

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: