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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux newbie installing Apache - cannot find libmm.so.11

Status
Not open for further replies.

JohanPe

Technical User
May 28, 2002
4
BE
Hi all,

I'm a newbie to linux. I have to investigate the possibility to replace MS exchange server with a linux alternative. I found a howto (postfix-cyrus-Web-cyradmin-howto on which needs apache with php for the graphic interface. I downloaded the apache compile howto from the same site) and was following it. All went well untill I had to run make to install apache...

It gave the error:
...
gcc -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208108 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite `../apaci` -L/usr/local/mm-1.1.3/.libs -o gen_test_char gen_test_char.o -lm -lcrypt -ldb1 -rdynamic -Wl,-rpath,/usr/lib/perl5/5.6.1/i586-linux/CORE /usr/lib/perl5/5.6.1/i586-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/i586-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil -lmm -ldl
./gen_test_char >test_char.h
./gen_test_char: error while loading shared libraries: libmm.so.11: cannot open shared object file: No such file or directory
make[3]: *** [test_char.h] Error 127
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/apache_1.3.24/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/apache_1.3.24'
make: *** [build] Error 2

As far as I can read what is says is that it can't find the file libmm.so.11. When I run whereis libmm.so.11 I get /usr/local/lib/libmm.so.11 and I found the file also in /usr/local/mm-1.1.3/.libs
I ran configure as mentioned in the howto with:
EAPI_MM="/usr/local/mm-1.1.3" SSL_BASE="/usr/local/ssl" ./configure --enable-module=unique_id --enable-module=rewrite --enable-module=speling --enable-module=expires --enable-module=info --enable-module=log_agent --enable-module=log_referer --enable-module=usertrack --enable-module=proxy --enable-module=userdir --enable-module=so --enable-shared=ssl --enable-module=ssl --activate-module=src/modules/perl/libperl.a --enable-module=perl

It gave no errors. When I run make I get the error mentioned before... I think it's a little thing I do wrong - or that's mentioned wrong in the howto.
I tried changing the path to
EAPI_MM="/usr/local/lib" SSL_BASE="/usr/local/ssl" without changing the rest of the configure command, but that gave me :
Configure:Error: Cannot find MM library under /usr/local/lib
changing the path to
EAPI_MM="/usr/local/mm-1.1.3/.libs" \ SSL_BASE="/usr/local/ssl" also without changing the rest of the configure command but that gave me:
Configure:Error: Cannot find MM library under /usr/mm/mm-1.1.3/.libs

Can anybody please help me?

Thanks in advance!
Johan
 
What flavor of linux are you running? Some can install from RPMs so you don't have to compile packages you want to install. It looks like it's having problems with linking to the shared object libraries. Try running "ldconfig -v" and see if that helps.
 
I tried ldconfig -v: it worked!!! Thanks!!!
It passes that point now, but it stops now at the file ndbm.h:
...
===> src/modules/standard
gcc -c -I../.. -I/usr/lib/perl5/5.6.1/i586-linux/CORE -I/usr/local/mm-1.1.3 -I../../os/unix -I../../include -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208108 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` mod_rewrite.c
In file included from mod_rewrite.c:93:
mod_rewrite.h:133: ndbm.h: No such file or directory
make[4]: *** [mod_rewrite.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/apache_1.3.24/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/apache_1.3.24'
make: *** [build] Error 2

this file is on my system in the directory /usr/include/db1
I tried the same thing (ldconfig -v) but it's magic was gone - it didn't work anymore... :(

Any idea how to resolve this?

I'm working with SUSE 8.0 - Apache is indeed on the CD-Rom, but the howto is for SUSE 8.0 and it is building explicitly the apache software from source. Maybe because it needs a few modules that would otherwise not install??? I'm just playing around in Linux for a month - I don't know enough to find my way on my own...

Allready very much thanks!
Johan
 
Hi all,

the mystery is solved! the system was looking for nmdb.h from gdbm-devel. It only found the nmdb.h from db1-devel - not the good one...

so many thanks to jim (the person who helped me on Hope it will spare some time for people who might encounter the same problem.

Cya all

Johan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top