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! |
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 - 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 - also a very good thing to have installed ( if not already ) is "Graphical Administrative Tools" Code:
su - |
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? |
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:
Code:
su - but if the current cent version is too OLD ( supported but older ) then you will have a very hard time of building it |
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:
|
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 |
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! :) |
All times are GMT -5. The time now is 11:15 PM. |