Skip to content

Commit

Permalink
In the documentation, change the linux installation procedure again. …
Browse files Browse the repository at this point in the history
…Only copy into $SHAREDIR/extension files emaj--* (instead of emaj*). And give information to solve cases when the pg_config command is not installed. Reported by mayeulk, with change suggestions.
  • Loading branch information
beaud76 committed Mar 12, 2018
1 parent d4817be commit 7399fc5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
17 changes: 10 additions & 7 deletions docs/en/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,22 @@ Download the latest E-Maj version by any convenient way. If the *pgxn client* is

pgxn download E-Maj

Then decompress the downloaded archive file and execute the installation procedure with the following commands::
Then decompress the downloaded archive file with the commands::

unzip e-maj-<version>.zip

cd e-maj-<version>/

sudo cp emaj.control $(pg_config --sharedir)/extension/.
Identify the precise location of the *SHAREDIR* directory. Depending on the PostgreSQL installation, the *pg_config --sharedir* shell command may directly report this directory name. Otherwise, look at typical locations like:

sudo cp sql/emaj* $(pg_config --sharedir)/extension/.
* */usr/share/postgresql/<pg_version>* for Debian or Ubuntu
* */usr/pgsql-<pg_version>/share* for RedHat or CentOS

Copy some files to the extension directory of the postgresql version you want to use. As a super-user or pre-pended with sudo, type::

cp emaj.control <SHAREDIR_directory>/extension/.

cp sql/emaj--* <SHAREDIR_directory>/extension/.

The latest E-Maj version is now installed and referenced by PostgreSQL. The e-maj-<version> directory contains the file tree :doc:`described here <content>`.

Expand All @@ -52,10 +59,6 @@ So it is possible to only put the *emaj.control* file into this *SHAREDIR/extens

To setup this, just:

* identify the precise location of the *SHAREDIR* directory by using the shell command ::

pg_config --sharedir

* copy the *emaj.contol* file from the root directory of the decompressed structure into the *SHAREDIR/extension* directory,
* adjust the *directory* parameter of the *emaj.control* file to reflect the actual location of the E-Maj SQL scripts.

2 changes: 1 addition & 1 deletion docs/en/quickStart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To install E-Maj, log on your postgres (or another) account, download E-Maj from

sudo cp emaj.control $(pg_config --sharedir)/extension/.

sudo cp sql/emaj* $(pg_config --sharedir)/extension/.
sudo cp sql/emaj--* $(pg_config --sharedir)/extension/.

For more details, or in case of problem, look at :doc:`there <install>`.

Expand Down
17 changes: 10 additions & 7 deletions docs/fr/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,22 @@ Télécharger la dernière version d’E-Maj par un moyen à votre convenance. S

pgxn download E-Maj

Puis décompresser l’archive et exécuter la procédure d’installation, en enchaînant les commandes suivantes ::
Puis décompresser l’archive avec les commandes suivantes ::

unzip e-maj-<version>.zip

cd e-maj-<version>/

sudo cp emaj.control $(pg_config --sharedir)/extension/.
Identifier la localisation précise du répertoire *SHAREDIR*. Selon l’installation de PostgreSQL, la commande *pg_config --sharedir* peut retourner directement le nom du répertoire. Sinon, rechercher les localisations typiques, telles que :

sudo cp sql/emaj* $(pg_config --sharedir)/extension/.
* */usr/share/postgresql/<pg_version>* pour Debian ou Ubuntu
* */usr/pgsql-<pg_version>/share* pour RedHat ou CentOS

Copier quelques fichiers vers le répertoire des extensions de la version de PostgreSQL souhaitée. En tant que super-utilisateur ou en préfixant les commandes avec sudo, taper ::

cp emaj.control <répertoire_SHAREDIR>/extension/.

cp sql/emaj--* <répertoire_SHAREDIR>/extension/.

La dernière version d’E-Maj est maintenant installée et référencée par PostgreSQL. Le répertoire e-maj-<version> contient l’arborescence :doc:`décrite ici <content>`.

Expand All @@ -50,10 +57,6 @@ Le fichier *emaj.control*, positionné dans le répertoire *SHAREDIR/extension*

Il est donc possible de ne mettre dans ce répertoire *SHAREDIR/extension* que le seul fichier *emaj.control* en créant ce pointeur vers le répertoire de scripts. Pour ce faire, il faut :

* Identifier l’emplacement précis du répertoire *SHAREDIR* de l'installation en utilisant la commande shell ::

pg_config --sharedir

* Copier le fichier *emaj.control* fourni dans le répertoire racine de la version décompressée vers le répertoire *SHAREDIR/extension*,
* Adapter la directive *directory* du fichier *emaj.control* pour spécifier le répertoire sql contenant les scripts d’installation d’E-Maj.

2 changes: 1 addition & 1 deletion docs/fr/quickStart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Pour installer le logiciel E-Maj, connectez-vous à votre compte postgres (ou un

sudo cp emaj.control $(pg_config --sharedir)/extension/.

sudo cp sql/emaj* $(pg_config --sharedir)/extension/.
sudo cp sql/emaj--* $(pg_config --sharedir)/extension/.

Pour plus de détails, ou en cas de problème, allez :doc:`ici <install>`.

Expand Down

0 comments on commit 7399fc5

Please sign in to comment.