|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sao.ru/fetch/HL/install/postgres.html
Дата изменения: Mon Dec 23 18:24:01 2013 Дата индексирования: Fri Feb 28 11:33:15 2014 Кодировка: Поисковые слова: asteroid |
If a Postgres server is yet running on your machine, it would be an advantage
to reuse it (reduce the load on the machine). If you still prefer to have a
separate new server (this is the simplest) you may still have to instruct
Pleinpot to use a free port for the connections with the server, because
the default Postgres port may be yet used by the existing server.
Possibly you can also wish to use the HyperLeda database installed in another
Pleinpot installation, on the local host or through IP connection
(for example to save disk space)... In these cases you must
read the following.
There are three levels to consider in what is installed in the current installation:
cd ${PL_ROOT}
unix/configure
The output of this program is not very easy to read if you are not used to
this kind of procedures, here is what you should look for:
checking for psql... /usr/local/bin/psql
checking for pg_config... pg_config
postgresSQL will be installed by Pleinpot
which would mean that Pleinpot will download and install Postgres.
If Postgres is actually available but not found by Pleinpot,
it may probably be that it is not
installed in a standard place. Put the directory where the Postgres
executables are installed on your PATH.
(eg. setenv PATH "$PATH:/home/postgres/bin").
To make the diagnostics, Pleinpot is looking
for the programs psql and pg_config, the latter
is used to find where the libraries and includes are located.
If finally Pleinpot refuses to find your version of Postgres, you may
leave it install its own version.
The configuration script also check if the Postgres version is compatible
with the one used by Pleinpot: Since version 8.8 Pleinpot is using
Postgres 7.4.2, it is compatible with 7.4 branch.
To use a database and a server which is yet running outside of your new Pleinpot installation, you have to give the name of the database, and possibly the port, to the configure program. The following options must be used:
unix/configure --with-postgres-port=5433
You may see the postgres servers actually running as:
netstat -an | grep PGSQL
If you do not know if this option is required, just proceed without.
You may return to configure later, if the installation procedure
tells you you have to choose a different port.
| HyperLeda | Questions: leda@univ-lyon1.fr |