Skip to content

Instantly share code, notes, and snippets.

@arturhoo
Last active December 10, 2015 04:18
Show Gist options
  • Save arturhoo/4380525 to your computer and use it in GitHub Desktop.
Save arturhoo/4380525 to your computer and use it in GitHub Desktop.
How to get PostgreSQL working on a Ubuntu 12.04 Server (Precise Pangolin) Vagrant box

Set some locale configs:

sudo locale-gen en_US en_US.UTF-8 
sudo dpkg-reconfigure locales
sudo update-locale LANG=en_US.UTF-8
sudo update-locale LANGUAGE=en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8

Login and logout from the VM and recreate the cluster:

sudo pg_dropcluster --stop 9.1 main
sudo pg_createcluster --start 9.1 main

Voilà!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment