user310291
user310291

Reputation: 38190

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 undefined variable or method 'nanoc' ?

Upvotes: 0

Views: 175

Answers (2)

ipd
ipd

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

John Flatness
John Flatness

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

Related Questions