Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-06-2007, 05:21 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 28

Rep: Reputation: 15
simple pkgconfig question


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

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.

Old 12-06-2007, 05:30 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You could install libcurl to /usr by running ./configure with the --prefix=/usr flag. An alternative would be to do
#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.
Old 12-06-2007, 06:30 AM   #3
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
Old 12-06-2007, 11:37 AM   #4
LQ Newbie
Registered: Nov 2004
Posts: 28

Original Poster
Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help with PKGCONFIG! lazybowel Linux - Software 3 03-27-2007 04:42 AM
Two things: (Probably Simple) Grub question, and a gDesklets question Wilffo Linux - Software 3 05-20-2006 02:33 PM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration