Created
October 1, 2010 03:11
-
-
Save btbytes/605665 to your computer and use it in GitHub Desktop.
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
| ~ brew install postgresql | |
| ==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz | |
| ######################################################################## 100.0% | |
| ==> ./configure --disable-debug --without-perl --without-php --without-pgsql --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 | |
| ==> make | |
| ==> make install | |
| /usr/local/Cellar/ossp-uuid/1.6.2: 11 files, 364K, built in 46 seconds | |
| ==> Downloading http://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v9.0.0/postgresql-9.0.0.tar.bz2 | |
| ######################################################################## 100.0% | |
| ==> ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.0.0 --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-python --with-perl | |
| ==> make install | |
| ==> cd contrib/adminpack; make install | |
| ==> cd contrib/dblink; make install | |
| ==> cd contrib/fuzzystrmatch; make install | |
| ==> cd contrib/lo; make install | |
| ==> cd contrib/uuid-ossp; make install | |
| ==> cd contrib/pg_buffercache; make install | |
| ==> cd contrib/pg_trgm; make install | |
| ==> cd contrib/pgcrypto; make install | |
| ==> cd contrib/tsearch2; make install | |
| ==> cd contrib/vacuumlo; make install | |
| ==> cd contrib/xml2; make install | |
| ==> cd contrib/intarray; make install | |
| ==> cd contrib/pg_upgrade; make install | |
| ==> cd contrib/pg_upgrade_support; make install | |
| ==> Caveats | |
| To build plpython against a specific Python, set PYTHON prior to brewing: | |
| PYTHON=/usr/local/bin/python brew install postgresql | |
| See: | |
| http://www.postgresql.org/docs/9.0/static/install-procedure.html | |
| If this is your first install, create a database with: | |
| initdb /usr/local/var/postgres | |
| If this is your first install, automatically load on login with: | |
| cp /usr/local/Cellar/postgresql/9.0.0/org.postgresql.postgres.plist ~/Library/LaunchAgents | |
| launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist | |
| If this is an upgrade and you already have the org.postgresql.postgres.plist loaded: | |
| launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist | |
| cp /usr/local/Cellar/postgresql/9.0.0/org.postgresql.postgres.plist ~/Library/LaunchAgents | |
| launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist | |
| Or start manually with: | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
| And stop with: | |
| pg_ctl -D /usr/local/var/postgres stop -s -m fast | |
| If you want to install the postgres gem, including ARCHFLAGS is recommended: | |
| env ARCHFLAGS="-arch x86_64" gem install postgres | |
| To install gems without sudo, see the Homebrew wiki. | |
| ==> Summary | |
| /usr/local/Cellar/postgresql/9.0.0: 1217 files, 20M, built in 8.1 minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment