fail to install Transmission

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
tant
Posts: 1
Joined: Thu Feb 16, 2012 6:05 pm

fail to install Transmission

Post by tant »

Hello everyone. i am new to lInux; thus, this is more of an experiment for me. I am trying to install Transmission on a Centos 6.2 i686 machine. Initially I was stuck on this step:

Code: Select all

[root@alexcentos transmission-2.31]# ./configure -q && make -s
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.
Then I added this to ./configure LIBEVENT_CFLAGS=-I/opt/libevent/include LIBEVENT_LIBS=/opt/libevent/lib/pkgconfig. That helped me to advance a little further:

Code: Select all

[root@alexcentos transmission-2.31]# ./configure -q LIBEVENT_CFLAGS=-I/opt/libevent/include LIBEVENT_LIBS=/opt/libevent/lib/pkgconfig


Configuration:

   Source code location:                              .
   Compiler:                                          g++

   Build libtransmission:                             yes

      * optimized for low-resource systems:           no
      * µTP enabled:                                  yes

   Build Command-Line client:                         yes

   Build GTK+ client:                                 no

     Optional dependencies for GTK+ client:

      * dbus support:                                 no
      * gio for watchdir support:                     no
      * libnotify for 'download completed' popups:    no
      * libcanberra for 'download completed' sounds:  no
      * gconf2 to register as a magnet link handler:  no
      * libappindicator for an Ubuntu-style tray:     no

   Build Daemon:                                      yes

   Build Mac client:                                  no
But when I attempted to make install I had the following:

Code: Select all

[root@alexcentos transmission-2.31]# make install
Making install in extras
make[1]: Entering directory `/home/alex/transmission-2.31/extras'
make[2]: Entering directory `/home/alex/transmission-2.31/extras'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/alex/transmission-2.31/extras'
make[1]: Leaving directory `/home/alex/transmission-2.31/extras'
Making install in third-party
make[1]: Entering directory `/home/alex/transmission-2.31/third-party'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/alex/transmission-2.31/third-party'
Making install in libtransmission
make[1]: Entering directory `/home/alex/transmission-2.31/libtransmission'
  CCLD   blocklist-test
/opt/libevent/lib/pkgconfig: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[1]: *** [blocklist-test] Error 1
make[1]: Leaving directory `/home/alex/transmission-2.31/libtransmission'
make: *** [install-recursive] Error 1
My libevent library has been installed into /opt/libevent. Has anyone stumbled upon such an issue? Any help is highly appreciated.
Thank you.
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: fail to install Transmission

Post by gunzip »

it looks like your ./configure worked OK, but reading your post you left out the 'make' part. building is usually three basic steps:

./configure
make
make install

in that order.
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: fail to install Transmission

Post by rb07 »

LIBEVENT_LIBS=/opt/libevent/lib/pkgconfig
That is wrong, what you wanted is:

Code: Select all

LIBEVENT_LIBS=-L/opt/libevent/lib -levent
You probably got 2 things confused, if pkg-config is installed and configured correctly then the configure script can find the required dependencies without needing help.

You can check that by running:

Code: Select all

pkg-config --libs libevent
If you don't have the pkg-config installed and/or configured then you need to help the configure script as you tried, except that the pkg-config directory is not needed, the directory where the libraries are (files that end in .a and .so) is.
Last edited by rb07 on Fri Jun 01, 2012 7:25 pm, edited 1 time in total.
paul08
Posts: 1
Joined: Fri Jun 01, 2012 6:10 pm

Re: fail to install Transmission

Post by paul08 »

Maybe you might want to check this: http://blog.dauhoo.com/transmissionbt-centos5-2/

This is how i did it.
Post Reply