前言

记录ruby的一些报错

错误

Could not find a valid gem 'pumagem' (>= 0) in any repository

ERROR:  Could not find a valid gem 'pumagem' (>= 0) in any repository
ERROR: Possible alternatives: cutagem, mutagem

镜像源的问题,替换成ruby-china就好了

# gem -v
2.7.8
# gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
https://gems.ruby-china.com/ added to sources
source https://rubygems.org/ not present in cache
# gem sources -l
*** CURRENT SOURCES *** https://gems.ruby-china.com/

Your Gemfile lists the gem paranoia (~> 2.2) more than once.

[root@izuf63g0jydq42k49eo7zcz config]# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Your Gemfile lists the gem paranoia (~> 2.2) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Your Ruby version is 2.5.3, but your Gemfile specified 2.5.1

我的Gemfile中指定的版本是2.5.1但是系统中ruby的实际版本是2.5.3,两种解决办法

1. 强制执行
2. 修改Gemfile.lock和Gemfile中的ruby版本,更改成系统中的版本
3. 将ruby版本回退到项目需要的版本

最新文章

  1. ios基础篇(二十五)—— Animation动画(UIView、CoreAnimation)
  2. 关于IIS服务器证书续订
  3. 2015年Java开发岗位面试题归类
  4. Extjs 3.4 复选框的,默认选中 ,禁用,(纯属于自己代码中需要,总结!)
  5. 学习C语言常用的几个网站
  6. eclipse设置svn代理
  7. Spring整合CXF,发布RSETful 风格WebService(转)
  8. centos平台openstack spice配置
  9. http://msh.baidu.com/UTWpR6wY4722
  10. Android UI SurfaceView的使用-绘制单个图型或多个图形
  11. AngularJs(一) MVC 模式的应用
  12. 通过SvcUtil.exe 生成 Wcf 客户端代理
  13. PAT (Advanced Level) 1103. Integer Factorization (30)
  14. 使用后台线程BackgroundWorker处理任务的总结
  15. C++11 并发指南四(<future> 详解一 std::promise 介绍)
  16. 基于uFUN开发板的心率计(二)动态阈值算法获取心率值
  17. SAP顾问岗位要求
  18. Goroutines
  19. 【4opencv】CLR基本原理和如何运用于GOCW
  20. dataTable表头未对其解决方法

热门文章

  1. spark listener
  2. 洛谷P5524:[Ynoi2012]D1T1——题解
  3. ndk-build官方使用说明
  4. 『正睿OI 2019SC Day4』
  5. In-Memory:哈希索引
  6. ArrayDeque详解
  7. php 无限极分类,根据父级 找子级
  8. Java自学-类和对象 包
  9. 记录下Hbuilder 打包IOS发布时 总是提示错误:ios prifile文件与私钥证书匹配 的问题
  10. JavaScript 之 navigator 对象