Skip to content

Instantly share code, notes, and snippets.

@tkaemming
Created August 22, 2010 21:58
Show Gist options
  • Save tkaemming/544329 to your computer and use it in GitHub Desktop.
Save tkaemming/544329 to your computer and use it in GitHub Desktop.
tedkaemming@reventon % brew install postgresql postgis gdal ~
==> 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 9 seconds
==> Downloading http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/source/v8.4.4/postgresql-8.4.4.tar.bz2
######################################################################## 100.0%
==> ./configure --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --prefix=/usr/local/Cellar/postgresql/8.4.4 --disable-de
==> 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
==> 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/8.4/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/8.4.4/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 com.mysql.mysqld.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
cp /usr/local/Cellar/postgresql/8.4.4/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/8.4.4: 2345 files, 32M, built in 117 seconds
==> Downloading http://download.osgeo.org/proj/proj-4.7.0.tar.gz
######################################################################## 100.0%
==> Downloading http://download.osgeo.org/proj/proj-datumgrid-1.5.zip
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/proj/4.7.0 --disable-debug --disable-dependency-tracking
==> make install
/usr/local/Cellar/proj/4.7.0: 48 files, 5.6M, built in 26 seconds
==> Downloading http://download.osgeo.org/geos/geos-3.2.2.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/geos/3.2.2 --disable-debug --disable-dependency-tracking
==> make install
/usr/local/Cellar/geos/3.2.2: 355 files, 7.7M, built in 2.4 minutes
==> Downloading http://postgis.refractions.net/download/postgis-1.5.1.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/postgis/1.5.1 --disable-dependency-tracking --with-projdir=/usr/local
==> make install
==> Caveats
To create a spatially-enabled database, see the documentation:
http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2786223
==> Summary
/usr/local/Cellar/postgis/1.5.1: 15 files, 5.0M, built in 22 seconds
==> Downloading http://download.osgeo.org/libtiff/tiff-3.9.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/3.9.2 --disable-debug --mandir=/usr/local/Cellar/libtiff/3.9.2/share/man
==> make install
/usr/local/Cellar/libtiff/3.9.2: 235 files, 3.6M, built in 26 seconds
==> Downloading http://downloads.sourceforge.net/project/giflib/giflib%204.x/giflib-4.1.6/giflib-4.1.6.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/giflib/4.1.6 --disable-debug --disable-dependency-tracking
==> make install
/usr/local/Cellar/giflib/4.1.6: 36 files, 708K, built in 12 seconds
==> Downloading http://download.osgeo.org/gdal/gdal-1.7.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gdal/1.7.2 --disable-debug --disable-dependency-tracking --with-pthreads --with-local=/usr/local/Cellar/gdal/1.7.2 --with-png=/usr/X11 --
==> make
==> make install
/usr/local/Cellar/gdal/1.7.2: 106 files, 19M, built in 3.4 minutes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment