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

  • 相关阅读:
    客户端回传事件接口IPostBackEventHandler
    《敏捷无敌》—— 一本非常好看的“IT技术言情小说”
    面向对象之设计
    Zac谈网络编辑需要注意的SEO技巧
    面向对象之领悟
    《网络营销实战密码》推荐
    设计模式建造者模式(builder)
    设计模式工厂方法(FactoryMethod)
    struts1.x与struts2的比较表
    设计模式原型模式(ProtoType)
  • 原文地址:https://www.cnblogs.com/grimm/p/5569094.html
Copyright © 2011-2022 走看看