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. |
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.
|
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 |
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. |
thanks for the info, weibullguy, I've found plenty of examples of "PKG_CONFIG_PATH=", but yours is the first explaination.
|
All times are GMT -5. The time now is 12:58 PM. |