<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>ntoskrnl (frank yu)</title>
    <link>https://ruby-china.org/ntoskrnl</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>有谁熟悉 nanoc 吗？</title>
      <description>&lt;p&gt;需要用 nanoc 更新一些文档，想在本地跑起来测试一下效果。&lt;/p&gt;

&lt;p&gt;nanoc 安装完毕，文档的源文件也拿到了，bundle install 成功。&lt;/p&gt;

&lt;p&gt;可是执行 nanoc tags，和 nanoc compile 的时候，总是报如下的错误&lt;/p&gt;

&lt;p&gt;“LoadError: no such file to load -- CGI”
这个跟 CGI 有关系吗？&lt;/p&gt;

&lt;p&gt;yuf@ubuntu:~/cf-docs$ nanoc tags&lt;/p&gt;

&lt;p&gt;Captain! We’ve been hit!&lt;/p&gt;

&lt;p&gt;=== MESSAGE:&lt;/p&gt;

&lt;p&gt;LoadError: no such file to load -- CGI&lt;/p&gt;

&lt;p&gt;=== COMPILATION STACK:&lt;/p&gt;

&lt;p&gt;(empty)&lt;/p&gt;

&lt;p&gt;=== BACKTRACE:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;/home/yuf/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'&lt;/li&gt;
&lt;li&gt;lib/fenced_code_block.rb:1:in `'
&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;commands/tags.rb:25:in `block in define'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/cri-2.1.0/lib/cri/command.rb:255:in `call'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/cri-2.1.0/lib/cri/command.rb:255:in `run'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/cri-2.1.0/lib/cri/command.rb:272:in `run'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/cli.rb:40:in `block in run'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/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'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/lib/nanoc3/cli.rb:37:in `run'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/gems/nanoc3-3.2.4/bin/nanoc3:12:in `'
&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/bin/nanoc3:23:in `load'&lt;/li&gt;
&lt;li&gt;/home/yuf/.rvm/gems/ruby-1.9.2-p320@docs/bin/nanoc3:23:in `'
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you believe this is a bug in nanoc, please do report it at
&lt;a href="https://github.com/ddfreyne/nanoc/issues/new" rel="nofollow" target="_blank"&gt;https://github.com/ddfreyne/nanoc/issues/new&lt;/a&gt;--thanks!
yuf@ubuntu:~/cf-docs$ &lt;/p&gt;</description>
      <author>ntoskrnl</author>
      <pubDate>Sun, 30 Sep 2012 12:39:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/5836</link>
      <guid>https://ruby-china.org/topics/5836</guid>
    </item>
    <item>
      <title>RVM 下面的 bundle install 失败</title>
      <description>&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gemsets for ruby-1.9.2-p290 (found in /home/yuf/.rvm/gems/ruby-1.9.2-p290)
   (default)
=&amp;gt; docs
   global

yuf@ubuntu:~/cf-docs$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.
yuf@ubuntu:~/cf-docs$ gem install bundler
Successfully installed bundler-1.2.1
1 gem installed
Installing ri documentation for bundler-1.2.1...
Installing RDoc documentation for bundler-1.2.1...
yuf@ubuntu:~/cf-docs$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.
yuf@ubuntu:~/cf-docs$ rvm gemset list
yuf@ubuntu:~/cf-docs$ which bundle
/home/yuf/.rvm/bin/bundle
yuf@ubuntu:~/cf-docs$ bundle
ERROR: Gem bundler is not installed, run `gem install bundler` first.
yuf@ubuntu:~/cf-docs$
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;rvm 下面做了一个名叫 docs 的 gemset，也安装了 bundler，但是就是死活做不了 bundle install。手工安装了 gem，但是似乎有问题。&lt;/p&gt;

&lt;p&gt;哪位大神遇到过类似的问题？&lt;/p&gt;</description>
      <author>ntoskrnl</author>
      <pubDate>Sat, 29 Sep 2012 16:38:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/5829</link>
      <guid>https://ruby-china.org/topics/5829</guid>
    </item>
  </channel>
</rss>
