开发者

Trying Ruby: why can't I install nanoc?

I try to install nanoc http://nanoc.stoneship.org/docs/2-installation/

by typing in irb

gem install nano

it says undef开发者_如何学Pythonined variable or method 'nanoc' ?


You need to install it from the shell, not IRB. Gem is a command, i.e.

% which gem

/usr/bin/gem

% gem install nanoc

ian.


That gem install command is meant to be run in your normal system shell (something like Bash, for example).

irb is a Ruby shell, it interactively executes Ruby code. You'll notice that the instructions you link to immediately tell you to quit irb after starting it (they only told you to run it to make sure Ruby was installed).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜