Re: Help on installation

From: "Anthony A(dot) Faust" <afaust(at)Phys(dot)UAlberta(dot)CA>
To: bcheung(at)sunday(dot)com, pgsql-admin(at)postgresql(dot)org
Subject: Re: Help on installation
Date: 1998-09-10 23:26:08
Message-ID: Pine.LNX.3.96.980910171640.24756A-100000@sonora
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Hi there

I am running into a similar problem and managed to make a little
progress.

The shared library problem can be fixed with a little
fudge...although I dont know how security safe it is. When compiling, the
../../interfaces/libpq/libpq.sl path was hardcoded and the final binaries
are not allowed to scan the SHLIB_PATH for the correct library. Using
'chatr' on HP-UX 10.20 try ...

XXX#----------------------------
XXX#!/bin/sh
XXXfor file in pg_dump pg_id psql ; do
XXX chmod u+w $file
XXX chatr +s enable $file
XXX chmod u-w $file
XXXdone
XXX#----------------------------

'chatr +s enable ' allows the program to scan $SHLIB_PATH for libpq.sl.
Just make sure you add the correct path to SHLIB_PATH.

I am still getting core dumps however.

[pneuma] > initdb --username=afaust
initdb: using /users/afaust/bin/pgsql/lib/local1_template1.bki.source as input to create the template database.
initdb: using /users/afaust/bin/pgsql/lib/global1.bki.source as input to create the global classes.
initdb: using /users/afaust/bin/pgsql/lib/pg_hba.conf.sample as the host-based authentication control file.

/usr/lib/dld.sl: Call to mmap() failed - TEXT /users/afaust/bin/pgsql/lib/libpq.sl
/usr/lib/dld.sl: Permission denied
initdb[193]: test: Specify a parameter with this command.
/usr/lib/dld.sl: Call to mmap() failed - TEXT /users/afaust/bin/pgsql/lib/libpq.sl
/usr/lib/dld.sl: Permission denied
/usr/lib/dld.sl: Call to mmap() failed - TEXT /users/afaust/bin/pgsql/lib/libpq.sl
/usr/lib/dld.sl: Permission denied
initdb[201]: test: Specify a parameter with this command.
We are initializing the database system with username afaust (uid=).
This user will own all the files and must also own the server process.

initdb: creating template database in /users/afaust/bin/pgsql/data/base/template1
Running: postgres -boot -C -F -D/users/afaust/bin/pgsql/data -Q template1
ERROR: pg_atoi: error in "f": can't parse "f"
ERROR: pg_atoi: error in "f": can't parse "f"
initdb[267]: 17826 Memory fault(coredump)
initdb: could not create template database
initdb: cleaning up by wiping out /users/afaust/bin/pgsql/data/base/template1

----------------------------------------------------------------------------
Anthony A. Faust | Mail me with "PGP" in subject for my pgp key
Centre for Subatomic Research | FAX: 403 492 3408
University of Alberta | PHONE: 403 492 5017
Edmonton, Alberta, Canada | Do not Fold, Spindle, or Mutilate.
----------------------------------------------------------------------------

Browse pgsql-admin by date

  From Date Subject
Next Message Trever Adams 1998-09-11 00:43:15 pg_crypt
Previous Message Terry Mackintosh 1998-09-10 23:10:46 Re: [ADMIN] Strange behaviour