Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not root, so I have to build rtorrent from source and hope to install it in my home directory, but it failed, why?

[mirror@hugemeow rtorrent]$ ls
AUTHORS  autogen.sh  ChangeLog  configure.ac  COPYING  doc  INSTALL  Makefile.am  NEWS  rak  README  scripts  src  test
[mirror@hugemeow rtorrent]$ ./autogen.sh
aclocal...
aclocal:configure.ac:7: warning: macro `AM_PATH_CPPUNIT' not found in library
autoheader...
libtoolize... using libtoolize
automake...
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoconf...
configure.ac:7: error: possibly undefined macro: AM_PATH_CPPUNIT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

Though autoge failed, configure script is created.

[mirror@hugemeow rtorrent]$ ls
aclocal.m4  autogen.sh      ChangeLog     config.h.in  configure     COPYING  doc      install-sh  Makefile.am  missing  rak     scripts  test
AUTHORS     autom4te.cache  config.guess  config.sub   configure.ac  depcomp  INSTALL  ltmain.sh   Makefile.in  NEWS     README  src

Ran configure, and failed for syntax error near unexpected token `1.9.6', what's wrong? What should I do in order to build this rtorrent for my CentOS?

[mirror@hugemeow rtorrent]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
./configure: line 2016: syntax error near unexpected token `1.9.6'
./configure: line 2016: `AM_PATH_CPPUNIT(1.9.6)'
[mirror@hugemeow rtorrent]$ git branch
* master
[mirror@hugemeow rtorrent]$ git branch  -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/c++11
  remotes/origin/master
[mirror@hugemeow rtorrent]$ git tag
0.9.0
0.9.1
[mirror@hugemeow rtorrent]$ git clean -dfx
Removing Makefile.in
Removing aclocal.m4
Removing autom4te.cache/
Removing config.guess
Removing config.h.in
Removing config.log
Removing config.sub
Removing configure
Removing depcomp
Removing doc/Makefile.in
Removing install-sh
Removing ltmain.sh
Removing missing
Removing src/Makefile.in
Removing src/core/Makefile.in
Removing src/display/Makefile.in
Removing src/input/Makefile.in
Removing src/rpc/Makefile.in
Removing src/ui/Makefile.in
Removing src/utils/Makefile.in
Removing test/Makefile.in

Edit 1: Details about libtool and libtools

[mirror@hugemeow rtorrent]$ libtoolize --version
libtoolize (GNU libtool) 1.5.22

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[mirror@hugemeow rtorrent]$ libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

Copyright (C) 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
share|improve this question
1  
hugemeow, please take care of proper capitalization in your title, it should go "Why did building … fail?" or "Why can't I build …". –  slhck Oct 18 '12 at 5:46

2 Answers 2

Just went into the same issue, and as @mikio-tsunematsu pointed out as a comment, the solution is to install libcppunit and libcppunit-dev (or cppunit and cppunit-devel). As you say you can't install them using package manager, then your only solution is to get the sources and compile them in your directory.

You usually can download sources of packages of your distribution and compile them using it, which may help work with the installed tools on your system.

as it worked for me, HTH

share|improve this answer
    
installing cppunit and cppunit-devel fixed it on cygwin :) –  wiak Oct 7 at 4:04

That syntax error hints that the ./configure failed. Do you have libtool installed/up to date?

share|improve this answer
    
see edit 1 for details, i am not sure whether my libtool is up to date... –  hugemeow Oct 17 '12 at 22:04
3  
Just had a thought - try and yum install cppunit cppunit-devel if you haven't already and then try ./configure again. –  Mikio Tsunematsu Oct 17 '12 at 22:10
    
the issue is that i am not root, and that admin may do nothing for me, so i have to do all the things in my home directory... –  hugemeow Oct 17 '12 at 22:13
1  
I'm pretty sure you're missing some dependencies to compile libtorrent. You might be able to find a way around with schroot and work in there, but I can't promise it'll work. –  Mikio Tsunematsu Oct 17 '12 at 22:20
    
should i follow le-gall.net/sylvain+violaine/blog/index.php?post/2010/08/26/… ? i think this is quite difficult and error prone ... –  hugemeow Oct 18 '12 at 2:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.