Reputation: 38190
I try to install nanoc http://nanoc.stoneship.org/docs/2-installation/
by typing in irb
gem install nano
it says undefined variable or method 'nanoc' ?
Upvotes: 0
Views: 175
Reputation: 5714
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.
Upvotes: 2
Reputation: 33769
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).
Upvotes: 1