X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0785ED1EE6D for ; Tue, 4 May 2004 20:26:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 85892-08 for ; Tue, 4 May 2004 20:26:28 -0300 (ADT) Received: from jimsun.LinxNet.com (jimsun.linxnet.com [64.32.196.134]) by svr1.postgresql.org (Postfix) with ESMTP id 4A85FD1EB44 for ; Tue, 4 May 2004 20:26:25 -0300 (ADT) Received: by jimsun.LinxNet.com (Postfix, from userid 332) id BD2A44315; Tue, 4 May 2004 19:26:27 -0400 (EDT) To: pgsql-admin@postgresql.org Subject: Re: initdb error X-Sun-Charset: US-ASCII Reply-To: pgsql-admin@postgresql.org In-Reply-To: <5a6301c431fd$1cb1d580$0200a8c0@WORKSTATION> Message-Id: <20040504232627.BD2A44315@jimsun.LinxNet.com> Date: Tue, 4 May 2004 19:26:27 -0400 (EDT) From: jseymour@LinxNet.com (Jim Seymour) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/37 X-Sequence-Number: 13353 "Kevin Schroeder" 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 |