LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   simple pkgconfig question (https://www.linuxquestions.org/questions/linux-newbie-8/simple-pkgconfig-question-604879/)

txm123 12-06-2007 04:21 AM

simple pkgconfig question
 
Hi,

I'm trying to compile rtorrent but config gives this error

Code:

Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found

I have installed libcurl and libcurl.pc is located in /usr/local/lib/pkgconfig.

How can I add this location to the script. There is something about PKG_CONFIG_PATH but I really don't know what to do.

Thanks

reddazz 12-06-2007 04:30 AM

You could install libcurl to /usr by running ./configure with the --prefix=/usr flag. An alternative would be to do
Code:

#ln -s /usr/local/lib/libcurl* /usr/lib/.
There are other methods, but give those a shot and see if they help resolve your problem.

nx5000 12-06-2007 05:30 AM

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

txm123 12-06-2007 10:37 AM

Thank you nadazz and nx5000.

I tried nx5000's solution since it was easier to do. It didn't work in the beginning since configure script complained about unidentified variable URL. I then commented out the URL section in the libcurl.pc and configure worked. Thank you guys so much


All times are GMT -5. The time now is 11:30 AM.