Skip to content

Instantly share code, notes, and snippets.

@rietta
Created December 12, 2012 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rietta/4269397 to your computer and use it in GitHub Desktop.
Save rietta/4269397 to your computer and use it in GitHub Desktop.
Add the following alias to your .bashrc file to be able to run the "nokofix" command in a project while running bundler. This assumes that libiconv was installed using brew.
alias nokofix="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.13.1/ && bundle config build.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.13.1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment