PDA

View Full Version : ./configure - locating libgd



cdpuk
03-06-2006, 11:26 AM
Hi, I'm trying to build a copy of dvipng which can be used by mediawiki to render math written in latex. One of it's requirements is libgd. I've found libgd.so in the /usr/lib64 directory as expected and I believe I need to specify this location when I run configure.

The INSTALL file says:

On some machines, the libraries will be installed in directories that
are not in the linker's search path. This will generate an error when
running `./configure', indicating that it cannot find libgd or
libkpathsea (most likely). You then need to specify the path to the
respective library's object files. They are typically called e.g.,
`libgd.a' or `libgd.so'. If they are located in e.g., `/sw/local/lib',
do

./configure LDFLAGS=-L/sw/local/lib

So I tried:

./configure --prefix=$HOME LDFLAGS=-L/usr/lib64

But this gives

checking for gdImageCreate in -lgd... no
configure: error: cannot find/use libgd
This drawing library can be downloaded at http://www.boutell.com/gd

Any clues? I'm not exactly experienced when it comes to compiling things :p

Thanks
-Chris
[box72]

cdpuk
03-09-2006, 01:09 PM
*bump*.....