安装执行:
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报错的解决办法相关推荐

  1. ubuntu安装mysql报错_解决Ubuntu 12.04中更改MySQL默认编码报错

    Ubuntu 12.04,安装了MySQL,完了之后,更改了字符编译,就报错.感觉很郁闷. 环境: root@ubuntu:~# uname -a Linux ubuntu 3.2.0-23-gene ...

  2. python 安装impala报错及解决办法

    from impala.dbapi import connect 执行的时候报connect找不到  ,如果只 pip安装impyla是不行的. https://github.com/cloudera ...

  3. win7 64下安装mysql-python报错的解决办法

    转自博客园楚狂人阿飞 原文地址:http://www.cnblogs.com/fireflow/p/4598526.html 最近要使用django进行项目开发,需要使用mysql-python模块. ...

  4. MongoDB在安装过程中权限不足无法安装服务报错的解决办法

    报错:Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start syst ...

  5. windows 功能中安装Hyper-V报错 0x80073701解决办法

    使用 PowerShell 启用 Hyper-V 以管理员身份打开 PowerShell 控制台. 运行以下命令: PowerShell复制 Enable-WindowsOptionalFeature ...

  6. Xamarin开发安装Visual Studio 2015 update2报错的解决办法

    Xamarin开发安装Visual Studio 2015 update2报错的解决办法 错误信息:update 2 requires a member of the visual studio 20 ...

  7. CAD、3dmax等Autodesk系列软件安装报错1603解决办法

    一级标题CAD.3dmax等Autodesk系列软件安装报错1603解决办法 使用Auto Remove清理后,安装报错1603 ,如下图 该错误只会出现在2020和2021版本上,其他版本不存在该问 ...

  8. vue 安装不上,报错,解决办法如下

    vue 安装不上,报错,解决办法如下 前言: vue安装问题就能难倒一拨人,还没等开发呢,就先退下了,看看解决办法,加速学习~~ 安装vue 安装命令 npm install -g @vue/cli ...

  9. node-sass安装失败、报错、解决办法总结

    node-sass安装失败.报错.解决办法总结 1.首先需要考虑三个方面的问题: (1.) Node版本,node-sass版本,python版本. node版本建议用node12,可以查一下Node ...

最新文章

  1. etcd 笔记(06)— Client 结构定义、客户端(初始化、KV存储Get、Put、事务 Txn、压缩 Compact、Watch、Lease
  2. wikioi 1083 Cantor表
  3. nginx limit_rate突然限速失败
  4. 老罗直播带货,抖音依然没有准备好和快手、淘宝直播的PK
  5. Deep Residual Learning for Image Recognition个人有感
  6. Golang之Go Module使用
  7. opencv3.10加入OPENCV_contrib模块
  8. boost::type_erasure模块construction相关的测试程序
  9. 如何在Windows 10中将您喜欢的设置固定到开始菜单
  10. float在python中的书写形式错误的是_在Python3.7.1中,编写简单的GAN时,“TypeError:”float“对象不能解释为整数”错误...
  11. HadoopHA集群搭建
  12. 基于javaweb jsp+servlet学生宿舍管理系统
  13. 【编译器】G++相关编译命令
  14. 数组/指针,字符数组/字符串/指向字符的指针
  15. 2014年读过的那些书
  16. 自然语言处理NLP技术里程碑、知识结构、研究方向和机构导师(公号回复“NLP总结”下载彩标PDF典藏版资料)
  17. ANSYS公开课圆满落幕
  18. mysql报1114错误_mysql插入数据出现error1114 table is full
  19. 如何学习linux系统
  20. (转)webpack简介

热门文章

  1. python网络爬虫系列(0)——爬虫概述 http协议复习
  2. LeetCode 1819. 序列中不同最大公约数的数目
  3. LeetCode 456. 132模式(逆序遍历+单调栈)
  4. LeetCode 278. 第一个错误的版本(二分查找)
  5. LeetCode 951. 翻转等价二叉树(递归)
  6. LeetCode 1094. 拼车
  7. unity python_Unity引擎内嵌python
  8. c语言 spawn函数,我在electron程序中spawn了一个C语言程序作为子进程,我该如何与这个子进程通信?...
  9. 利用bootstrap框架做了一个采摘节节日活动网页
  10. Java入门篇 2021/02/22