I recently had a similar situation recently on Redhat Enterprise Linux
4.1.2. I installed autoconf/automake/libtool locally (so you don't need
admin access):
autoconf-2.63
automake-1.10.2
libtool-2.2.6 (don't know if this is necessary)
You can probably use more recent versions, but I didn't want to stray too
far from the versions in the OS, so I used late-2008 versions.
mkdir ~/aconf
For each of the packages:
1. Download it to a folder
2. Unpack with tar -xzvf <package name>
3. ./configure --prefix=~/aconf
(for installing autoconf you might have to have the OS version of autoconf
installed - chicken & egg problem)
4. make
5. make install
In ~/.bashrc modify PATH variable:
export PATH=~/aconf:$PATH
Moses (revision 3926) built fine after this.
Achim
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Barry Haddow
Sent: Thursday, April 14, 2011 12:01 PM
To: [email protected]
Subject: Re: [Moses-support] regenerate-makefiles.sh
Hi John,Javier
Sorry about the autoconf confusion. The AC_PROG_GREP and AC_PROG_SED macros
were added to autoconf in 2006, but certain distros (redhat derived, I
think)
have been slow at updating autoconf. I didn't realise that this was going to
be a problem when I added the new boost macros - they seemed to work better
than the old ones.
I'll add a note to the faq too,
best regards - Barry
On Thursday 14 April 2011 15:55, John Burger wrote:
> Barry Haddow wrote:
> > You need a more recent version of autoconf
> >
> > http://comments.gmane.org/gmane.comp.nlp.moses.user/3978
>
> Ha, just spent an hour on this myself. Can someone add a note to that
> effect at the top of regenerate-makefiles.sh? It currently only says
> this:
>
> # NOTE:
> # Versions 1.9 (or higher) of aclocal and automake are required.
>
> Adding the following line would be great:
>
> # Version 1.6 (or higher) of autoconf is required
>
> - JB
>
> > On Thursday 14 April 2011 00:06, Javier Murillo wrote:
> >> Hi all,
> >>
> >> I'm trying to build Moses and get the following errors from
> >> regenerate-makefiles.sh. I end up with a huge configure file (20,000+
> >> lines) that seems to be garbled. I will appreciate if anybody has run
> >> across the same type of errors and can help with ideas on what to
> >> do to fix
> >> them. Thank you and regards,
> >> Javier
> >>
> >> configure.in:130: warning: AC_PROG_GREP is m4_require'd but is not
> >> m4_defun'd configure.in:130: AC_PROG_GREP is required by...
> >> m4/boost.m4:215: BOOST_REQUIRE is expanded from...
> >> configure.in:130: the top level
> >> configure.in:130: warning: AC_PROG_SED is m4_require'd but is not
> >> m4_defun'd configure.in:130: AC_PROG_SED is required by...
> >> autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
> >> autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
> >> Calling /usr/bin/autoconf...
> >> configure.in:130: warning: AC_PROG_GREP is m4_require'd but is not
> >> m4_defun'd configure.in:130: AC_PROG_GREP is required by...
> >> m4/boost.m4:215: BOOST_REQUIRE is expanded from...
> >> configure.in:130: the top level
> >> configure.in:130: warning: AC_PROG_SED is m4_require'd but is not
> >> m4_defun'd configure.in:130: AC_PROG_SED is required by...
> >> autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
> >> autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
> >> configure:466: error: possibly undefined macro: BOOST_THREAD_LDFLAGS
> >> If this token and others are legitimate, please use
> >> m4_pattern_allow.
> >> See the Autoconf documentation.
> >> configure:466: error: possibly undefined macro: BOOST_CPPFLAGS
> >> configure:466: error: possibly undefined macro: BOOST_ROOT
> >> configure:466: error: possibly undefined macro: BOOST_THREAD_LIBS
> >> configure:19224: error: possibly undefined macro: AC_PROG_GREP
> >> configure:19226: error: possibly undefined macro: AC_PROG_SED
> >> configure:20069: error: possibly undefined macro: _AS_ECHO_LOG
> >> configure:20070: error: possibly undefined macro: _AC_DO_STDERR
> >> autoconf failed
> >>
> >> Javier Murillo Lopez
> >> Weather Decision Technologies, Inc.
> >> 201 David L. Boren Blvd, Ste 270
> >> Norman, OK 73072
> >> Ph: (405) 579-7675 Ext 243
> >>
> >> [wdt]<http://www.wdtinc.com/> [iMap_logo]
> >> 2011 American Meteorological Society Award for
> >> Outstanding Services to Meteorology by a Corporation
> >
> > --
> > The University of Edinburgh is a charitable body, registered in
> > Scotland, with registration number SC005336.
> >
> > _______________________________________________
> > Moses-support mailing list
> > [email protected]
> > http://mailman.mit.edu/mailman/listinfo/moses-support
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support