pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jseymour@LinxNet.com
To: pgsql-admin@postgresql.org
Subject: Re: initdb error
Date: Tue,  4 May 2004 19:26:27 -0400 (EDT)
Message-ID: <20040504232627.BD2A44315@jimsun.LinxNet.com> (raw)
In-Reply-To: <5a6301c431fd$1cb1d580$0200a8c0@WORKSTATION>

"Kevin Schroeder" <kschroeder@mirageworks.com> wrote:
> 
> Hello,
>     I'm trying to install PostgreSQL on Solaris 9.  Everything's compiled
> properly but when I run initdb I get the following error:
> 
[snip]
> creating conversions... ERROR:  could not load library
> "/usr/local/pgsql/lib/ascii_and_mic.so": ld.so.1:
> /usr/local/pgsql/bin/postgres: fatal: libgcc_s.so.1: open failed: No such
> file or directory
> 
> I found libgcc_s.so.1 in /usr/local/lib and that directory is in
> $LD_LIBRARY_PATH.  Is there anything that I'm missing here or that I need to
> look for in my configure settings?

Is that directory in LD_LIBRARY_PATH when you're su'd to the postgreSQL
user?

I added 

    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export LD_LIBRARY_PATH

to /etc/init.d/postgresql and created a .profile in its home directory
with that in it.

Solved all those problems :).

You can also solve such problems by using the -R switch during build
(man ld) and with Solaris 8/9's new "crle" utility.

-- 
Jim Seymour                  | PGP Public Key available at:
jseymour@LinxNet.com         | http://www.uk.pgp.net/pgpnet/pks-commands.html
http://jimsun.LinxNet.com    |



view thread (3+ messages)  latest in thread

Message-ID: <20040504232627.BD2A44315@jimsun.LinxNet.com>
Permalink:  ../20040504232627.BD2A44315@jimsun.LinxNet.com/
Also on:    postgresql.org/message-id/20040504232627.BD2A44315@jimsun.LinxNet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jseymour@LinxNet.com
  Subject: Re: initdb error
  In-Reply-To: <20040504232627.BD2A44315@jimsun.LinxNet.com>
  References: <5a6301c431fd$1cb1d580$0200a8c0@WORKSTATION> <20040504232627.BD2A44315@jimsun.LinxNet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox