[postgis-users] initdb reporting error.

Seamus Thomas Carroll carrolls at cpsc.ucalgary.ca
Wed Dec 10 13:45:03 PST 2003


Ha,

When in doubt do a make clean.  Did this followed the same steps as
outlined below and now initdb works.

Seamus

On Wed, 10 Dec 2003, Seamus Thomas Carroll wrote:

> Here is the version number:
> /scratch/postgresql/bin/initdb --version
> initdb (PostgreSQL) 7.4
>
> When I type env I am given the following classpath:
> LD_LIBRARY_PATH=/scratch/simgear/lib/:/scratch/plib/lib/:/scratch/postgresql/lib:/usr/local/lib:
>
> I then try to init the db with.
> /scratch/postgresql/bin/initdb -D /home/vraid2/carrolls/database
>
> And then I get the error where it looks at the standard location.  Has any
> one else installed postresql 7.4 in a nonstandard location?
>
> Seamus
>
> On Wed, 10 Dec 2003 chodgson at refractions.net wrote:
>
> > If you do:
> >
> > which initdb
> >
> > What is the result? Are you using the initdb from the old install? It is
> > probably earlier on your path.
> >
> > HTH.
> > Chris
> >
> > Quoting Seamus Thomas Carroll <carrolls at cpsc.ucalgary.ca>:
> >
> > > 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
> > >
> > >
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users at postgis.refractions.net
> > > http://postgis.refractions.net/mailman/listinfo/postgis-users
> > >
> >
> >
> >
> >
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list