如何从 Ubuntu 11.04 中的 autotools 包安装 aclocal?我试图找到它无济于事:
sudo apt-get install aclocal
sudo apt-get install autotools-dev
apt-cache search aclocal
dpkg -S aclocal
Run Code Online (Sandbox Code Playgroud) 我需要安装自动工具。当我在 Internet 上搜索时,有多种方法可以使用诸如 之类的命令./configure。
请指导我如何安装autoconf,autotools和我的系统上相关的包。分步指南将非常有帮助。
我有一个使用 checkinstall 安装的 autoconf/automake/autoeverything 项目。当我去安装它时,我会看到这个
This package will be built according to these values:
0 - Maintainer: [ brooks94@foo.com ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ mypkg ]
3 - Version: [ ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ mypkg ]
9 - Alternate source location: [ ]
10 …Run Code Online (Sandbox Code Playgroud) 这与https://askubuntu.com/questions/453660/warning-automake-1-11-is-probably-too-old非常相似
在 Ubuntu 12.04 LTS 上,我收到以下错误消息:
WARNING: 'automake-1.14' is missing on your system.
You should only need it if you modified 'Makefile.am' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'automake' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [../Makefile.in] Error 1
Run Code Online (Sandbox Code Playgroud)
我试图用来apt-get安装最新的 automake,但它声称我已经是最新的。然而,我拥有的 automake 版本是 1.11,所以很明显我不是最新的。我确实想继续automake1.11使用系统,这样我就不会破坏任何依赖它的东西。
我如何获得最新版本才能克服这个错误?
我正在尝试将 Spamdyke 4.3.1(下载链接)转换为 Debian 软件包(.deb)。这是一个非常容易构建的软件,没有疯狂的依赖项,只是libssl-dev这样:
apt-get install build-essential devscripts \
debhelper dh-make libssl-dev
Run Code Online (Sandbox Code Playgroud)
然后一旦你解压源:
cd spamdyke-4.3.1/spamdyke
./configure --exec_prefix=/usr
make
Run Code Online (Sandbox Code Playgroud)
和平常一样
make install
Run Code Online (Sandbox Code Playgroud)
因为我愿意用这个软件制作 Debian 软件包,所以我在debian/文件夹中创建了所有必需的文件,并通过添加以下内容install来修改其目标:spamdyke/Makefile.in${DESTDIR}
install: spamdyke
cp spamdyke ${DESTDIR}/usr/local/bin/spamdyke-@PACKAGE_VERSION@
rm -f ${DESTDIR}/usr/local/bin/spamdyke
ln -s ${DESTDIR}/usr/local/bin/spamdyke-@PACKAGE_VERSION@ ${DESTDIR}/usr/local/bin/spamdyke
Run Code Online (Sandbox Code Playgroud)
但我当前的问题是,分发存档将所有源代码保存在spamdyke/文件夹而不是根文件夹中,这不是dh_*工具期望自动完成所有繁重工作的:
drwxr-xr-x 4 vagrant vagrant 4096 Feb 3 10:57 debian
drwxr-xr-x 3 vagrant vagrant 4096 Jan 30 19:43 documentation
drwxr-xr-x 2 vagrant vagrant 4096 Feb 5 21:00 …Run Code Online (Sandbox Code Playgroud)