LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pkg-config-path (https://www.linuxquestions.org/questions/linux-newbie-8/pkg-config-path-672477/)

prakash.akumalla 09-26-2008 03:54 AM

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.

bathory 09-26-2008 06:01 AM

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

prakash.akumalla 09-26-2008 06:27 AM

hi,
Thanks for your reply.
which pkg-config is giving the output
/usr/bin/pkg-config

bathory 09-26-2008 06:50 AM

What gives:
Code:

pkg-config --modversion eventlog

prakash.akumalla 09-26-2008 07:05 AM

Hi,
It gives nothing. just one blank line and in the next line the cusor comes with directory

thanks,
Prakash

keefaz 09-26-2008 07:20 AM

Try:
Code:

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


bathory 09-26-2008 07:22 AM

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

prakash.akumalla 09-26-2008 07:28 AM

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

prakash.akumalla 09-26-2008 07:29 AM

Hi,
There is no version in that file. It is blank in that place

Prakash.

bathory 09-26-2008 07:38 AM

You can add it by hand (0.2.5), but it's still strange it's blank.

keefaz 09-26-2008 07:42 AM

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

Should be more likely /usr/local/lib/pkgconfig, no ?

prakash.akumalla 09-26-2008 11:39 PM

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.

baloon68 02-25-2013 01:37 PM

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

John VV 02-25-2013 03:53 PM

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 "


All times are GMT -5. The time now is 04:44 AM.