Could not find a valid gem 'rails' (>= 0), here is why
来源:互联网 发布:nodejs将数据写入文件 编辑:程序博客网 时间:2024/06/06 10:51
很长一段时间之前 Ruby Rails入门——windows下搭建Ruby Rails Web开发环境 ,由于后来将Ruby的安装文件从 C 盘移动到了 D 盘,也修改了 Path 环境变量,ruby 和 gem 命令都能使用,但是 rails 命令无法使用了,所以执行以下命令重新安装:
gem install rails却输出以下错误信息:ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/specs.4.8.gz)
解决方法:
感兴趣的可以尝试一下,否则请看最后!
执行:
gem sources -a http://rubygems.org会询问是否添加源
Do you want to add this insecure source? [yn]输入 y ,然后回车。
进入项目目录,执行:
rails server
提示:
Could not find rake-12.0.0 in any of the sourcesRun `bundle install` to install missing gems.执行
gem install rake安装 rake。
执行:bundle install
提示:系统找不到指定的路径。
执行:
gem install bundle安装 bundle。
发现不起作用。
打开 D:\Ruby22-x64\bin 目录,打开 bundle.bat 文件,发现里面的目录还是C盘的,还是不行。
发现很多文件路径都是写死的,改起来太麻烦了,还是重新下载安装包重新安装吧。
阅读全文
1 0
- Could not find a valid gem 'rails' (>= 0), here is why
- Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from h
- ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download dat
- Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from h
- ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from
- 安装cocoapods时已经替换成淘宝镜像依然无法成功:ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
- rails server Could not find gem 'sqlite3-ruby (>= 0)'
- 关于“Could not find a valid gem 'bundler' (>= 0) in any repository” 解决办法。
- 遇到Could not find a valid gem 'compass' (>= 0) in any repository
- ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- Could not find a valid gem 'compass' (>= 0) in any repository compass安装失败解决方案
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- rubymine新建rails项目错误信息Could not find gem 'sdoc (>= 0) x86-mingw32'
- pod install报错:could not find a valid gem 'cocoapods'
- Could not find gem
- Could not find gem 'jquery-rails (~> 3.1.1)
- Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfil
- Android创建轻量级数据库SQLite
- PAT+乙1007. 素数对猜想
- Linux下php开启openSSL(大神经验总结)
- Java中类与类之间的关系以及自己的理解
- 个人关于css中几种取消浮动对于其他元素影响的见解
- Could not find a valid gem 'rails' (>= 0), here is why
- 系统广播大全
- Linux学习(四)
- 算法概论课后习题8.8
- JZOJ__Day 6:【普及模拟】神奇的项链(fett)
- Redis基础知识-数据类型
- 【GDOI2018模拟7.10】C
- Java实现-排列列表转换为二分查找树
- 生成器