zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    我的北漂之路 北漂如饮水,冷暖自知
    初学者路径规划 | 人生苦短我用Python
    web开发快速提高工作效率的一些资源
    工作中如何快速成长和学习?
    把手账打印成书 把回忆装订成册
    算法训练 K好数 (DP)
    算法训练 最大的算式(DP)
    算法训练 数字三角形(DP)
    算法训练 Balloons in a Box (枚举,模拟)
    算法训练 Pollution Solution(计算几何)
  • 原文地址:https://www.cnblogs.com/grimm/p/5569094.html
Copyright © 2011-2022 走看看