Ubuntu安装Gems报错的解决办法
生活随笔
收集整理的這篇文章主要介紹了
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-devsudo 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
?
轉載于:https://www.cnblogs.com/ywei221/p/3928375.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的Ubuntu安装Gems报错的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Throwable 结构图
- 下一篇: Android开发(六)——组件颜色Se