From: jseymour@linxnet.com
To: pgsql-admin@postgresql.org
Subject: Re: Error running initdb
Date: Tue, 1 Jun 2004 11:56:46 -0400 (EDT)
Message-ID: <20040601155646.EC1124310@jimsun.linxnet.com> (raw)
In-Reply-To: <120DB10316D2B946A3A1BEFB82324BB17D38E8@kodos.tazznetworks.com>
"David Parker" <dparker@tazznetworks.com> wrote:
>
> I'm new to postgresql, first of all, and I'm not sure if this is the
> correct list....
>
> I have built 7.4.2 on Solaris 8/SPARC. I *think* "make install"
> generated all the expected
> artifacts.
>
> When I run initdb, I get the following output:
>
> % initdb -D /home/dparker/servers/install/data/testdb1
[snip]
> creating conversions... ERROR: could not access file
> "$libdir/ascii_and_mic": No such file or directory
>
> initdb: failed
>
> The ascii_and_mic.so is in $PREFIX/lib/postgresql. I've tried copying it
> up one level, and also tried including that path in LD_LIBRARY_PATH. The
> value for $libdir in config.status appears to be correct.
>
> I'm pretty sure I'm missing something obvious. Can somebody give me a
> clue where to look?
[snip]
Had you searched the mailing list's archives, you would've seen
this...
| From jseymour Tue May 4 19:26:27 2004
| To: pgsql-admin@postgresql.org
| Subject: Re: [ADMIN] initdb error
|
| "Kevin Schroeder" <kschroeder@mirageworks.com> wrote:
| > Message-ID: <5a6301c431fd$1cb1d580$0200a8c0@WORKSTATION>
| >
| > 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
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: Error running initdb
In-Reply-To: <20040601155646.EC1124310@jimsun.linxnet.com>
References: <120DB10316D2B946A3A1BEFB82324BB17D38E8@kodos.tazznetworks.com> <20040601155646.EC1124310@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