linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 56 forks source link

Knife fails with error #2

Closed jbd214 closed 7 years ago

jbd214 commented 9 years ago

I eventually got chef installed. However this is what I get when I run knife: [root@zlxcchf1 pkg]# knife /usr/local/share/gems/gems/chef-12.4.0/Gemfile not found

rposts commented 9 years ago

It seems like your gem environment may not be set correctly. As per step 6:

"export GEM_HOME=/home//.gem/ruby export PATH=/home//.gem/ruby/bin:$PATH Where  is the standard user you are installing under. Note: Run gem env to verify the state of the environment, if later on you have issues installing / running ruby gems please ensure the environment is set correctly."

Let me know if that works.

Thanks.

jbd214 commented 9 years ago

Hi Thanks for your help. I did get it to work. Not sure what changed.

But pretty sure, I had to perform the steps as root rather than a regular user.

I don't know much about ruby, gems, etc. but I thought it was strange that the install location is the source location.

[root@zlxcchf1 chef-config]# bundle show chef-config /root/chef/chef/chef-config [root@zlxcchf1 chef-config]#

 From: rposts <notifications@github.com>

To: linux-on-ibm-z/docs docs@noreply.github.com Cc: jbd214 jbd214@yahoo.com Sent: Tuesday, September 8, 2015 8:10 AM Subject: Re: [docs] Knife fails with error (#2)

It seems like your gem environment may not be set correctly. As per step 6:"export GEM_HOME=/home//.gem/ruby export PATH=/home//.gem/ruby/bin:$PATH Where  is the standard user you are installing under. Note: Run gem env to verify the state of the environment, if later on you have issues installing / running ruby gems please ensure the environment is set correctly."Let me know if that works.Thanks.— Reply to this email directly or view it on GitHub.