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