Apache OpenOffice (AOO) Bugzilla – Issue 125830
aoo-4.1.1 cannot configure: error: no, you need at least ant >= 1.6.0
Last modified: 2016-08-29 17:43:03 UTC
Created attachment 84168 [details] Log of ./configuration BUILD AOO-4.1.1 FROM SOURCE FAILS HERE IS WHAT I DID: autoconf ./configure --with-dmake-path=/usr/local/bin/dmake --with-epm-url=http://www.msweet.org/files/project2/epm-3.7-source.tar.gz --disable-odk --prefix=/Users/ugurmeryem/currentaoo --without-junit BUT CONFIGURATION FAILS WITH THIS: checking for jakarta-ant... no checking for ant... /opt/local/bin/ant checking if /opt/local/share/java/apache-ant/bin/ant works... configure: WARNING: Ant does not work - Some Java projects will not build! checking whether ant is >= 1.6.0... ./configure: line 22531: test: not /System/Library/Frameworks/JavaVM: integer expression expected configure: error: no, you need at least ant >= 1.6.0 HOWEVER, MY ANT VERSION: Ugur-MacBook-Pro:aoo-4.1.1 ugurmeryem$ ant -version Apache Ant(TM) version 1.9.3 compiled on December 23 2013 NOTE: I HAVE FOLLOWED THE INSTRUCTIONS HERE: https://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX
Also seen on Ubuntu 16.04 LTS
use --with-ant-home along with --with-java --with-jdk-home=$JAVA_HOME to solve this problem.