Skip to content

Instantly share code, notes, and snippets.

@chrono-meter
Last active August 29, 2015 13:55
Show Gist options
  • Save chrono-meter/8729764 to your computer and use it in GitHub Desktop.
Save chrono-meter/8729764 to your computer and use it in GitHub Desktop.
Build PostgreSQL PL/Python with Python3 on Ubuntu
$ sudo apt-get install build-essential libreadline-dev zlib1g-dev python3-dev
$ wget http://ftp.postgresql.org/pub/source/v9.3.4/postgresql-9.3.4.tar.bz2 -O - | tar xj
$ pushd postgresql-9.3.4
$ PYTHON=`which python3` ./configure --with-python && make
$ sudo make install
$ popd
$ sudo tee /etc/ld.so.conf.d/pgsql.conf
/usr/local/pgsql/lib
$ sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment