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
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

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


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]

Add Password Management Repository[edit]

zypper ar http://download.opensuse.org/repositories/security:/passwordmanagement/openSUSE_13.2 passwordmanagement

Install dependencies[edit]

zypper install python-devel python-pip

At this step, you might get the warning similar to the following :

 Problem: python-devel-2.7.8-1.2.i586 requires python = 2.7.8, but this requirement cannot be provided
  uninstallable providers: python-2.7.8-1.1.i586[openSUSE-13.2-0]
                  python-2.7.8-1.1.i586[repo-oss]
 Solution 1: Following actions will be done:
  do not install python-devel-2.7.8-1.2.i586
  do not install python-pip-1.5-2.1.4.noarch
 Solution 2: deinstallation of patterns-openSUSE-minimal_base-conflicts-20141007-5.1.i586
 Solution 3: break python-devel-2.7.8-1.2.i586 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/3/c] (c)
You can choose "Solution 2"

zypper install python-cracklib


zypper install postgresql-server postgresql-devel


zypper install gcc libxml2-devel libxslt-devel


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 \
    python-imaging python2.7-cracklib postgresql postgresql-server-dev-all


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 \
    python-imaging python2.7-cracklib postgresql postgresql-server-dev-all


Continue with the GNU Health Installation

Installation