installation de postgresql sur slackware
wget http://slackbuilds.org/slackbuilds/13.1/system/postgresql.tar.gz
tar -zxf postgresql.tar.gz 
cd postgresql
wget ftp://ftp.postgresql.org/pub/source/v8.4.4/postgresql-8.4.4.tar.bz2
groupadd -g 209 postgres
useradd -u 209 -g 209 -d /var/lib/pgsql postgres
./postgresql.SlackBuild 
installpkg /tmp/postgresql-8.4.4-x86_64-1_SBo.tgz 
// installer librairie wxpython
  wget http://slackbuilds.org/slackbuilds/13.1/libraries/wxPython.tar.gz
  tar -zxf wxPython.tar.gz 
  cd wxPython
  ls
  ./wxPython.SlackBuild 
  wget http://downloads.sourceforge.net/wxpython/wxPython-src-2.8.11.0.tar.bz2
  ./wxPython.SlackBuild 
  installpkg /tmp/wxPython-2.8.11.0-x86_64-1_SBo.tgz
// installer pgadmin
wget http://slackbuilds.org/slackbuilds/13.1/system/pgadmin3.tar.gz 
tar -zxf pgadmin3.tar.gz 
cd pgadmin3
wget ftp://ftp.postgresql.org/pub/pgadmin3/release/v1.10.1/src/pgadmin3-1.10.1.tar.gz
./pgadmin3.SlackBuild 
installpkg /tmp/pgadmin3-1.10.1-x86_64-1_SBo.tgz 
// tester en lancant
pgadmin3 
finger
finger postgres
su - postgres 
// chercher le repertoire ou sont stockées les données bdd
locate pgsql
/var/lib/pgsql/data
// initialisation de la base de donnée // modifier le fichier profile
nano /etc/profile

inserer en modifiant le path par celui trouvé

export PGDATA=$PGDATA:/var/lib/pgsql/data

et enfin initialiser la base de donnée

initdb

et lancer le serveur (en étant user postgres)

postgres -D :/var/lib/pgsql/data

pour autoriser connection sur le lan

modifier le fichier

/var/lib/pgsql/data/pg_hba.conf

et insérer les lignes suivantes

 host    all         all       10.0.0.1/8          trust
 host    all         all         192.168.0.1/16          trust

puis modifier le fichier de conf

nano /var/lib/pgsql/:/var/lib/pgsql/data/postgresql.conf
 

insérer la ligne suivante

listen_addresses = '*'
// installer librairie GEOS
wget http://slackbuilds.org/slackbuilds/13.1/libraries/geos.tar.gz
 
  

// Installer la librairie proj

http://slackbuilds.org/repository/13.1/system/proj/
wget http://slackbuilds.org/slackbuilds/13.1/system/proj.tar.gz
tar -zxf proj.tar.gz
cd proj
wget http://download.osgeo.org/proj/proj-4.6.0.tar.gz
 ./proj.SlackBuild

Installer librairie CUnit

wget http://c-unit.googlecode.com/files/c-unit-1.1.1.tar.gz
./configure
make
make install
Connexion a la base impossible