You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by sibu <si...@btconnect.com> on 2015/09/19 12:03:34 UTC
aOO-4.1.1//configure script// ant-1.9.2//openjdk-1.7.0-7u6
Greetings,
I am attempting to compile apache-openoffice. My computer has these:
--cpu amd64 2 cores
--os-blfs linux, (linux-4.2, gcc-4.8.1, openjdk-1.7.0-7u6, ant-1.9.2 ( ant is
in /opt/ant-1.9.2
and the latter is set as the ENVAR ${ANT_HOME})
openjdk-1.7.0-7u6 is in /opt/openJDK and the llatter set as $JAVA_HOME
my configure options have these:-
--without-java \
--without-system-jars \
--with-vba-package-format="builtin" \
--enable-wiki-publisher \
--with-junit=/opt/java \
when I run ./configure --variousOptions ... it ends like so:-
#--------------------------------------
checking whether to trigger rat scan... no
checking whether ant is >= 1.6.0... ./configure: line 22577: -version: command
not found
./configure: line 22583: test: : integer expression expected
configure: error: no, you need at least ant >= 1.6.0
#--------------------------------------
I tried the following versions of apache openoffice:-
--A--apache-openoffice-4.1.1-r1617669
--B--openoffice-trunk_GIT180915 (fetched as a zipped file from github 18th
September 2015)
both gave the same result.
I also symlinked /opt/ant/1.9.2/bin/ant to /usr/bin/ant
and this gave the same result too.
The offending line 22577 in the configure script is this:-
#---------------------------------------
ant_version=`$ANT -version | $AWK '{ print $4; }'`
#---------------------------------------
I changed and tested it like so
sibu [ ~ ]$ ant_version=$( /usr/bin/ant -version | /usr/bin/awk '{ print $4;
}' )
sibu [ ~ ]$ echo $ant_version
1.9.2
I then ran configure again and this results:-
#-----------------------------------
checking whether ant is >= 1.6.0... ./configure: line 22583: test: not
NO_JAVA_HOME/bin/java: integer expression expected
configure: error: no, you need at least ant >= 1.6.0
#-----------------------------------
but line 22583 of the configue script reads:-
#-----------------------------------
if test "$ant_version_major" -ge "2"; then
#-----------------------------------
there is no mention of of "NO_JAVA_HOME/bin/java"
Help/advice will be appreciated.
Sincerely
Sibu
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: aOO-4.1.1//configure script// ant-1.9.2//openjdk-1.7.0-7u6
Posted by Damjan Jovanovic <da...@apache.org>.
Hi
Try adding
--with-ant-home=/opt/ant-1.9.2
instead of the ENVVAR or link in /usr/bin/ant.
Also please attach your config.log.
Damjan
On Sat, Sep 19, 2015 at 12:03 PM, sibu <si...@btconnect.com> wrote:
> Greetings,
>
> I am attempting to compile apache-openoffice. My computer has these:
> --cpu amd64 2 cores
> --os-blfs linux, (linux-4.2, gcc-4.8.1, openjdk-1.7.0-7u6, ant-1.9.2 ( ant is
> in /opt/ant-1.9.2
> and the latter is set as the ENVAR ${ANT_HOME})
> openjdk-1.7.0-7u6 is in /opt/openJDK and the llatter set as $JAVA_HOME
>
> my configure options have these:-
>
>
> --without-java \
> --without-system-jars \
> --with-vba-package-format="builtin" \
> --enable-wiki-publisher \
> --with-junit=/opt/java \
>
>
> when I run ./configure --variousOptions ... it ends like so:-
> #--------------------------------------
> checking whether to trigger rat scan... no
> checking whether ant is >= 1.6.0... ./configure: line 22577: -version: command
> not found
> ./configure: line 22583: test: : integer expression expected
> configure: error: no, you need at least ant >= 1.6.0
> #--------------------------------------
>
> I tried the following versions of apache openoffice:-
> --A--apache-openoffice-4.1.1-r1617669
> --B--openoffice-trunk_GIT180915 (fetched as a zipped file from github 18th
> September 2015)
>
> both gave the same result.
>
> I also symlinked /opt/ant/1.9.2/bin/ant to /usr/bin/ant
>
> and this gave the same result too.
>
> The offending line 22577 in the configure script is this:-
> #---------------------------------------
> ant_version=`$ANT -version | $AWK '{ print $4; }'`
> #---------------------------------------
>
> I changed and tested it like so
>
> sibu [ ~ ]$ ant_version=$( /usr/bin/ant -version | /usr/bin/awk '{ print $4;
> }' )
> sibu [ ~ ]$ echo $ant_version
> 1.9.2
>
>
> I then ran configure again and this results:-
>
> #-----------------------------------
> checking whether ant is >= 1.6.0... ./configure: line 22583: test: not
> NO_JAVA_HOME/bin/java: integer expression expected
> configure: error: no, you need at least ant >= 1.6.0
> #-----------------------------------
>
> but line 22583 of the configue script reads:-
> #-----------------------------------
> if test "$ant_version_major" -ge "2"; then
> #-----------------------------------
>
> there is no mention of of "NO_JAVA_HOME/bin/java"
>
> Help/advice will be appreciated.
>
> Sincerely
> Sibu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org