LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   apache installation problem... (https://www.linuxquestions.org/questions/linux-general-1/apache-installation-problem-19414/)

chuck77 04-25-2002 04:26 AM

apache installation problem...
 
cd ..; gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEED
ED `./apaci` -o helpers/dummy helpers/dummy.c -lm
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
make: *** [dummy] Error 1

#./configure -- prefix=/usr/local/apache --enable-shared=max

After entering the command for installing apache, i got the error msg above. How can i solve this ?? what is -lm ??

i am installing apache_1.3.24 on redhat 6.2

Mik 04-25-2002 05:45 AM

-lm tells it to use the m library. If you are including static libraries then you'll need the libm.a file and for the shared library you'll need libm.so. I've got both of those files in /usr/lib they kind of belong to the minimal set of libraries you need. It's looking for the shared library though. Maybe your cache file is corrupt. You could try running /sbin/ldconfig. Or remove the file /etc/ld.so.cache first and then run the command.


All times are GMT -5. The time now is 01:38 AM.