需要用 nanoc 更新一些文档,想在本地跑起来测试一下效果。
nanoc 安装完毕,文档的源文件也拿到了,bundle install 成功。
可是执行 nanoc tags,和 nanoc compile 的时候,总是报如下的错误
“LoadError: no such file to load -- CGI”
这个跟 CGI 有关系吗?
yuf@ubuntu:~/cf-docs$ nanoc tags
Captain! We’ve been hit!
=== MESSAGE:
LoadError: no such file to load -- CGI
=== COMPILATION STACK:
(empty)
=== BACKTRACE:
- /home/yuf/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
- /home/yuf/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
- lib/fenced_code_block.rb:1:in `'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/code_snippet.rb:36:in `eval'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/code_snippet.rb:36:in `load'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/site.rb:300:in `block in load_code_snippets'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/site.rb:300:in `each'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/site.rb:300:in `load_code_snippets'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/site.rb:244:in `load'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/base/source_data/site.rb:118:in `items'
- commands/tags.rb:25:in `block in define'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/cri-2.1.0/lib/cri/command.rb:255:in `call'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/cri-2.1.0/lib/cri/command.rb:255:in `run'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/cri-2.1.0/lib/cri/command.rb:272:in `run'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/cli.rb:40:in `block in run'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/cli/error_handler.rb:42:in `handle_while'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/cli/error_handler.rb:23:in `handle_while'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/cli.rb:37:in `run'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/bin/nanoc3:12:in `'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/bin/nanoc3:23:in `load'
- /home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/bin/nanoc3:23:in `'
If you believe this is a bug in nanoc, please do report it at
https://github.com/ddfreyne/nanoc/issues/new--thanks!
yuf@ubuntu:~/cf-docs$