GNU Health/Operating System-Specific Notes

From Wikibooks, open books for an open world
Jump to: navigation, search

Arch Linux[edit]

Install dependencies[edit]

pacman -S postgresql python2-pip lsb-release
pip2 install cracklib

Initialize the DB cluster[edit]

su - postgres
initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'
exit

Start and enable the PostgreSQL service[edit]

systemctl start postgresql
systemctl enable postgresql

For detailed information, please refer to the Arch Linux PostgreSQL documentation

Continue with the GNU Health Installation

CentOS[edit]

* CentOS Linux 7.1 (Core)
* PostgreSQL 9.2.14
* Python 2.7.5

Install dependencies[edit]

yum install gcc python-devel libxml2-devel libxslt-devel zlib-devel \
    openldap libjpeg-turbo-devel postgresql postgresql-server \
    postgresql-devel cracklib cracklib-python wget
easy_install -U pip

Initialize the DB cluster[edit]

Preferred way:

postgresql-setup initdb

Alternatively:

su - postgres -c initdb -D /var/lib/pgsql/data

Start and enable the PostgreSQL service[edit]

systemctl start postgresql.service
systemctl enable postgresql.service


For detailed information, please refer to the PostgreSQL installation for Red Hat family

Continue with the GNU Health Installation

Debian[edit]

Install dependencies[edit]

apt-get install build-essential python-dev python-pip \
    libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev python-ldap \
    python-imaging python2.7-cracklib postgresql postgresql-server-dev-all libjpeg-dev


Continue with the GNU Health Installation


FreeBSD[edit]

Install dependencies[edit]

pkg install py27-pip gcc py27-cracklib wget py27-lxml postgresql94-server

Link Python and cracklib dictionaries[edit]

ln -si /usr/local/bin/python2.7 /usr/local/bin/python
ln -si /usr/local/libdata/cracklib/pw_dict.* /usr/local/libdata

Init PostgreSQL server[edit]

su - pgsql -c "initdb -D /usr/local/pgsql/data -E UNICODE"


Continue with the GNU Health Installation

OpenSUSE[edit]

For an installation from openSUSE packages, take a look at the Community pages

Add Python Repository[edit]

zypper ar -f http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.1 python

Install dependencies[edit]

zypper install python-devel python-pip

This may install as well python3-pip, which you need to remove again :

zypper rm python3-pip


Install remaining dependencies :

zypper install python-cracklib


zypper install postgresql-server postgresql-devel


zypper install gcc libxml2-devel libxslt-devel libjpeg8-devel

Start and enable the PostgreSQL service[edit]

systemctl start postgresql
systemctl enable postgresql


Continue with the GNU Health Installation

Red Hat[edit]

* Red Hat Enterprise Linux Server 7.1 (Maipo)
* PostgreSQL 9.2.14
* Python 2.7.5

Install dependencies[edit]

yum install gcc python-devel python-pip libxml2-devel libxslt-devel \
    zlib-devel openldap libjpeg-turbo-devel postgresql postgresql-server \
    libpqxx-devel wget

Since on RedHat the package has been removed from their repositories, you can download and install the version that provides CentOS from your page cracklib-python.

Download and installation:

rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/cracklib-python-2.9.0-11.el7.x86_64.rpm

Initialize the DB cluster[edit]

Preferred way:

postgresql-setup initdb

Alternatively:

su - postgres -c initdb -D /var/lib/pgsql/data

Start and enable the PostgreSQL service[edit]

systemctl start postgresql.service
systemctl enable postgresql.service


For detailed information, please refer to the PostgreSQL installation for Red Hat family

Continue with the GNU Health Installation

Ubuntu[edit]

Install dependencies[edit]

apt-get install build-essential python-dev python-pip \
    libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev python-ldap bsdtar \
    python-imaging python2.7-cracklib postgresql postgresql-server-dev-all libjpeg-dev


Continue with the GNU Health Installation

Trisquel[edit]

Install dependencies[edit]

apt-get install build-essential python-dev python-pip \
    libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev python-ldap bsdtar \
    python-imaging python2.7-cracklib postgresql postgresql-server-dev-all libjpeg-dev


Continue with the GNU Health Installation

Installation