【问题标题】:Build m4, autoconf, automake, libtool on unix在 unix 上构建 m4、autoconf、automake、libtool
【发布时间】:2014-08-05 16:33:05
【问题描述】:

我正在尝试在 HP-UX 服务器上设置 PHP、apache 环境。安装时我使用“./configur, make, make install”的常用命令。在这里,当我尝试安装 PCRE 时,出现如下错误。

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/ubuntu/softwares/m4-1.4.17/build-aux/missing aclocal-1.14 -I m4 /home/ubuntu/softwares/m4-1.4.17/build-aux/missing: line 81: aclocal-1.14: command not found WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' 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/> Makefile:1496: recipe for target 'aclocal.m4' failed make: *** [aclocal.m4] Error 127

所以我下载了最新版本的“m4、autoconf 和 automake”源并尝试使用通常的 make 命令进行安装。

首先我尝试通过错误要求安装“autoconf”来安装“automake” 然后我尝试再次安装 autoconf 它要求安装“m4” 然后我尝试通过上面列出的相同错误现在安装“m4”。 所以它变成了一个循环,同样的错误不允许我安装。

谁能帮我解决这个问题。请考虑这是一个 HP-UX unix 服务器,所以不要推荐著名的 ubuntu“apt-get install”命令或 red hat 特定命令。

【问题讨论】:

  • 您不需要安装自动工具。该问题很可能是由时间戳偏差引起的,并且 pcre tarball 中的某些文件已使用不正确的时间戳解压缩。 (如果您在网络驱动器上解压 tarball,通常会发生这种情况。)尝试使用自动工具重新创建配置脚本并不是最简单的解决方案。
  • 伟大的评论威廉。我对我的文件进行了递归处理,问题就消失了。事实上,问题首先出现是因为从另一台机器传输文件。我投票赞成杰森的答案,但这是你的线索做到了。

标签: unix autoconf automake m4


【解决方案1】:

首先阅读 William Pursell 对您的帖子的评论(上图)。如果你还需要安装 autotools ...

  1. 通过键入:m4 --versionautoconf --versionautomake --version来检查您可能已经安装了哪些自动工具(如果有)。
  2. 您应该使用 HP-UX 的包管理器。它被称为软件分销商 (SD)。 http://en.wikipedia.org/wiki/Software_Distributor
  3. HP-UX 的 FAQ 5.9 解释了如何使用 depothelper 处理依赖关系。 http://hpux.connect.org.uk/hppd/answers/5-9.html
  4. 您可以在此处找到适用于 HP-UX 的正确自动工具包(autoconf、automake、libtool)。使用 HP-UX 的本机包管理器安装这些 HP-UX 包,而不是从源代码编译。 http://hpux.connect.org.uk/hppd/packages.html

【讨论】:

  • 他正在使用 HP-UX。那里没有 RPM。
【解决方案2】:

我在使用 m4 时遇到了同样的问题。就我而言,问题是我通过scp 将所有源文件传输到服务器。

当我尝试通过ssh 尝试configuremakemake install 时,这种情况一直在发生。 我相信有些东西没有按照应有的方式转移。

问题已通过手动传输文件解决 通过 USB。

这不是一个完美的解决方案(它意味着对服务器的物理访问)但它可以工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-27
    • 2015-09-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多