从 tar.gz 安装时出现“需要构建”错误

从 tar.gz 安装时出现“需要构建”错误

为了安装,我在终端中执行以下操作。

  1. tar -zxvf nombre del paquete.tar.gz

  2. cd进入文件

  3. ./configure

  4. make

  5. make install

尝试了选项 3 并得到以下结果:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for OPENSSL... yes
checking for LIBCURL... yes
checking for a2x... no
configure: error: a2x is required to build docs, install asciidoc

答案1

tar只不过是一个压缩文件。没有特定的方法来“安装” tar。如果里面是可安装的软件,则由该软件附带的说明来定义如何安装它。通常这些说明txt以 为名的纯文本文件形式存在README。如果有make文件,则必须发出您刚才提到的上述命令。否则,您必须遵循这些说明。

不过,由于您不是从存储库下载软件,因此您可能会遇到机器需要的一系列依赖项。在某些情况下,如果您的软件包管理器识别出所有依赖项,那么您所要做的就是sudo apt-get -f install。您似乎运行了./configure,它看起来像是一个运行一些命令来检查这些依赖项的脚本。否则,您将不得不通过自己安装软件包来逐步调试安装过程sudo apt-get install <package>

相关内容