安装Apache时出现错误,提示libtool未找到。

5
我正在安装Apache,步骤如下

echo deb http ://ports.ubuntu.com/ubuntu-ports vivid restricted main multiverse universe >> /etc/apt/sources.list

apt-get install -y git \
openssl \
subversion \
autoconf \
libtool \
libapr \
libapr-util \
make \
libpcre3-dev \
libpcre++-dev \
libxml2-dev \
libexpat1-dev \
python

git clone https ://github.com/apache/httpd.git

cd httpd

svn co http: //svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install

./buildconf出现以下错误
./buildconf
found apr source: srclib/apr
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: python version 2.7.9 (ok)
buildconf: autoconf version 2.69 (ok)
buildconf: 找不到libtool。
您需要安装版本为1.4或更高的libtool以从SVN构建APR。
./buildconf无法完成apr的构建


在上面的例子中,我已经安装了libtool。但是没有找到libtool。当我运行apt-get install -y libtool时,我收到以下消息
# apt-get install -y libtoo
apt-get install -y libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
libtool已经是最新的版本。
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
W: Duplicate sources.list entry http://ports.ubuntu.com/ubuntu-ports/ vivid/restricted ppc64el Packages (/var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_vivid_restricted_binary-ppc64el_Packages)
W: Duplicate sources.list entry http://ports.ubuntu.com/ubuntu-ports/ vivid/main ppc64el Packages (/var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_vivid_main_binary-ppc64el_Packages)
W: 您可能想运行apt-get update以解决这些问题

但是,当我尝试命令时,我得到 $libtool
bash: libtool: command not found
$man libtool
bash: man: command not found
$libttol --help
bash: libttol: command not found
$libtool --version
bash: libtool: command not found

1个回答

17
在Ubuntu vivid中,/usr/bin/libtoollibtool-bin软件包提供,而不是libtool软件包。请安装libtool-bin软件包:
apt-get update
apt-get install -y libtool-bin

谢谢Thomas,我给你点赞了,因为这是正确的答案。 - Jeroen Flamman
留给Debian来处理两个包:libtool(没有libtool)和libtool-bin(有libtool)。:( - Christopher Schultz
@ChristopherSchultz,如果Apache Httpd的文档也提到libtool-bin(就像它为glibtool所做的那样),那将是很好的。 httpd / .travis.yml已经使用了libtool-bin - Andrei Damian-Fekete
与大多数开源项目一样,欢迎补丁 - Christopher Schultz

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接