LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2013, 09:39 PM   #1
yun
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Rep: Reputation: Disabled
Question libpci is not present/sufficient


Hi all,

I am new with Linux. I am tryign to compile flashrom on Centos but keep on getting below error although I had installed the pciutils.
Anyone can advice me what I can do?

[root@localhost flashrom-0.9.6]# make
Checking for a C compiler... found.
Target arch is x86
Target OS is Linux
Checking for libpci headers... found.
Checking if libpci is present and sufficient... no.
Checking if libz+libpci are present and sufficient...no.

Please install libpci (package pciutils) and/or libz.

Thanks!
 
Old 01-18-2013, 09:55 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
first what version of CentOS ?
The current is CentOS 6.3

Also to build programs you need ( ether the source code) or the headers
the headers are in the *-devel.rpm packages

for most normal everyday programs you MUST have the basic development packages installed
"yum" make this easy

Code:
su -
yum grouplist
outputs a very long list of "groups" of packages

the normal basic needed are
"Development Tools"

--- and a good thing to have ,but not a MUST HAVE ? most of the time---
"Compatibility Libraries"

-- and if any source code is using the GTK Gnome desktop
"Desktop Platform Development"

--- and for centos 5 -- changed in 6
"Development Libraries"
And can be installed using yum
Code:
su -
yum groupinstall  "Development Tools" "Compatibility Libraries" "Desktop Platform Development"
that should install all the needed headers for almost all "normal everyday program"

also a very good thing to have installed ( if not already ) is
"Graphical Administrative Tools"
Code:
su -
yum groupinstall  "Graphical Administrative Tools"

Last edited by John VV; 01-18-2013 at 09:58 PM. Reason: added to
 
Old 01-19-2013, 02:41 AM   #3
yun
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thank you!

My Centos version is:

CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
cpe:/o:centos:linux:6:GA

I already install as recommended but, I still doesn't seems able to install it.

Or is it possible that this is cause by my pciutils?
 
Old 01-19-2013, 03:06 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
You are also aware that CentOS like RHEL ( Red Hat Enterprise Linux )
is very conservative as in it is not the "newest of the new"

the main goal of RHEL is stability and this necessitates the use of older versions of programs ( with current security and bug fixes added)

rhel ( cent) locked the version of every program before 6.0 came out in July 2011 .
and the magor versions will NOT change over the 7 to 10 year life span of the OS

http://flashrom.org/Latest_release
"flashrom-0.9.6.1.tar.bz2" --08-Aug-2012

building very new software on rhel( cent) can be a challenge sometimes

You did read the README file in the source code
Quote:

* pciutils+libpci (if you want support for mainboard or PCI device flashing)
* libusb (if you want FT2232 or Dediprog support)
* libftdi (if you want FT2232 support)

Linux et al:

* pciutils / libpci
* pciutils-devel / pciutils-dev / libpci-dev
* zlib-devel / zlib1g-dev (needed if libpci was compiled with libz support)
they "should" be installed , but .....
Code:
su -
yum search pciutils
-- you will see a list --
--- it is in the base repos --
yum install pciutils pciutils-devel
and do that for the rest

but if the current cent version is too OLD ( supported but older ) then you will have a very hard time of building it
 
1 members found this post helpful.
Old 01-19-2013, 04:16 AM   #5
yun
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
That is the flashrom version i am trying to compile!

I had try what I can. Getting the pciutils, ftdi/usb installed. No idea what else should be done...

Quote:
yum install pciutils.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.biz.net.id
* extras: centos.biz.net.id
* updates: centos.biz.net.id
Setting up Install Process
Package pciutils-3.1.4-11.el6.x86_64 already installed and latest version
Nothing to do
 
Old 01-19-2013, 08:21 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you are using a 64 bit box
and the program is looking for the 32 bit versions

install the 32 bit versions of the prerequisites and the needed headers

in a yum search you will see the x86_64 and the i 686

install the i686 / i586 versions
 
1 members found this post helpful.
Old 01-19-2013, 08:22 AM   #7
yun
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
John,

Thank you for advice. Problem resolved - I just notice that I have pciutils-3.1.4-11.el6.x86_64 and pciutils-devel.i686 installed.

I uninstalled pciutils-devel.i686 and install pciutils-devel.x86_64 and problem goes away.

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpci and get subsystem vendor/device tank junior Linux - Newbie 1 05-01-2011 11:21 AM
libpci.a or libpci.so? huhuhu Slackware 12 04-27-2011 11:31 AM
libpci.a penl Linux - Newbie 1 12-27-2010 04:52 PM
ndiswrapper shows 'driver present, hardware present' but no wlan0 0x12d3 Linux - Wireless Networking 2 05-11-2007 07:43 PM
ndiswrapper - driver present:harware present but no connection esteeven Linux - Wireless Networking 2 12-26-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration