[geeks] C compiler won't create executables ..WTF?
David Passmore
dpassmor at sneakers.org
Fri May 24 10:23:32 CDT 2002
On Thu, May 23, 2002 at 08:23:10PM -0500, Jonathan C. Patschke wrote:
> On Thu, 23 May 2002, Mike Nicewonger wrote:
>
> > configure:8750: checking for gzsetparams in -lz
> > configure:8769: gcc -o conftest -g -O2 conftest.c -lz 1>&5
> > /usr/bin/ld: cannot find -lz
> > collect2: ld returned 1 exit status
>
> *lightbulb*
>
> Did you -just- install zlib?
>
> Do (as root):
>
> ldconfig -v
> ldconfig -v
>
> (yes, do it twice)
ldconfig will update where the system shared library loader will look for
the libz library when the program is run. To *link* with the library, it
must either be in one of gcc's default search paths, or you must specify the
path to libz.a or libz.so with -L/path/to/libz.a.
David
More information about the geeks
mailing list