Ruby on rails Rails-使用rubygems安装电子表格gem时出错

Ruby on rails Rails-使用rubygems安装电子表格gem时出错,ruby-on-rails,gem,Ruby On Rails,Gem,我希望能够在rails中处理excel spreadhseets。 因此,我正在使用电子表格库。 但是,当我使用rubygems安装电子表格时,我遇到了一个例外: Successfully installed spreadsheet-0.7.1 1 gem installed Installing ri documentation for spreadsheet-0.7.1... unable to convert "\xE2" to UTF-8 in conversion from ASCII

我希望能够在rails中处理excel spreadhseets。
因此,我正在使用
电子表格
库。
但是,当我使用rubygems安装电子表格时,我遇到了一个例外:

Successfully installed spreadsheet-0.7.1
1 gem installed
Installing ri documentation for spreadsheet-0.7.1...
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/internals.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/reader/biff8.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/reader.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/biff8.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/format.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/n_worksheet.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/workbook.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/worksheet.rb, skipping
Installing RDoc documentation for spreadsheet-0.7.1...
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/internals.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/reader/biff8.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/reader.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/biff8.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/format.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/n_worksheet.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/workbook.rb, skipping
unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/spreadsheet/excel/writer/worksheet.rb, skipping`
然后在我的doSomethingController中,我编写了代码:

require 'spreadsheet'
但是服务器返回错误

cannot load such file -- spreadsheet
你能帮我弄清楚发生了什么,我如何修复异常吗

我的环境:

ruby 1.9.3
rubygem 1.8.16
检查您的宝石:

gem list
检查是否正在安装:

gem list | grep spreadsheet 
遵循使用说明,使用说明中还讨论了开发依赖关系:

hoe ~> 2.13   
rdoc ~> 3.10  
网站上有一个很棒的“入门”指南


wiki-也很有用。

您运行的Rails版本是什么?您可以忽略这些异常,它们仅在您安装Rdoc文档文件时发生,
电子表格
gem仍在安装。感谢您的帮助,我遵照您的建议,安装hoe~>2.13 Rdoc~>3.10电子表格~>0.7.1,并检查我的gems电子表格是否已由gem安装,但异常仍然存在,我想可能例外是关于gem而不是电子表格,我的rubygem无法将“\xE2”转换为UTF-8,从ASCII-8BIT转换为UTF-8再转换为GBKhi。我不知道为什么我不能在我的项目中加载电子表格库,当我创建一个新项目,然后加载库时一切都很顺利。谢谢。