Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_perl-2.0.1/ cannot find -lgdbm

Status
Not open for further replies.

GrahamBright

Programmer
Oct 31, 2003
65
AT
Hi all,

I'm trying to install mod_per-2.0.1 with Apache 2.0.50 and have problems with compling the module resulting error code.

make[3]: Entering directory `/tmp/mod_perl-2.0.1/xs/APR/APR'
rm -f ../../../blib/arch/auto/APR/APR.so
LD_RUN_PATH="/usr/lib" cc -shared APR.o modperl_error.o modperl_bucket.o modperl_common_util.o modperl_common_log.o -o ../../../blib/arch/auto/APR/APR.so -L/usr/lib -laprutil-0 -lgdbm -ldb-4.2 -lexpat -L/usr/lib -lapr-0 -lrt -lm -lcrypt -lnsl -lpthread -ldl
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lgdbm
collect2: ld returned 1 exit status
make[3]: *** [../../../blib/arch/auto/APR/APR.so] Error 1
make[3]: Leaving directory `/tmp/mod_perl-2.0.1/xs/APR/APR'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/tmp/mod_perl-2.0.1/xs/APR'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/tmp/mod_perl-2.0.1/xs'
make: *** [subdirs] Error 2
WP002244:/tmp/mod_perl-2.0.1 # perl -V | grep libs
libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
WP002244:/tmp/mod_perl-2.0.1 # ls /usr/lib/libgdbm.so*


I've read the tip


which outlines what to do if libgdbm libaries are not symbolic linked but these seem to be fine:


-rwxr-xr-x 1 root root 9827 Oct 2 2004 libgdbm_compat.so.3.0.0
-rwxr-xr-x 1 root root 23220 Oct 2 2004 libgdbm.so.3.0.0
-rwxr-xr-x 1 root root 27246 Oct 2 2004 libgdbm.so.2.0.0
-rwxr-xr-x 1 root root 25526 Oct 2 2004 libgdbm.so.1.7.3
lrwxrwxrwx 1 root root 23 May 25 11:31 libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
lrwxrwxrwx 1 root root 16 May 25 11:31 libgdbm.so.3 -> libgdbm.so.3.0.0
lrwxrwxrwx 1 root root 16 Jul 22 14:00 libgdbm.so.1 -> libgdbm.so.1.7.3
lrwxrwxrwx 1 root root 16 Jul 22 14:00 libgdbm.so.2 -> libgdbm.so.2.0.0
lrwxrwxrwx 1 root root 16 Jul 22 15:39 libgdbm.so -> libgdbm.so.2.0.0
WP002244:/usr/lib # pwd

Any ideas where I'm going wrong.

Thanks,
Graham.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top