新建HelloWorld项目时,bundle install无法执行...异常:could not fectch specs from...

w_chao2012 2013-03-22 10:09:00
小弟刚开始学习ROR开发,
今天使用railsinstaller-2.2.1一键安装
然后使用rails new HelloWorld新建项目
但是,新建项目最后一行出现异常:


这是版本信息:

同时:http://localhost:3000也无法出现欢迎页面,提示“该页无法显示”

麻烦大家详细说下...谢谢!
...全文
883 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wccxiaoan 2013-04-02
  • 打赏
  • 举报
回复
引用 1 楼 babyding 的回复:
first, make sure you can access the https://rubygems.org/ when you use rails to new a project, it will help you to generate some files and folders, the structure like below: |-- Gemfile……
此楼正解
HeLiang7 2013-03-29
  • 打赏
  • 举报
回复
换淘宝的源。 别用windows,碰到的问题各种的。
reyesyang 2013-03-27
  • 打赏
  • 举报
回复
引用 2 楼 u010045785 的回复:
浏览器里能访问https://rubygems.org/吗? 这跟国内的网络环境有关吧,我执行bundle install也经常timeout之类的。。。多试几次,或者换用taobao的镜像(http://ruby.taobao.org/)试试
赞成 2 楼,rubygems.org 经常被墙,所以只能开 VPN 或者换淘宝的镜像。具体可参考 http://ruby.taobao.org 页面
u010045785 2013-03-26
  • 打赏
  • 举报
回复
浏览器里能访问https://rubygems.org/吗? 这跟国内的网络环境有关吧,我执行bundle install也经常timeout之类的。。。多试几次,或者换用taobao的镜像(http://ruby.taobao.org/)试试
babyding 2013-03-23
  • 打赏
  • 举报
回复
first, make sure you can access the https://rubygems.org/ when you use rails to new a project, it will help you to generate some files and folders, the structure like below: |-- Gemfile |-- Gemfile.lock |-- README.rdoc |-- Rakefile |-- app |-- config |-- config.ru |-- db |-- doc |-- lib |-- log |-- public |-- script |-- test |-- tmp `-- vendor after created this files, rails will call bundle to install some gems in the Gemfile. the first line in the Gemfile is source 'https://rubygems.org', of course, you can add any source what you want. but you need to double check this source that can been accessed. when you installed all gem package in the Gemfile, you can start rails service. if you lose some one gem, the rails will give you some error information that will told you which gem is lost. just use 'bundle install' to fix these issues. So your trouble is, at least through your information, you cannot get gem source from https://rubygems.org. I don't like window version. It alway told me, you lost these thing or lost those, faint. So change into linux is not bad idea. hope this can help you.

2,763

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ruby/Rails
社区管理员
  • Ruby/Rails社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧