【问题标题】:ruby Encoding::UndefinedConversionErrorruby 编码::UndefinedConversionError
【发布时间】:2015-02-23 08:28:52
【问题描述】:

大家好,我正在尝试运行我的第一个 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

还有其他方法吗?

【问题讨论】:

标签: ruby-on-rails ruby


【解决方案1】:

使用:1.rubyinstaller-1.9.3-p551.exe 代替 ruby​​installer-2.1.6.exe 或 ..
2.默认目录C:\Ruby193\
我刚刚在win-7 32bit下解决了这个问题。

【讨论】:

    猜你喜欢
    • 2012-10-11
    • 2023-03-08
    • 1970-01-01
    • 1970-01-01
    • 2012-04-11
    • 1970-01-01
    • 2014-08-26
    • 2017-10-02
    • 2013-05-01
    相关资源
    最近更新 更多