2012-10-09 76 views
0

我正在使用RVM,Ruby v1.9.3-p125Ruby on Rails v3.2.2。在我的Ubuntu的服務器我試圖安裝remotipart v1.0.2寶石,但我得到了以下錯誤:安裝remotipart 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寶石是否正確安裝?我該如何解決這個問題?

回答

0

您可以嘗試安裝而無需文檔以查看它是否正確安裝。這會將問題與文檔分開。

gem install remotipart -v 1.0.2 --no-ri --no-rdoc 
相關問題