I’ve recently moved to Ubuntu for my work machine, and wanted to set up PostgreSQL using the asdf version manager. As it turns out, it is not installed with UUID support out the box, so extra options need to be passed in.
In short, the steps are:
- Install asdf
- Install the postgres plugin
- Install UUID dependencies with
sudo apt-get install uuid-dev
- Run the command below to install
POSTGRES_EXTRA_CONFIGURE_OPTIONS="--with-uuid=e2fs" asdf install posgres 9.6.12
Once installed, follow the steps in the plugin’s readme to start postgres.
Save these options
If you don’t want to have to search for this blog post to copy paste these options every time, you can store the options in your
~/.asdf-postgres-configure-options file. The contents will look like the following:
With you options in this file, you can simply run
asdf install postgres <version>, and it is automatically installed with UUID support.
If Datadog support is helpful, I’d recommend adding one more option to your install. My
~/.asdf-postgres-configure-options looks like this: