Sinatra报unrecognized option
作者:linux120 发布时间:March 12, 2013 分类:服务器配置
安装部署sinatra时报如下错误:
Successfully installed sinatra-1.3.5
1 gem installed
Installing ri documentation for sinatra-1.3.5...
unrecognized option `--encoding=UTF-8'
For help on options, try 'rdoc --help'
ERROR: While generating documentation for sinatra-1.3.5
... MESSAGE: exit
... RDOC args: --ri --op /usr/lib/ruby/gems/1.8/doc/sinatra-1.3.5/ri --line-numbers --inline-source --title Sinatra --main README.rdoc --encoding=UTF-8 lib README.de.rdoc README.es.rdoc README.fr.rdoc README.hu.rdoc README.jp.rdoc README.ko.rdoc README.pt-br.rdoc README.pt-pt.rdoc README.rdoc README.ru.rdoc README.zh.rdoc LICENSE --title sinatra-1.3.5 Documentation --quiet
以上错误提示encoding无法识别,是由于rdoc引起的问题,解决方法有以下两种:
1、gem install rdoc
2、gem install sinatra --no-rdoc