Skip to content

Instantly share code, notes, and snippets.

@ben-gy
Last active September 26, 2015 06:53
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 ben-gy/af7f1d825a9f1564f29c to your computer and use it in GitHub Desktop.
Save ben-gy/af7f1d825a9f1564f29c to your computer and use it in GitHub Desktop.
## Installing nokigiri
### on Mavericks
brew install libxml2
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
bundle install
### on Yosemite
brew install libxml2
bundle config build.nokogiri --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/
bundle install
#### if the second command for yosemite fails try one of these
sudo gem install nokogiri -v '1.6.6.2' -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib
sudo env ARCHFLAGS="-arch x86_64" gem install nokogiri -- --use-system-libraries -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib --with-xslt-lib=/usr/local/lib --with-xslt-include=/usr/local/include
### Drop Postgresql database from command line
psql -U postgres -c "drop database databasename"
#### or from inside psql
DROP DATABASE databasename;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment