Почему рторрент не удалось построить?

4010
hugemeow

Я не root, поэтому мне нужно собрать rtorrent из исходного кода и надеяться установить его в моем домашнем каталоге, но это не удалось, почему?

[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. 

Несмотря на то, что autoge не удалось, скрипт настройки создан.

[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 

Запустился configureи не удалось выполнить синтаксическую ошибку рядом с неожиданным токеном `1.9.6 ', что не так? Что я должен сделать, чтобы создать этот роторрент для моего 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 

Изменить 1 : Подробная информация о libtool и 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. 
5
огромное, пожалуйста, позаботьтесь о правильном использовании заглавных букв в заголовке, оно должно звучать так: «Почему строительство ... провалилось?» или «Почему я не могу построить…». slhck 11 лет назад 1

3 ответа на вопрос

7
zmo

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

установка cppunit и cppunit-devel исправили это на cygwin :) nwgat 9 лет назад 0
2
Mikio Tsunematsu

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

подробнее см. правку 1, я не уверен, что мой libtool обновлен ... hugemeow 11 лет назад 0
Просто подумал - попробуйте _yum установить cppunit cppunit-devel_, если вы еще этого не сделали, а затем попробуйте ./configure снова. Mikio Tsunematsu 11 лет назад 3
проблема в том, что я не root, и что администратор может ничего не делать для меня, поэтому я должен делать все вещи в моем домашнем каталоге ... hugemeow 11 лет назад 0
Я уверен, что вам не хватает некоторых зависимостей для компиляции _libtorrent_. Возможно, вы сможете найти способ обойтись с _schroot_ и поработать там, но я не могу обещать, что это сработает. Mikio Tsunematsu 11 лет назад 1
я должен следовать http://le-gall.net/sylvain+violaine/blog/index.php?post/2010/08/26/63-centos-5-chroot-with-schroot? я думаю, что это довольно сложно и подвержено ошибкам ... hugemeow 11 лет назад 0
0
jjlin

Просто отредактируйте configure.acи удалите AM_PATH_CPPUNIT(1.9.6)строку, после которой autogen.shдолжна появиться configureошибка.

Похожие вопросы