首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ruby Encoding::UndefinedConversionError

ruby Encoding::UndefinedConversionError
EN

Stack Overflow用户
提问于 2014-12-26 03:32:47
回答 1查看 903关注 0票数 2

大家好,我正在尝试运行我的第一个ror应用程序,得到以下错误:

代码语言:javascript
复制
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.

所以我写道:

代码语言:javascript
复制
 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.

最后:

代码语言:javascript
复制
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

还有别的办法吗?

EN

回答 1

Stack Overflow用户

发布于 2015-06-28 23:39:16

使用: 1.rubyinstaller-1.9.3-p551.exe代替rubyinstaller-2.1.6.exe或..

2.默认目录C:\Ruby193\

我刚刚在win-7 32位解决了这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27650142

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档