Problems when trying to install chef from the head of github

Hi folks,

Hope that this does not disturb your vacations. :slight_smile:

I’m trying to install chef from the head of github on ubuntu 9.10, following
the wiki: http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD.
But I meet the problems when trying to following command:

cd ~/chef
sudo gem install merb-core
rake install

I got the following error:

dikang@dikang-desktop:~/temp/chef$ rake install
(in /home/dikang/temp/chef)
rake install
(in /home/dikang/temp/chef/chef)
mkdir -p pkg
WARNING: no rubyforge_project specified
WARNING: description and summary are identical
Successfully built RubyGem
Name: chef
Version: 0.8.0
File: chef-0.8.0.gem
mv chef-0.8.0.gem pkg/chef-0.8.0.gem
sudo gem install pkg/chef-0.8.0 --no-rdoc --no-ri
Building native extensions. This could take a while…
ERROR: Error installing pkg/chef-0.8.0:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.2.0 for
inspection.
Results logged to
/var/lib/gems/1.8/gems/json-1.2.0/ext/json/ext/generator/gem_make.out
rake aborted!
Command failed with status (1): [sudo gem install pkg/chef-0.8.0 --no-rdoc
…]
/home/dikang/temp/chef/chef/Rakefile:44
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake install…]
/home/dikang/temp/chef/Rakefile:17
(See full trace by running task with --trace)

Could you give me any advices about that?

Happy new Year!
Dikang

Hello,

On 28/12/2009, at 9:09 PM, Dikang Gu dikang85@gmail.com wrote:

Hi folks,

Hope that this does not disturb your vacations. :slight_smile:

I'm trying to install chef from the head of github on ubuntu 9.10,
following the wiki:

This document has not been updated for the current HEAD, which is Chef
0.8

http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD. But
I meet the problems when trying to following command:

cd ~/chef
sudo gem install merb-core
rake install

I got the following error:

The following error is from missing debian/ubuntu package libruby1.8-
dev, if I recall correctly.

dikang@dikang-desktop:~/temp/chef$ rake install
(in /home/dikang/temp/chef)
rake install
(in /home/dikang/temp/chef/chef)
mkdir -p pkg
WARNING: no rubyforge_project specified
WARNING: description and summary are identical
Successfully built RubyGem
Name: chef
Version: 0.8.0
File: chef-0.8.0.gem
mv chef-0.8.0.gem pkg/chef-0.8.0.gem
sudo gem install pkg/chef-0.8.0 --no-rdoc --no-ri
Building native extensions. This could take a while...
ERROR: Error installing pkg/chef-0.8.0:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.2.0
for inspection.
Results logged to /var/lib/gems/1.8/gems/json-1.2.0/ext/json/ext/
generator/gem_make.out
rake aborted!
Command failed with status (1): [sudo gem install pkg/chef-0.8.0 --
no-rdoc ...]
/home/dikang/temp/chef/chef/Rakefile:44
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake install...]
/home/dikang/temp/chef/Rakefile:17
(See full trace by running task with --trace)

Could you give me any advices about that?

Happy new Year!
Dikang

Regards,

AJ

Thanks for your information AJ.

I just tried another document :
http://likens.us/articles/2009/12/14/chef-8-down-and-dirty-in-screen/ to
install the chef 0.8.

It seems good until I try to open the http://localhost:4000 in the browser,
I meet the error:

Unauthorized 401 Failed to authenticate!
what does this mean?

And as said in the doc, where should I configure the following information?

  1. Now configure knife to work with the webui key and you should be solid.

OPSCODE_USER="chef-webui";export OPSCODE_USER
OPSCODE_KEY="/etc/chef/webui.pem";export OPSCODE_KEY

Thanks

Dikang

On Mon, Dec 28, 2009 at 4:27 PM, Arjuna Christensen aj@opscode.com wrote:

Hello,

On 28/12/2009, at 9:09 PM, Dikang Gu dikang85@gmail.com wrote:

Hi folks,

Hope that this does not disturb your vacations. :slight_smile:

I'm trying to install chef from the head of github on ubuntu 9.10,
following the wiki:
http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD

This document has not been updated for the current HEAD, which is Chef 0.8

http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD
http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD. But I
meet the problems when trying to following command:

cd ~/chef
sudo gem install merb-core
rake install

I got the following error:

The following error is from missing debian/ubuntu package libruby1.8-dev,
if I recall correctly.

dikang@dikang-desktop:~/temp/chef$ rake install
(in /home/dikang/temp/chef)
rake install
(in /home/dikang/temp/chef/chef)
mkdir -p pkg
WARNING: no rubyforge_project specified
WARNING: description and summary are identical
Successfully built RubyGem
Name: chef
Version: 0.8.0
File: chef-0.8.0.gem
mv chef-0.8.0.gem pkg/chef-0.8.0.gem
sudo gem install pkg/chef-0.8.0 --no-rdoc --no-ri
Building native extensions. This could take a while...
ERROR: Error installing pkg/chef-0.8.0:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.2.0 for
inspection.
Results logged to
/var/lib/gems/1.8/gems/json-1.2.0/ext/json/ext/generator/gem_make.out
rake aborted!
Command failed with status (1): [sudo gem install pkg/chef-0.8.0 --no-rdoc
...]
/home/dikang/temp/chef/chef/Rakefile:44
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake install...]
/home/dikang/temp/chef/Rakefile:17
(See full trace by running task with --trace)

Could you give me any advices about that?

Happy new Year!
Dikang

Regards,

AJ

Get the answer from IRC. :slight_smile:

Dikang

On Mon, Dec 28, 2009 at 7:18 PM, Dikang Gu dikang85@gmail.com wrote:

Thanks for your information AJ.

I just tried another document :
http://likens.us/articles/2009/12/14/chef-8-down-and-dirty-in-screen/ to
install the chef 0.8.

It seems good until I try to open the http://localhost:4000 in the
browser, I meet the error:

Unauthorized 401 Failed to authenticate!
what does this mean?

And as said in the doc, where should I configure the following information?

  1. Now configure knife to work with the webui key and you should be solid.

OPSCODE_USER="chef-webui";export OPSCODE_USER
OPSCODE_KEY="/etc/chef/webui.pem";export OPSCODE_KEY

Thanks

Dikang

On Mon, Dec 28, 2009 at 4:27 PM, Arjuna Christensen aj@opscode.comwrote:

Hello,

On 28/12/2009, at 9:09 PM, Dikang Gu dikang85@gmail.com wrote:

Hi folks,

Hope that this does not disturb your vacations. :slight_smile:

I'm trying to install chef from the head of github on ubuntu 9.10,
following the wiki:
http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD

This document has not been updated for the current HEAD, which is Chef 0.8

http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD
http://wiki.opscode.com/display/chef/Installing+Chef+from+HEAD. But I
meet the problems when trying to following command:

cd ~/chef
sudo gem install merb-core
rake install

I got the following error:

The following error is from missing debian/ubuntu package libruby1.8-dev,
if I recall correctly.

dikang@dikang-desktop:~/temp/chef$ rake install
(in /home/dikang/temp/chef)
rake install
(in /home/dikang/temp/chef/chef)
mkdir -p pkg
WARNING: no rubyforge_project specified
WARNING: description and summary are identical
Successfully built RubyGem
Name: chef
Version: 0.8.0
File: chef-0.8.0.gem
mv chef-0.8.0.gem pkg/chef-0.8.0.gem
sudo gem install pkg/chef-0.8.0 --no-rdoc --no-ri
Building native extensions. This could take a while...
ERROR: Error installing pkg/chef-0.8.0:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.2.0 for
inspection.
Results logged to
/var/lib/gems/1.8/gems/json-1.2.0/ext/json/ext/generator/gem_make.out
rake aborted!
Command failed with status (1): [sudo gem install pkg/chef-0.8.0 --no-rdoc
...]
/home/dikang/temp/chef/chef/Rakefile:44
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake install...]
/home/dikang/temp/chef/Rakefile:17
(See full trace by running task with --trace)

Could you give me any advices about that?

Happy new Year!
Dikang

Regards,

AJ