knife-softlayer icon indicating copy to clipboard operation
knife-softlayer copied to clipboard

installation instructions improvment

Open Neetuj opened this issue 10 years ago • 2 comments

When i installed knife-soflayer i ran into those issues ( so i paln to create a PR for this soon)

  1. The default location in which knife expects to find this file is ~/.chef/knife.rb

  2. and if you run into installation error like these :- "Building nokogiri using packaged libraries. checking for gzdopen() in -lz... no zlib is missing; necessary for building libxml2 *** extconf.rb failed ***"

then try :- sudo apt-get install zlib1g-dev gem install nokogiri gem install knife-softlayer

Neetuj avatar Feb 05 '15 17:02 Neetuj

I'd love to see a PR with updated documentation.

Your fix though is specific to the platform and version you're working from, and nokogiri causes problems on basically every platform somewhat regularly.

When you put up the PR let's do an alternative recommendation that should fix that problem across most common platforms? Maybe something like this?

export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
gem install knife-softlayer

Thx @Neetuj

cphrmky avatar Feb 05 '15 17:02 cphrmky

yes .. http://www.nokogiri.org/tutorials/installing_nokogiri.html

Neetuj avatar Feb 05 '15 17:02 Neetuj