Opened 11 years ago

Closed 11 years ago

#36978 closed defect (fixed)

hadoop: needs build dependencies on autotools

Reported by: afveitch@… Owned by: humem (humem)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: hadoop

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Install progresses until this.

:info:build compile-native:
:info:build 
:info:build create-native-configure:
:info:build      [exec] Can't exec "aclocal": No such file or directory at /opt/local/share/autoconf/Autom4te/FileUtils.pm line 326.
:info:build      [exec] autoreconf: failed to run aclocal: No such file or directory
:info:build 
:info:build BUILD FAILED
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_hadoop/hadoop/work/hadoop-1.0.4/build.xml:611: The following error occurred while executing this line:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_hadoop/hadoop/work/hadoop-1.0.4/build.xml:618: exec returned: 1
:info:build 
:info:build Total time: 4 seconds
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_hadoop/hadoop/work/hadoop-1.0.4" && ant compile-native compile-c++-libhdfs -Dcompile.native=true -Dsnappy.prefix=/opt/local -Dcompile.c++=true -Dlibhdfs=true 
:info:build Exit code: 1

aclocal is installed -

bash-3.2$ which aclocal
/usr/local/bin/aclocal


bash-3.2$ aclocal --version
aclocal (GNU automake) 1.12.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.

I earlier had a problem with autoreconf not being found - It was there, due to a homebrew install in the past. I decided to execute a "port install" of automake and that seemed to clear that problem (not sure why.) I did not see anything clearly related to this in the ticket archives. I am new to working with macports. Any thoughts? Thanks

Andy

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: aclocal removed
Owner: changed from macports-tickets@… to hum@…
Port: hadoop added
Summary: hadoop install - aclocal not found though installedhadoop: needs build dependency on automake

Please remove /usr/local/bin/aclocal, and anything else you have in /usr/local; it is not supported to have things in /usr/local while using MacPorts because it can interfere.

You shouldn't try to use two package managers, such as Homebrew and MacPorts, at the same time because they might interfere with one another. Pick one package manager to use, and uninstall the other and any packages it installed.

If hadoop needs aclocal, then the hadoop port needs a build dependency on the automake port. This was probably not noticed before because Xcode used to include a copy of automake, but the most recent version of Xcode no longer does.

comment:2 Changed 11 years ago by afveitch@…

Thanks, that helped. But there was another problem, a likely missing libtool build dependency.

After clearing /etc/local (the Homebrew stuff) I re-executed the install and got past the aclocal problem.

But I then had a different error where AC_PROG_LIBTOOL was not defined. After nstalling the libtool package (port install libtool) the hadoop installation was successful. So I am guessing Xcode had both libtool and automake which must now be added to the hadoop install as build dependencies.

Thanks again

comment:3 Changed 11 years ago by jmroot (Joshua Root)

Summary: hadoop: needs build dependency on automakehadoop: needs build dependencies on autotools

autoreconf is provided by autoconf. So it needs the usual trio of autoconf, automake and libtool.

comment:4 Changed 11 years ago by humem (humem)

Resolution: fixed
Status: newclosed

Thanks. Committed in 99768.

Note: See TracTickets for help on using tickets.