安装remotipart gem时出现分析器错误

时间:2012-10-09 11:46:13

标签: ruby-on-rails ruby ubuntu gem yard

我正在使用RVMRuby v1.9.3-p125Ruby on Rails v3.2.2。在我的Ubuntu服务器上,我正在尝试安装remotipart v1.0.2 gem,但是我收到以下错误:

$ gem install remotipart -v 1.0.2
Successfully installed remotipart-1.0.2
1 gem installed
Installing ri documentation for remotipart-1.0.2...
Building YARD (yri) index for remotipart-1.0.2...
[error]: ParserSyntaxError: syntax error in `LICENSE`:(1,18): syntax error, unexpected tINTEGER, expecting $end
[error]: Stack trace:
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:517:in `on_parse_error'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:49:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:49:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:15:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/source_parser.rb:438:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/source_parser.rb:361:in `parse_in_order'

[error]: ParserSyntaxError: syntax error in `README.rdoc`:(1,1): syntax error, unexpected '='
[error]: Stack trace:
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:517:in `on_parse_error'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:49:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:49:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/ruby/ruby_parser.rb:15:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/source_parser.rb:438:in `parse'
        /usr/local/rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/parser/source_parser.rb:361:in `parse_in_order'

Installing RDoc documentation for remotipart-1.0.2...

$

这意味着什么?是否正确安装了remotipart gem?我该如何解决这个问题呢?

1 个答案:

答案 0 :(得分:0)

您可以尝试在没有文档的情况下进行安装,看看它是否正确安装。这会将问题与文档隔离开来。

gem install remotipart -v 1.0.2 --no-ri --no-rdoc