Chef install from gem to Ubuntu not in path

Hi all,
I’m running Ubuntu 10.10 on my desktop and sudo gem install chef ran
successfully but knife and chef-client didn’t appear in the default
path.

I’m not familiar enough with how ruby and gem put things into the path
(symlinks in /usr/bin?) so could somebody please point me a suitable
document to figure this out?

Many thanks,
Edward

Hi Ed.

Look into /var/lib/gems/1.8/bin, and you gem add into system path.

2011/6/30 Edward Sargisson esarge@pobox.com

Hi all,
I'm running Ubuntu 10.10 on my desktop and sudo gem install chef ran
successfully but knife and chef-client didn't appear in the default
path.

I'm not familiar enough with how ruby and gem put things into the path
(symlinks in /usr/bin?) so could somebody please point me a suitable
document to figure this out?

Many thanks,
Edward

On Wed, Jun 29, 2011 at 2:27 PM, Edward Sargisson esarge@pobox.com wrote:

I'm running Ubuntu 10.10 on my desktop and sudo gem install chef ran
successfully but knife and chef-client didn't appear in the default
path.

I'm not familiar enough with how ruby and gem put things into the path
(symlinks in /usr/bin?) so could somebody please point me a suitable
document to figure this out?

The gem binaries are installed into different places depending on
distribution. As was mentioned, current versions of Debian and Ubuntu
use /var/lib/gems/1.8/bin, which you will need to add to your PATH
variable. Depending on your shell, you can do this system-wide by
adding "PATH=$PATH:/var/lib/gems/1.8/bin" to /etc/profile. Future
versions of the Debian and Ubuntu rubygems package will install
binaries in /usr/local/bin. [1]

Bryan

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403407