Installation on CentOS 5

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
virbricky
Posts: 7
Joined: Sat Nov 21, 2009 2:10 am

Installation on CentOS 5

Postby virbricky » Sat Nov 21, 2009 2:14 am

Hey I'm trying to install the latest version of Transmission on CentOS 5 and no matter how I do it I get an error.

Via SVN

Code: Select all

[trixbox1.localdomain Transmission]# ./autogen.sh && make -s
creating libtransmission/version.h
configure.ac:330: warning: AC_CANONICAL_HOST invoked multiple times
configure.ac:330: warning: AC_CANONICAL_HOST invoked multiple times
configure.in:30: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
Running ./configure --enable-maintainer-mode
./autogen.sh: line 44: ./configure: No such file or directory

Now type 'make' to compile Transmission.
make: *** No targets specified and no makefile found.  Stop.


Via code from Transmission Site

Code: Select all

[trixbox1.localdomain transmission-1.76+]# ./configure -q && make -s
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
configure: error: Package requirements (libcurl >= 7.16.3) were not met:

Requested 'libcurl >= 7.16.3' but version of libcurl is 7.15.5

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

Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

[trixbox1.localdomain transmission-1.76+]#


and I updated the libcurl as seen here

Code: Select all

[trixbox1.localdomain transmission-1.76+]# curl-config --versionlibcurl 7.19.7[trixbox1.localdomain transmission-1.76+]#


However the same error still occurs.

virbricky
Posts: 7
Joined: Sat Nov 21, 2009 2:10 am

Re: Installation on CentOS 5

Postby virbricky » Sun Nov 22, 2009 6:35 pm

Still having this issue unable to find a fix.

dairinin
Posts: 5
Joined: Mon Mar 23, 2009 10:51 am

Re: Installation on CentOS 5

Postby dairinin » Mon Nov 23, 2009 5:11 am

Looks like you have two verions of curl installed in /usr from yum and /usr/local from source/
You should not use in-system curl as it's simply too old, just uninstall it with "yum erase curl"
DL latest sources from upstream, make and install it. There are two ways to do it:
1) ./configure --prefix=/usr
2) install it into /usr/local by-default, but then in your build environment export PKG_CONFIG_PATH as "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig". After this check "pkg-config --list-all | grep libcurl"

I've done the second way, and have no problems building transmission @all.

virbricky
Posts: 7
Joined: Sat Nov 21, 2009 2:10 am

Re: Installation on CentOS 5

Postby virbricky » Mon Nov 23, 2009 7:30 pm

If I remove curl via yum it removes 27 packages with it.

dairinin
Posts: 5
Joined: Mon Mar 23, 2009 10:51 am

Re: Installation on CentOS 5

Postby dairinin » Mon Nov 23, 2009 10:28 pm

So you wish to keep the old one?

Then you have these options:

1. "Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.", ie:
export LIBCURL_LIBS="-L/usr/local/lib/ -lcurl"
export LIBCURL_CXXFLAGS="-I/usr/local/include/"
and then at run time:
LD_LIBRARY_PATH="/usr/local/lib" transmission-daemon

2. Manually cleanup old curl (libs, includes, bianries, mans, docs, etc - see Makefile) and install new version into /usr

3. Install new version over existing into /usr overwriting older versions. Can leave garbage.

virbricky
Posts: 7
Joined: Sat Nov 21, 2009 2:10 am

Re: Installation on CentOS 5

Postby virbricky » Mon Nov 23, 2009 11:28 pm

Well I have a clean install of CentOS 5.4 I removed curl which also removes php. I installed curl from the source which is the newest version 7.19.7 however then when I try to compile Transmission it gives me an error saying it cant find libcurl the solution to this is to install the curl-devel package however once you install that it's for 7.15 and thus Transmission errors again saying that the curl version is outdated.

egolost
Posts: 1
Joined: Tue Nov 24, 2009 10:29 am

Re: Installation on CentOS 5

Postby egolost » Tue Nov 24, 2009 10:42 am

Well,

CentOS 5.4 have an outdated curl in the package-manager(Enterprise systems usually do since they focus more on stability). So what I did was first to compile curl from http://curl.haxx.se. Make install uses /usr/local as prefix path as usual.

The configure transmission with:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --your--prefeared-options --another-option

virbricky
Posts: 7
Joined: Sat Nov 21, 2009 2:10 am

Re: Installation on CentOS 5

Postby virbricky » Tue Nov 24, 2009 7:46 pm

My issue I guess I'm having with the optional stuff is I'm lost as to what exactly I'd enter to configure transmission with the install from source. So that command you listed what would I enter exactly to configure it?

dairinin
Posts: 5
Joined: Mon Mar 23, 2009 10:51 am

Re: Installation on CentOS 5

Postby dairinin » Tue Nov 24, 2009 9:09 pm

This is what I have in .bashrc to compile transmission (I use only custom built curl in /usr/local/lib):
export CFLAGS="-O2 -march=core2 -pipe -fstack-protector"
export CXXFLAGS=$CFLAGS
export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"

Also you will have to have newer intltool. And it should be installed in /usr/share unless you want do deal with the mess of aclocal's dirs.

gettext-devel pulls lots of useless X-related stuff. If you are fine with it, install. If not (headless machine), install gettext package, download source tar.gz and copy "nls.m4" into /usr/share/aclocal-1.9/

With all of these autogen.sh should not generate any errors. If ./configure does, and errors are due to unstripped prefixes, open libtool.sh and replace ECHO="echo -n" with echo="echo -n"

lollerskates
Posts: 12
Joined: Tue Feb 23, 2010 6:15 pm

Re: Installation on CentOS 5

Postby lollerskates » Thu Nov 25, 2010 6:56 am

I posted a guide to install Transmission on Centos 5 with yum:

viewtopic.php?f=2&t=10902


Return to “Support”