大家好,我正在尝试运行我的第一个 ror 应用程序
并得到以下错误:
C:\Sites\myapp>rails server
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on thi
s machine.
Run `bundle install` to install missing gems.
所以我写:
C:\Sites\myapp>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/rake-
10.4.2.gem)
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.
最后:
C:\Sites\myapp>gem install rake -v '10.4.2'
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+041D to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437
如您所见,我使用的是 windows.Windows 8 32 位。
我找到了这个答案:在此输入链接描述 https://stackoverflow.com/questions/27325245/ruby-rails-gem-install-error-error-while-executing-gem-encodingundefi
还有其他办法吗?
使用: 1.rubyinstaller-1.9.3-p551.exe 而不是 rubyinstaller-2.1.6.exe 或 ..
2.默认目录C:\Ruby193\
我刚刚在 win-7 32bit 上解决了这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)