分享 RubyGems 2.0.2 发布了

huacnlee · March 07, 2013 · Last by zlfera replied at March 11, 2013 · 2928 hits

修正了 bson_ext 在 ruby 2.0 上的安装问题

RubyGems 2.0.2 installed
unable to convert U+00E1 from UTF-8 to US-ASCII for lib/rubygems/package.rb, skipping
unable to convert U+00E1 from UTF-8 to US-ASCII for lib/rubygems/package/tar_header.rb, skipping
unable to convert U+00E1 from UTF-8 to US-ASCII for lib/rubygems/package/tar_reader.rb, skipping
unable to convert U+00E1 from UTF-8 to US-ASCII for lib/rubygems/package/tar_reader/entry.rb, skipping
unable to convert U+00E1 from UTF-8 to US-ASCII for lib/rubygems/package/tar_writer.rb, skipping
unable to convert U+201C from UTF-8 to US-ASCII for lib/rubygems/specification.rb, skipping
Installing ri documentation for rubygems-2.0.2

ERROR:  While executing gem ... (ArgumentError)
    invalid byte sequence in US-ASCII

我想了解一下,这个是什么问题来的?找了好多地方,回答都无法根本的解决。

#3 楼 @JeskTop 大概是这些文件用微软的编辑器编辑过了吧...

#4 楼 @luikore 不是把。这是服务器里的,怎么会和微软粘上关系了。请问知道怎么解决吗?

#5 楼 @JeskTop 没遇到过这样的问题... 难道是因为服务器上的系统编码是 us-ascii ?

#6 楼 @luikore 是 ruby 升级为 2.0 后,就变成这样的。反而在之前没有出现指挥员的问题。等我研究一下,解决了,在看是什么问题。

好象是编码问题,ruby2.0 直接默认是 utf-8 的。ruby1.9 的不是,干干净净重装 ruby2.0

You need to Sign in before reply, if you don't have an account, please Sign up first.