Compile dies with "cannot find -lm/"

jamie bennett jamie at
Thu Aug 11 02:24:02 PDT 2005

Quoting James Robertson <jwrober at>:

> Andrew Jergens wrote:
> >
> /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> You are probably the first person to compile on a x64 box.  Do you have 
> 32bit libraries installed?  I know very little about the platform.

I've done 64 bit builds for some time now. 

To fix your problem just edit the make file and change

XML2_LIB = -lxml2 -lz -lpthread -lm/ 


XML2_LIB = -lxml2 -lz -lpthread -lm
> James


More information about the alfs-discuss mailing list