Build m4, autoconf, automake, libtool on unix

拟墨画扇 提交于 2019-12-10 19:59:49

问题


I'm trying to setup PHP, apache environment on HP-UX server. While install i'm using usual commands of "./configur, make, make install". Here when I'm trying to install PCRE I got an error like follows.

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

So I download latest versions of "m4, autoconf and automake" source and try to install using usual make command.

First I tried to install "automake" it through error asking to install "autoconf" Then I tried to install autoconf again it ask to install "m4" Then I tried to install "m4" now it through the same error above listed. So it became a loop of same set of error not letting me to install.

Can any one help me to sort this issues. Please consider this is a HP-UX unix server so don't recommend the famous ubuntu "apt-get install" command or red hat specific commands.


回答1:


First read William Pursell's comment to your post (above). If you still need to install the autotools ...

  1. Check to see what, if any, autotools you may already have installed by typing: m4 --versionand autoconf --versionand automake --version.
  2. You should use HP-UX's package manager. It's called Software Distributor (SD). http://en.wikipedia.org/wiki/Software_Distributor
  3. HP-UX's FAQ 5.9 explains how to handle dependencies using depothelper. http://hpux.connect.org.uk/hppd/answers/5-9.html
  4. Here is where you find the correct autotool packages (autoconf, automake, libtool) for HP-UX. Install these HP-UX packages using HP-UX's native package manager instead of compiling from source. http://hpux.connect.org.uk/hppd/packages.html



回答2:


I was facing the same problem with m4. In my case, the problem was I was transferring all the source files via scp to a server.

When I tried to configure, make and make install through ssh, this kept happening. I believe something did not transfer the way it was supposed to.

The problem was solved by manually transferring the files through a USB.

It's not a perfect solution (it implies physical access to the server) but it works.



来源:https://stackoverflow.com/questions/24233721/build-m4-autoconf-automake-libtool-on-unix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!