building transmission on rhel/sci 6

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
doombooom
Posts: 1
Joined: Mon Mar 28, 2011 4:27 am

building transmission on rhel/sci 6

Post by doombooom »

I'm stuck on compiling a localised version of transmission daemon with libevent. I'm atempting to link to a locally compiled version but its still failing.

any suggestions?

wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz
--2011-03-28 15:03:28-- http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz
Resolving monkey.org... 75.102.5.19
Connecting to monkey.org|75.102.5.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 793010 (774K) [application/x-gzip]
Saving to: `libevent-2.0.10-stable.tar.gz'

100%[=========================================================================================================================================================================>] 793,010 388K/s in 2.0s

2011-03-28 15:03:30 (388 KB/s) - `libevent-2.0.10-stable.tar.gz' saved [793010/793010]

[ronanm@weed ~]$ tar zxf libevent-2.0.10-stable.tar.gz
[ronanm@weed ~]$ cd libevent-2.0.10-stable
[ronanm@weed libevent-2.0.10-stable]$ ./configure --prefix=/home/ronanm/local/
[ronanm@weed libevent-2.0.10-stable]$ make -j3
<snip>
[ronanm@weed libevent-2.0.10-stable]$ make install
<snip>
[ronanm@weed libevent-2.0.10-stable]$ cd ../transmission-2.22
[ronanm@weed transmission-2.22]$ LIBEVENT_LIBS=/home/ronanm/local/lib/ ./configure --prefix=/home/ronanm/local/
<snip>
checking for LIBEVENT... configure: error: Package requirements (libevent >= 2.0.10) were not met:

No package 'libevent' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBEVENT_CFLAGS
and LIBEVENT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
abeeson
Posts: 8
Joined: Sun Jul 26, 2009 8:36 am

Re: building transmission on rhel/sci 6

Post by abeeson »

Hey,

Hopefully i can help you out here, i have just spent about an hour and a bit trying to get this to work myself, and what i found was:

even though i had libevent 1.4.1 installed via RPM, pkg-config was not detecting it at all (no pc file anywhere in pkg-configs path) (check yours with pkg-config --modversion libevent)
i could not get it to accept the LIBEVENT_CFLAGS and LIBEVENT_LIBS (though that may be me not putting them in correctly)
I could not get pkg-config to read PKG_CONFIG_PATH correctly (again could be the same thing)

Fixing it was easy though, simply go to where you installed libevent ( i didnt specify a prefix to it went to /usr/local/ but you can find it in yours) in the lib directory there is a pkgconfig directory, simply link the three files in there (should be three, but maybe more or less) to another directory that pkg-config reads no problem (for me /usr/lib64/pkgconfig worked, if you have 32bit just drop the 64 off lib)

Then when you run pkg-config --modversion libevent it reports 2.0.10, and transmission should compile (trying it now)

Confirmed it works. Now onto intltool :( hopefully that'll just a yum install...
abeeson
Posts: 8
Joined: Sun Jul 26, 2009 8:36 am

Re: building transmission on rhel/sci 6

Post by abeeson »

Yep just yum install intltool, that'll resolve it if you run into it.

Im making now, looks good :)

PS - did this on RHEL6, but it should be the same for Sci and CentOS 6 when it finally comes out.
Vickey007
Posts: 12
Joined: Fri Feb 11, 2011 10:29 am

Re: building transmission on rhel/sci 6

Post by Vickey007 »

Try This

yum -y install gcc gcc-c++ m4 make automake libtool gettext openssl-devel pkgconfig perl-libwww-perl perl-XML-Parser curl curl-devel libevent-devel libevent libidn-devel zlib-devel which
yum -y upgrade

yum install gcc gcc-c++ m4 make automake libtool gettext openssl-devel



Installing intltool
-----------------------
CentOS intltool package is out of date and a recent version is not available through the package manager.
We must compile it from source. Don’t quit now. This isn’t as scary as it sounds.

cd /usr/local/src
wget http://ftp.gnome.org/pub/gnome/sources/ ... 0.6.tar.gz
tar zxf intltool-0.40.6.tar.gz
cd intltool-0.40.6
./configure --prefix=/usr
make -s
make -s install

===============================
wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz
tar zxf libevent-2.0.10-stable.tar.gz
cd libevent-2.0.10-stable
./configure
make
make install

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
===============================
Installing Transmission
--------------------------

Transmission is the actual torrent application that you will be using. Again, just copy paste the commands into the SSH client window.
cd /usr/local/src
wget http://download.transmissionbt.com/file ... 22.tar.bz2
tar xjf transmission-2.22.tar.bz2
cd transmission-2.22

./configure --prefix=/usr
make -s
make -s install
Post Reply