first-time install, error on make

Gregor Mosheh gregor at HOSTGIS.COM
Sat Aug 25 16:01:14 PDT 2007


> /usr/bin/ld: warning: libXpm.so.4, needed by 
> /home/alttwois/lib/gd-2.0.35/.libs/libgd.so, not found (try using -rpath 
> or -rpath-link)
> /usr/bin/ld: warning: libX11.so.6, needed by 
> /home/alttwois/lib/gd-2.0.35/.libs/libgd.so, not found (try using -rpath 
> or -rpath-link)
> /home/alttwois/lib/gd-2.0.35/.libs/libgd.so: undefined reference to 
> `XpmReadFileToXpmImage'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1

There ya go -- your GD was compiled with Xpm support, but the Xpm 
library isn't found. Try this:
    ldconfig -p | grep -i xpm
That'll show whether Xpm is installed.

Alternative:
If you compiled GD yourself, and my memory serves, you can give 
--without-x to have it skip X-Window stuff. You won't miss it. :)

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the MapServer-users mailing list