zoukankan      html  css  js  c++  java
  • Ubuntu安装Gems报错的解决办法


    安装执行:
    sudo -u git -H bundle install --deployment --without development test postgres
    

    安装的时候出现了两个问题

    第一个报错:

    Fetching source index from https://rubygems.org/
    Could not find modernizr-2.6.2 in any of the sources

    最终成功的解决办法:

    sudo vim Gemfile

    "modernizr", "2.6.2" 改成 "modernizr-rails", "2.7.1"
    sudo vim Gemfile.lock

    modernizr (2.6.2) 改成 modernizr-rails (2.7.1)

    modernizr (= 2.6.2) 改成
    modernizr-rails (= 2.7.1)

    继续安装,有如下报错:

    Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.3.11 for inspection.
    Results logged to /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
    An error occured while installing mysql2 (0.3.11), and Bundler cannot continue.
    Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.
    安装文件
    sudo apt-get install libmysql-ruby libmysqlclient-dev
    
    sudo apt-get install libmysqlclient-dev
    

      

    安装完成,提示:

    Your bundle is complete!
    Gems in the groups development, test and postgres were not installed.
    It was installed into ./vendor/bundle

  • 相关阅读:
    页面跳转
    vue项目流程
    前端框架发展史
    webpack构建react项目和发布流程
    React工作原理
    React项目中的registerServiceWorker作用?
    学习react总结
    浏览器的渲染:过程与原理
    浮动相关
    块级元素与内嵌元素
  • 原文地址:https://www.cnblogs.com/ywei221/p/3928375.html
Copyright © 2011-2022 走看看