Running into a problem compilation an application on linux.

Jeff Haran Jeff.Haran at citrix.com
Mon Feb 2 22:57:10 EST 2015



From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of Omkar Houddin
Sent: Monday, February 02, 2015 7:16 PM
To: kernelnewbies
Subject: Running into a problem compilation an application on linux.

I was trying to compile an application on porteus linux

gcc -Wall -O xyz.c -lpci -o xyz

/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../../i486-slackware-linux/bin/ld: cannot find -lpci
collect2: error ld returned 1 exit status

Can you please help me resolve this.

Thanks,
OMK

This is not really a kernel question, but it would appear your system does not have the PCI development library (cannot find –lpci). First you’ll need to find out which package management system slackware uses (there’s 2 popular ones; 1) Redhat’s rpm system and 2) debian). Once you’ve determined that you will want to read up on how to get and install packages and install the PCI development package on your system.

Jeff Haran

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150203/726ea131/attachment.html 


More information about the Kernelnewbies mailing list