YAQ on /usr/bin/ld

Bill McGonigle bill at bfccomputing.com
Wed Jul 23 12:54:17 EDT 2008


On Jul 23, 2008, at 09:36, Labitt, Bruce wrote:

> libpcre.so and libpcre.a are in /lib64.  Why doesn't ld find it?,
> especially since I did pass the argument -L/lib64 ?
>
> Or am I looking in the wrong place?
>
> For giggles I tried /usr/bin/ld -L/lib64 -lpcre and get
> /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching
> for -lpcre
> /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when  
> searching for
> -lpcre
> /usr/bin/ld: cannot find -lpcre

Is it actually in /lib64, or in a subdirectory of it?  I don't  
believe ld recurses.  Try:

   ldconfig -v

to see what it thinks it's searching, at least by default.

You can add more paths in /etc/ld.so.conf.d/ files.

-Bill

-----
Bill McGonigle, Owner           Work: 603.448.4440
BFC Computing, LLC              Home: 603.448.1668
bill at bfccomputing.com		Cell: 603.252.2606
http://www.bfccomputing.com/    Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf



More information about the gnhlug-discuss mailing list