LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2008, 03:54 AM   #1
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Rep: Reputation: 15
pkg-config-path


hai,
I want to install syslog-ng in my CentOS 5 box and i followed the following instructions as i have seen it in some blog.

wget http://www.balabit.com/downloads/fil...g-0.2.5.tar.gz

# tar xzf eventlog-0.2.5.tar.gz
# cd eventlog-0.2.5
# ./configure --prefix=/usr/local/eventlog
# make
# make install


# wget http://www.balabit.com/downloads/fil...-0.3.18.tar.gz
# tar xzf libol-0.3.18.tar.gz
# cd libol-0.3.18
# ./configure --prefix=/usr/local/libol
# make
# make install


# wget http://www.balabit.com/downloads/fil...g-2.0.3.tar.gz
# tar xzf syslog-ng-2.0.3.tar.gz
# cd syslog-ng-2.0.3

# export PKG_CONFIG_PATH=/usr/local/eventlog/lib/pkgconfig
# ./configure --prefix=/usr/local/syslog-ng --with-libol=/usr/local/libol/




All the above steps worked well but the last step displayed the following error.

checking for EVTLOG... configure: error: Cannot find eventlog version >= 0.2: is pkg-config in path?


I tried changing the locations for pkg-config but did not work.

Please help me to solve this.

Thanks,
Prakash.
 
Old 09-26-2008, 06:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
checking for EVTLOG... configure: error: Cannot find eventlog version >= 0.2: is pkg-config in path?
Check if pkg-config is in your path:
Code:
which pkg-config
 
Old 09-26-2008, 06:27 AM   #3
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
hi,
Thanks for your reply.
which pkg-config is giving the output
/usr/bin/pkg-config
 
Old 09-26-2008, 06:50 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
What gives:
Code:
pkg-config --modversion eventlog
 
Old 09-26-2008, 07:05 AM   #5
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,
It gives nothing. just one blank line and in the next line the cusor comes with directory

thanks,
Prakash
 
Old 09-26-2008, 07:20 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Try:
Code:
# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# ./configure --prefix=/usr/local/syslog-ng --with-libol=/usr/local/libol/
 
Old 09-26-2008, 07:22 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Strange. It should give 0.2.5 or at least complain it cannot find the package.
Check the version in /usr/local/eventlog/lib/pkgconfig/eventlog.pc
 
Old 09-26-2008, 07:28 AM   #8
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,
This is the content that my /usr/local/eventlog/lib/pkgconfig/eventlog.pc file contains

prefix=/usr/local/eventlog
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/eventlog

Name: EventLog
Description: General system logging format library
Version:
Cflags: -I${includedir}
Libs: -L${libdir} -levtlog
~



Please suggest me what to do now.

Thanks,
Prakash
 
Old 09-26-2008, 07:29 AM   #9
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,
There is no version in that file. It is blank in that place

Prakash.
 
Old 09-26-2008, 07:38 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can add it by hand (0.2.5), but it's still strange it's blank.
 
Old 09-26-2008, 07:42 AM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Why the PKG_CONFIG_PATH is /usr/local/eventlog/lib/pkgconfig ?

Should be more likely /usr/local/lib/pkgconfig, no ?
 
Old 09-26-2008, 11:39 PM   #12
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your help. I have stopped trying this and tried to use rpms. it worked in no time.


Quote:
Why the PKG_CONFIG_PATH is /usr/local/eventlog/lib/pkgconfig ?

Should be more likely /usr/local/lib/pkgconfig, no ?
It should be there only, But as i have given a prefix while configuring eventlog it is in /usr/local/eventlog/lib/pkgconfig

Regards,
Prakash.
 
Old 02-25-2013, 01:37 PM   #13
baloon68
LQ Newbie
 
Registered: Sep 2012
Location: Slovakia
Distribution: Mint 13, Ubuntu 12, opensuse 12.3
Posts: 11

Rep: Reputation: Disabled
hello guys I wanna install opkg and /.configure - it is donin his thing but in the end it says it dont have libcurl and that I should adjust the pkg configure file and I've looked in the pakage manager and it's there in /usr/bin so I change the path in opkg/configure file to /usr/bin;bin' I suppose the bin' means it's bin file. but nuthin worked. How can I change the the configure path of the opkg? I've LM 13
 
Old 02-25-2013, 03:53 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you might want to start a new post
this one is from 2008 -- 5 years ago

also you might want to do a bit of research on "packagconfig"
that path variable is used by "autotools" to find the "*.pc" files that then set other variables and locations of installed code

these files are in the "-dev" packages on Debian based OS's
and unless you installed programs you built from source in non standard locations
it is auto set to "/usr/lib/pkgconfig" or "/usr/lib64/pkgconfig "
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg-config sinXposed Linux - Software 12 10-30-2008 05:48 AM
pkg-config brimble2010 SUSE / openSUSE 3 05-19-2008 08:01 AM
pkg-config search path? ironfistchamp Linux - Newbie 2 02-12-2006 08:00 AM
How to set the path for pkg-config?? westman SUSE / openSUSE 4 02-07-2006 09:16 PM
pkg-config supersucker Linux - Software 3 09-07-2004 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 PM.

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