Thread: Postgres install problem
Hi, Postgres guru, I am new to Postgres and just downloaded the source to compile on my Caldera 2.2.5. I got a trouble and here is what i did (follwoing the INTALL file): Hardware : Pentium 200 with 32M ram, 2.1G HD(Linux partition) 1)Add a new account postgres 2)make dir /usr/scr/pgsql ; /usr/local/pgsql and changed ownership/group to postgres through root 3) cd /usr/src/pgsql and unzipped the source achive 4)cd /usr/src/pgsql/postgres-6.5.3/src and run ./configure --with-template=linux_i386 --without-CXX make all >make.log 2>&1 & the make failed (see make.log) !! make[3]: Leaving directory `/usr/src/pgsql/postgresql-6.5.3/src/backend/utils/time' gcc -I../../include -I../../backend -O2 -mpentium -Wall -Wmissing-prototyp es -I.. -c fmgrtab.c -o fmgrtab.o ld -r -o SUBSYS.o fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o sort/SUBSYS.o time/SUBSYS.o make[2]: Leaving directory `/usr/src/pgsql/postgresql-6.5.3/src/backend/utils' gcc -o postgres access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o parser/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o ../utils/version.o -lnsl -ldl -lm -export-dynamic libpq/SUBSYS.o: In function `crypt_verify': libpq/SUBSYS.o(.text+0x3ca2): undefined reference to `crypt' libpq/SUBSYS.o: In function `verify_password': libpq/SUBSYS.o(.text+0x3fba): undefined reference to `crypt' make[1]: *** [postgres] Error 1 make[1]: Leaving directory `/usr/src/pgsql/postgresql-6.5.3/src/backend' make: *** [all] Error 2 How can i solve this ? NB: I downloaded bison-1.28 and compiled /installed successfully. I changed Makefile.global to have: YFLAGS= -y -d YACC= /usr/local/bin/bison I also changed Makefile.custom to have CFLAGS = -mpentium Any help is much appreciatted . Peter
On 1999-12-18, Peter Ai mentioned: > gcc -o postgres access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o > commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o > main/SUBSYS.o parser/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o > port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o > storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o > ../utils/version.o -lnsl -ldl -lm -export-dynamic > libpq/SUBSYS.o: In function `crypt_verify': > libpq/SUBSYS.o(.text+0x3ca2): undefined reference to `crypt' > libpq/SUBSYS.o: In function `verify_password': > libpq/SUBSYS.o(.text+0x3fba): undefined reference to `crypt' > make[1]: *** [postgres] Error 1 > make[1]: Leaving directory `/usr/src/pgsql/postgresql-6.5.3/src/backend' > make: *** [all] Error 2 I'm not familiar with Caldera, but there is a slight chance that adding one of -lcrypt or -lshadow to LDFLAGS in Makefile.global (after configure) might help. If that doesn't work, look if your libcrypt.a or libshadow.a library really exists and is findable or let us know what kind of C library you have (ls /lib/libc.*). If that helps then we'd need to fix up configure a little. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden
I think your missing the glibc crypt library, look for libcrypt.so.* in your /lib dir. If it's not there, you'll have to grab it from a Linux site like ftp://sunsite.unc.edu/pub/Linux or from Caldera's website. If you do have the file, try adding -lcrypt to the LIBS line of Makefile.global in src/ At 08:35 PM 12/17/99, Peter Ai wrote: >Hi, Postgres guru, > > I am new to Postgres and just downloaded the source to compile on my >Caldera 2.2.5. I got a trouble and here is what i did (follwoing the >INTALL file): > >Hardware : Pentium 200 with 32M ram, 2.1G HD(Linux partition) > >1)Add a new account postgres >2)make dir /usr/scr/pgsql ; /usr/local/pgsql and changed >ownership/group to postgres through root >3) cd /usr/src/pgsql and unzipped the source achive >4)cd /usr/src/pgsql/postgres-6.5.3/src and run > ./configure --with-template=linux_i386 --without-CXX > make all >make.log 2>&1 & > >the make failed (see make.log) !! > >make[3]: Leaving directory >`/usr/src/pgsql/postgresql-6.5.3/src/backend/utils/time' >gcc -I../../include -I../../backend -O2 -mpentium -Wall -Wmissing-prototyp >es -I.. -c fmgrtab.c -o fmgrtab.o >ld -r -o SUBSYS.o fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o >fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o >sort/SUBSYS.o time/SUBSYS.o >make[2]: Leaving directory >`/usr/src/pgsql/postgresql-6.5.3/src/backend/utils' >gcc -o postgres access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o >commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o >main/SUBSYS.o parser/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o >port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o >storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o >../utils/version.o -lnsl -ldl -lm -export-dynamic >libpq/SUBSYS.o: In function `crypt_verify': >libpq/SUBSYS.o(.text+0x3ca2): undefined reference to `crypt' >libpq/SUBSYS.o: In function `verify_password': >libpq/SUBSYS.o(.text+0x3fba): undefined reference to `crypt' >make[1]: *** [postgres] Error 1 >make[1]: Leaving directory `/usr/src/pgsql/postgresql-6.5.3/src/backend' >make: *** [all] Error 2 > >How can i solve this ? > >NB: >I downloaded bison-1.28 and compiled /installed successfully. > >I changed Makefile.global to have: >YFLAGS= -y -d >YACC= /usr/local/bin/bison > >I also changed Makefile.custom to have >CFLAGS = -mpentium > >Any help is much appreciatted . > >Peter > > > > > >************