LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 05-13-2008, 06:45 AM   #1
granduke
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
Compiled libtorrent but future compiling calls upon older version in repos.


I'm trying to compile a version of wtorrent which is a gui for rtorrent. The instructions had me compile a newer version of libtorent, 0.12 since the version in the Fedora 8 repos is version 0.7.8 So I compile libtorrent 0.12 and the next step has me compile rtorrent. This compiling calls the old version off the repos not using the newer version I just created.

How can I instruct Fedora 8 use the other libtorrent version?

thanks.
 
Old 05-13-2008, 08:09 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,745
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
Unintstall the older version of libtorrent. If, for some reason, you can't do that execute ./configure --help (I'm assuming rtorrent comes with a configure script) and see if there is a switch that allows you to specify the libtorrent you wish to use.
 
Old 05-13-2008, 05:49 PM   #3
granduke
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Figured it out. Being new to compiling I just learned that the library I was creating was going into /usr/local/lib while the system was trying to use the older version installed with the distro in /usr/lib. After trying several methods of getting the correct libtorrent to be used, this command worked for me:

Code:
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ./configure --with-xmlrpc-c
Don't know what it really does but as long as it worked.
 
Old 05-13-2008, 07:09 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,745
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
This PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" tells pkgconfig to look in /usr/local/lib/pkgconfig for the libtorrent.pc file before looking in other standard paths. Take a look at the file /usr/local/lib/pkgconfig/libtorrent.pc (I'm guessing at the name of the *.pc file) in your favorite editor. You should be able to figure out what it is used for when building other packages.

Another thing you could have done is pass the --prefix=/usr to the configure script for libtorrent. That would have installed libtorrent in /usr/lib instead of /usr/local/lib. It would have (likely) overwritten the older version.
 
Old 05-13-2008, 07:14 PM   #5
granduke
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for the info, weibullguy, I've found plenty of examples of "PKG_CONFIG_PATH=", but yours is the first explaination.
 
  


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
How to install an older version not in the repos? czamora Linux - Server 9 04-13-2008 05:46 PM
Compiling libtorrent-0.12 failing on boost lib that does exist agentc0re Slackware 4 01-12-2008 01:36 PM
Firefox not emerging because of autoconf version - how to force older version? sirgregsalot Linux - Desktop 5 12-11-2006 06:37 PM
PHP hasn't been compiled with LDAP. Can I forward calls to another server? MikeyCarter Linux - Networking 0 11-06-2003 10:32 AM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration