Re: [oprof-cvs] popt.h: File not found

William Cohen <[email protected]> Tue, 23 Jul 2019 16:31:25 -0400
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 7/23/19 10:17 AM, Solal Amouyal wrote:
> Hello,

Hi,

cc'ing the appropriate list for this reply.

> 
> I am running on CentOS Linux release 7.6.1810.
> 
> I am trying to install oprofile on my machine. It is available to install from yum but only as an older version (0.9.9).
> 

It is a good starting point to download the source rpm and look at the packages that you need to have installed to build the package.  These should be pretty much the same for the more recent version of the package (the yum install... and yum-builddep will need to be run as root):

yum install yum-utils rpm-build
yumdownloader --source oprofile
yum-builddep ./oprofile*.rpm

You can see what they are your self with:

rpm -Uvh oprofile*.rpm
more ~/rpm/SPECS/oprofile.spec


> I downloaded the git repository and run ./configure && make. The make command terminated with the following error:
> op_popt.h:16:18: fatal error: popt.h: No such file or directory
>  #include <popt.h>
> 
> op_popt.h is located in ./libutil.h
> There is not popt.h file in the repository, only popt_options.h located in libopt++.
> I tried adding a popt.h file found online, modifying op_popt.h to include popt_options.h instead... I couldnt get it to work. I have attached the config.log file.

It looks like you are missing popt-devel.  You will need to install that.  There may be some other packages that you need to install besides that.

-Will
> 
> Any help is appreciated. Thanks,
> 
> _________________________
> 
> Solal Amouyal
> 
> 
> _______________________________________________
> Oprofile-commits mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-commits
> 



_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list