ruby Encoding :: UndefinedConversionError

时间:2014-12-25 19:32:47

标签: ruby-on-rails ruby

大家好我正试图运行我的第一个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位。

我找到了这个答案:enter link description here

还有其他方法吗?

1 个答案:

答案 0 :(得分:0)

使用:1.rubyinstaller-1.9.3-p551.exe而不是rubyinstaller-2.1.6.exe或..
2.Default目录C:\ Ruby193 \
我刚刚在win-7 32bit处解决了这个问题。