Compile rtorrent on CentOS 64bit

 

I always fall for this error when compile rtorrent, so … :

Error:


checking for STUFF... configure: error: Package requirements (sigc++-2.0) were not met:

No package 'sigc++-2.0' 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 STUFF_CFLAGS
and STUFF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Fix:

$ updatedb
$ locate pkgconfig | grep sigc++-2.0.pc

You will see something like /usr/lib/pkgconfig/sigc++-2.0.pc. If it is not there, then go install libsigc++ (it’s not in official CentOS repo).
Then define the PKG_CONFIG_PATH variable as the configure script suggests:

$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig/

Run configure script for libtorrent again. --prefix= should be the same for libsigc++, libtorrent and rtorrent, otherwise they will complain ;)

./configure --prefix=/usr && make

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Ma.gnolia
  • Reddit

Related posts:

blog comments powered by Disqus