address@hidden:~/gnuhealth-3.2.9 $ ./gnuhealth-setup install
2018-09-29 03:25:15 [INFO] Starting GNU Health 3.2.9 installation...
2018-09-29 03:25:15 [INFO] Checking requirements
-> Looking for wget... wget is /usr/bin/wget
-> Looking for 2to3... 2to3 is /usr/bin/2to3
-> Looking for patch... patch is /usr/bin/patch
-> Looking for the Python Interpreter command... python is /usr/bin/python
2018-09-29 03:25:15 [INFO] Found Python 3.5.3
-> Looking for PIP command...
2018-09-29 03:25:15 [INFO] Running on GNU/LINUX
-> Looking for lsb_release ... lsb_release is /usr/bin/lsb_release
2018-09-29 03:25:18 [INFO] GNU / Linux distro: Raspbian
2018-09-29 03:25:18 [INFO] OK.
2018-09-29 03:25:18 [INFO] Creating temporary directory...
2018-09-29 03:25:19 [INFO] OK.
2018-09-29 03:25:19 [INFO] Creating destination directories...
2018-09-29 03:25:19 [INFO] OK.
2018-09-29 03:25:19 [INFO] Updating Python dependencies...
2018-09-29 03:25:19 [INFO] Checking requirements
-> Looking for wget... wget is /usr/bin/wget
-> Looking for 2to3... 2to3 is /usr/bin/2to3
-> Looking for patch... patch is /usr/bin/patch
-> Looking for the Python Interpreter command... python is /usr/bin/python
2018-09-29 03:25:19 [INFO] Found Python 3.5.3
-> Looking for PIP command...
2018-09-29 03:25:19 [INFO] Running on GNU/LINUX
-> Looking for lsb_release ... lsb_release is /usr/bin/lsb_release
2018-09-29 03:25:19 [INFO] GNU / Linux distro: Raspbian
2018-09-29 03:25:19 [INFO] OK.
2018-09-29 03:25:23 [WARNING] Skipping local PYTHON-LDAP installation. Please refer to the Wikibook to install it
2018-09-29 03:25:23 [INFO] Installing python dependencies with pip-18.0 ...
Requirement already up-to-date: pytz in /home/gnuhealth/.local/lib/python3.5/site-packages (2018.5)
Requirement already up-to-date: wrapt in /home/gnuhealth/.local/lib/python3.5/site-packages (1.10.11)
Requirement already up-to-date: werkzeug in /home/gnuhealth/.local/lib/python3.5/site-packages (0.14.1)
Requirement already up-to-date: six in /home/gnuhealth/.local/lib/python3.5/site-packages (1.11.0)
Requirement already up-to-date: lxml in /home/gnuhealth/.local/lib/python3.5/site-packages (4.2.5)
Requirement already up-to-date: relatorio in /home/gnuhealth/.local/lib/python3.5/site-packages (0.8.0)
Requirement already satisfied, skipping upgrade: lxml>=2.0 in /home/gnuhealth/.local/lib/python3.5/site-packages (from relatorio) (4.2.5)
Requirement already satisfied, skipping upgrade: Genshi>=0.5 in /home/gnuhealth/.local/lib/python3.5/site-packages (from relatorio) (0.7.1)
Requirement already up-to-date: python-dateutil in /home/gnuhealth/.local/lib/python3.5/site-packages (2.7.3)
Requirement already satisfied, skipping upgrade: six>=1.5 in /home/gnuhealth/.local/lib/python3.5/site-packages (from python-dateutil) (1.11.0)
Collecting psycopg2
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-1gktfl8r/psycopg2/
2018-09-29 03:26:39 [INFO] Bailing out !
2018-09-29 03:26:39 [INFO] Cleaning up temp directories at /tmp/gnuhealth_installer
2018-09-29 03:26:39 [INFO] removing base dir at /home/gnuhealth/gnuhealth