Created
February 14, 2012 23:12
-
-
Save fishnix/1831476 to your computer and use it in GitHub Desktop.
nokogiri + knife-rackspace install osx lion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Summary: | |
| rvm use 1.9.2 | |
| brew install libxml2 libxslt libiconv | |
| brew link libxml2 libxslt libiconv | |
| gem install nokogiri | |
| gem install knife-rackspace | |
| =================== | |
| Scratch: | |
| mfp:chef-repo fish$ brew install libxml2 | |
| ==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz | |
| ######################################################################## 100.0% | |
| ######################################################################## 100.0%==> ./configure --prefix=/usr/local/Cellar/libxml2/2.7.8 | |
| ==> make | |
| ==> make install | |
| ==> Caveats | |
| This formula is keg-only, so it was not symlinked into /usr/local. | |
| Mac OS X already provides this program and installing another version in | |
| parallel can cause all kinds of trouble. | |
| Generally there are no consequences of this for you. | |
| If you build your own software and it requires this formula, you'll need | |
| to add its lib & include paths to your build variables: | |
| LDFLAGS -L/usr/local/Cellar/libxml2/2.7.8/lib | |
| CPPFLAGS -I/usr/local/Cellar/libxml2/2.7.8/include | |
| ==> Summary | |
| /usr/local/Cellar/libxml2/2.7.8: 294 files, 12M, built in 53 seconds | |
| mfp:chef-repo fish$ brew install libxslt | |
| ==> Downloading ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz | |
| ######################################################################## 100.0% | |
| ######################################################################## 100.0%==> ./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.8 | |
| ==> make | |
| ==> make install | |
| ==> Caveats | |
| To allow the nokogiri gem to link against this libxslt, run | |
| gem install nokogiri -- --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 | |
| ==> Caveats | |
| This formula is keg-only, so it was not symlinked into /usr/local. | |
| Mac OS X already provides this program and installing another version in | |
| parallel can cause all kinds of trouble. | |
| Generally there are no consequences of this for you. | |
| If you build your own software and it requires this formula, you'll need | |
| to add its lib & include paths to your build variables: | |
| LDFLAGS -L/usr/local/Cellar/libxslt/1.1.26/lib | |
| CPPFLAGS -I/usr/local/Cellar/libxslt/1.1.26/include | |
| ==> Summary | |
| /usr/local/Cellar/libxslt/1.1.26: 143 files, 3.3M, built in 25 seconds | |
| mfp:chef-repo fish$ rvm use 1.9.2 | |
| Using /Users/fish/.rvm/gems/ruby-1.9.2-p290 | |
| mfp:chef-repo fish$ gem install nokogiri -- --with-xml2-dir=/usr/local/Cellar/libxml2/2.7.8/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26/ | |
| Building native extensions. This could take a while... | |
| ERROR: Error installing nokogiri: | |
| ERROR: Failed to build gem native extension. | |
| /Users/fish/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb --with-xml2-dir=/usr/local/Cellar/libxml2/2.7.8/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26/ | |
| checking for libxml/parser.h... yes | |
| checking for libxslt/xslt.h... yes | |
| checking for libexslt/exslt.h... yes | |
| checking for iconv_open() in iconv.h... no | |
| checking for iconv_open() in -liconv... no | |
| ----- | |
| libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. | |
| ----- | |
| *** extconf.rb failed *** | |
| Could not create Makefile due to some reason, probably lack of | |
| necessary libraries and/or headers. Check the mkmf.log file for more | |
| details. You may need configuration options. | |
| Provided configuration options: | |
| --with-opt-dir | |
| --with-opt-include | |
| --without-opt-include=${opt-dir}/include | |
| --with-opt-lib | |
| --without-opt-lib=${opt-dir}/lib | |
| --with-make-prog | |
| --without-make-prog | |
| --srcdir=. | |
| --curdir | |
| --ruby=/Users/fish/.rvm/rubies/ruby-1.9.2-p290/bin/ruby | |
| --with-zlib-dir | |
| --without-zlib-dir | |
| --with-zlib-include | |
| --without-zlib-include=${zlib-dir}/include | |
| --with-zlib-lib | |
| --without-zlib-lib=${zlib-dir}/lib | |
| --with-iconv-dir | |
| --without-iconv-dir | |
| --with-iconv-include | |
| --without-iconv-include=${iconv-dir}/include | |
| --with-iconv-lib | |
| --without-iconv-lib=${iconv-dir}/lib | |
| --with-xml2-dir | |
| --with-xml2-include | |
| --without-xml2-include=${xml2-dir}/include | |
| --with-xml2-lib | |
| --without-xml2-lib=${xml2-dir}/lib | |
| --with-xslt-dir | |
| --with-xslt-include | |
| --without-xslt-include=${xslt-dir}/include | |
| --with-xslt-lib | |
| --without-xslt-lib=${xslt-dir}/lib | |
| --with-iconvlib | |
| --without-iconvlib | |
| Gem files will remain installed in /Users/fish/.rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0 for inspection. | |
| Results logged to /Users/fish/.rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out | |
| mfp:chef-repo fish$ brew install libiconv | |
| ==> Downloading http://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Downloading patches | |
| ######################################################################## 100.0% | |
| ######################################################################## 100.0% | |
| ==> Patching | |
| patching file Makefile.devel | |
| Hunk #1 succeeded at 106 (offset 1 line). | |
| patching file lib/converters.h | |
| patching file lib/encodings.def | |
| patching file lib/utf8mac.h | |
| patching file lib/flags.h | |
| ==> ./configure --disable-debug --prefix=/usr/local/Cellar/libiconv/1.14 --enable-extra-encodings | |
| ==> make -f Makefile.devel | |
| ==> make install | |
| ==> Caveats | |
| This formula is keg-only, so it was not symlinked into /usr/local. | |
| Mac OS X already provides this program and installing another version in | |
| parallel can cause all kinds of trouble. | |
| A few software packages require this newer version of libiconv. | |
| Please use this dependency very sparingly. | |
| Generally there are no consequences of this for you. | |
| If you build your own software and it requires this formula, you'll need | |
| to add its lib & include paths to your build variables: | |
| LDFLAGS -L/usr/local/Cellar/libiconv/1.14/lib | |
| CPPFLAGS -I/usr/local/Cellar/libiconv/1.14/include | |
| ==> Summary | |
| /usr/local/Cellar/libiconv/1.14: 25 files, 1.4M, built in 54 seconds | |
| mfp:chef-repo fish$ gem install nokogiri -- --with-xml2-dir=/usr/local/Cellar/libxml2/2.7.8/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26/ --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/ | |
| Building native extensions. This could take a while... | |
| Successfully installed nokogiri-1.5.0 | |
| 1 gem installed | |
| Installing ri documentation for nokogiri-1.5.0... | |
| Installing RDoc documentation for nokogiri-1.5.0... | |
| mfp:chef-repo fish$ brew link libxml2 libxslt libconv | |
| Error: No such keg: /usr/local/Cellar/libconv | |
| mfp:chef-repo fish$ brew link libxml2 libxslt libiconv | |
| Linking /usr/local/Cellar/libxml2/2.7.8... 20 symlinks created | |
| Linking /usr/local/Cellar/libxslt/1.1.26... 27 symlinks created | |
| Linking /usr/local/Cellar/libiconv/1.14... 17 symlinks created | |
| mfp:chef-repo fish$ | |
| mfp:chef-repo fish$ gem install nokogiri | |
| Building native extensions. This could take a while... | |
| Successfully installed nokogiri-1.5.0 | |
| 1 gem installed | |
| Installing ri documentation for nokogiri-1.5.0... | |
| Installing RDoc documentation for nokogiri-1.5.0... | |
| mfp:chef-repo fish$ gem install knife-rackspace | |
| Fetching: fog-0.8.2.gem (100%) | |
| Fetching: knife-rackspace-0.5.12.gem (100%) | |
| Successfully installed fog-0.8.2 | |
| Successfully installed knife-rackspace-0.5.12 | |
| 2 gems installed | |
| Installing ri documentation for fog-0.8.2... | |
| Installing ri documentation for knife-rackspace-0.5.12... | |
| Installing RDoc documentation for fog-0.8.2... | |
| Installing RDoc documentation for knife-rackspace-0.5.12... | |
| mfp:chef-repo fish$ knife rackspace server list | |
| Instance ID Public IP Private IP Flavor Image Name State | |
| <snip> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment