15,533
edits
Changes
→Prerequisites: suggestions from https://gramps-project.org/bugs/view.php?id=10909#c55781
== Prerequisites ==
sudo apt-get install postgresql libpq-dev postgresql-client postgresql-client-common
Then install [http://initd.org/psycopg/ Psycopg] (the PostgreSQL adapter for the Python programming language. Which fully implements the Python DB API 2.0 specifications.) on Ubuntu either using:
sudo apt-get install python3-psycopg2
or '''if that does not work''' install from you can install from [https://gramps-project.org/bugs/view.php?id=10909#c55781 pip] using:
sudo apt install libpq-dev python3-dev python3-pip
and then
pip3 install psycopg2
== Setting up a user and db ==
We now have PostgreSQL installed and the PostgreSQL service is running in the background. However, we need to create a user and a database instance to really start using it. Use the sudo command to switch to the new "postgres" account.