我是一个Ruby的初学者,正在按照“创建新的Rails项目”进行学习。
但是我无法启动服务器。我尝试了以下操作:
running
rails server
but got:Could not find gem 'tzinfo-data <>= 0> x86-mingw32' in the gems available on the machine. Run 'bundle install' to install missing gems.
running
bundle install
but got:An error occurred while installing rake (10.4.2), and Bundler cannot continue. Make sure that 'gem install rake -v '10.4.2'' succeeds before bundling.
gem 'tzinfo-data'
but got:Unknown command tzinfo-data
gem install tzinfo-data
:Could not find a valid gem 'tzinfo-data' <>= 0>, here is why: Unable to download data from...
我使用的是64位的Windows 8.1操作系统。
按照已接受的答案指南,tzinfo-data
已解决并使用cacert.pem
文件。今天,我正在尝试安装bootstrap-sass
gem文件。我需要另一个.pem文件吗?
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/boots
trap-sass-3.3.1.0.gem)
An error occurred while installing bootstrap-sass (3.3.1.0), and Bundler cannot
continue.
Make sure that `gem install bootstrap-sass -v '3.3.1.0'` succeeds before
bundling.
gem install rails
。这个指令是否成功执行,没有出现错误?你从gem install tzinfo-data
看到的错误信息的剩余部分是什么?来自哪里? - lurker