Last active
September 26, 2015 06:53
-
-
Save ben-gy/af7f1d825a9f1564f29c to your computer and use it in GitHub Desktop.
This file contains 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
## 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