LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-06-2007, 04:21 AM   #1
txm123
LQ Newbie
 
Registered: Nov 2004
Posts: 28

Rep: Reputation: 15
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
 
Old 12-06-2007, 04:30 AM   #2
reddazz
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
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.
 
Old 12-06-2007, 05:30 AM   #3
nx5000
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, 10:37 AM   #4
txm123
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
 
  


Reply


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

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

All times are GMT -5. The time now is 06:21 AM.

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