By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,257 Members | 925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,257 IT Pros & Developers. It's quick & easy.

initdb reporting error.

P: n/a
Hi,

I have installed postgres in a non-standard location with this call to
configure:
../configure --prefix=/scratch/postgresql-7.4/
--exec-prefix=/scratch/postgresql-7.4 --libdir=/scratch/postgresql-7.4/lib
make
make install

I then put /scratch/postgresql/bin/ in my PATH and /scratch/postgresql/lib
in my LD_LIBRARY_PATH. I then source my bashrc.

I then run initdb with the following call:
/scratch/postgresql/bin/initdb -D /home/grads/carrolls/database

I am then presented with the following error:
creating conversions... ERROR: could not load library
"/usr/local/pgsql/lib/utf8_and_iso8859_1.so":
/usr/local/pgsql/lib/utf8_and_iso8859_1.so: undefined symbol: elog

initdb: failed

There is an old postgres installation in /usr/local but i do not
understand why initdb would look there. I do not have root permisions so
that is why I have installed at this non-standard location. My Path and
LD_CLASS_PATH do not contain /usr/local/pgsql/....

Does anyone have an idea as to what I may be going wrong? I have looked
everywhere and cant figure out where libdir is being set incorrectly.

Seamus

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wed, 2003-12-10 at 06:06, Seamus Thomas Carroll wrote:
Hi,

I have installed postgres in a non-standard location with this call to
configure:
./configure --prefix=/scratch/postgresql-7.4/
--exec-prefix=/scratch/postgresql-7.4 --libdir=/scratch/postgresql-7.4/lib
make
make install

I then put /scratch/postgresql/bin/ in my PATH and /scratch/postgresql/lib
in my LD_LIBRARY_PATH. I then source my bashrc.


Are PATH and LD_LIBRARY_PATH exported?

Does /scratch/postgresql/bin/ come before /usr/local/pgsql/bin in your
path?
--
Oliver Elphick Ol************@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"I beseech you therefore, brethren, by the mercies of
God, that ye present your bodies a living sacrifice,
holy, acceptable unto God, which is your reasonable
service." Romans 12:1
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.