从 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
萨里曼

tar无非是一个压缩文件。没有特定的方法来“安装”一个tar. 如果里面是可安装的软件,则取决于该软件随附的注释,以定义您将如何安装它。通常,笔记txtREADME. 如果有make文件,那么您将不得不发出您刚才提到的上述命令。否则,您将必须遵循这些说明。

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章