Ubuntu: nanoc3 - command not found

41 views
Skip to first unread message

SaForge

unread,
Nov 28, 2009, 3:36:10 AM11/28/09
to nanoc
Dear Team & Users,

to be honest i'm more like a newbie. I'm working under Ubuntu and
looking for things like nanoc and so on. Tested with success
nanoblogger on the console, now i really want to try nanoc, but i
failed with the start.

I've installed via terminal ruby and gems - both with success-messages
and then following the tutorial, installed also BlueCloth. It shows me
that nanoc3 and BlueCloth was installed successfully, but if i go to
the next step and call "nanoc3 create_site tutorial" it shows me
"nanoc3: command not found". That's it...

What did i wrong? Or have to start in a specific directory or call
another (ruby-)console window?

Any help would be great,
Thanks a lot!
saforge

Denis Defreyne

unread,
Nov 28, 2009, 5:52:33 AM11/28/09
to na...@googlegroups.com
On 28 Nov 2009, at 09:36, SaForge wrote:

> [..]
>
> I've installed via terminal ruby and gems - both with success-messages
> and then following the tutorial, installed also BlueCloth. It shows me
> that nanoc3 and BlueCloth was installed successfully, but if i go to
> the next step and call "nanoc3 create_site tutorial" it shows me
> "nanoc3: command not found". That's it...
>
> What did i wrong? Or have to start in a specific directory or call
> another (ruby-)console window?

Hi,

You likely don’t have the path to the gem binaries in your $PATH. This directory is “/var/lib/gems/1.8/bin”. In ~/.profile or ~/.bashrc (or whatever the file is that is loaded by your shell), add like this:

export PATH=$PATH:/var/lib/gems/1.8/bin

For some reason, Debian and Ubuntu don’t automatically add this directory to $PATH. This is one of the reasons why I usually recommend installing Ruby and Rubygems from source instead of using the package manager (apt-get or so).

Hope this helps,

Denis

--
Denis Defreyne
denis.d...@stoneship.org

SaForge

unread,
Nov 28, 2009, 7:04:46 AM11/28/09
to nanoc
Worked... Thanks very much for your time and quick help - now my
weekend is saved and i can play around! :)

Also good to know the path-thing for the future - thanks!
Saforge

On 28 Nov., 11:52, Denis Defreyne <denis.defre...@stoneship.org>
wrote:
> denis.defre...@stoneship.org
Reply all
Reply to author
Forward
0 new messages