compiling postgres 7.1.3 with ANT and JAVA - Mailing list pgsql-jdbc

From Eric Webber
Subject compiling postgres 7.1.3 with ANT and JAVA
Date
Msg-id 200201260205.VAA12854@www21.ureach.com
Whole thread Raw
Responses Re: compiling postgres 7.1.3 with ANT and JAVA
List pgsql-jdbc
I am using:
postgres 7.1.3
Linux Red hat version 2.4.7-10
JRE 2 build 1.3.1_02-b02, mixed mode
ant version 1.4.1

ant seems to be the problem, not sure what it
expects in terms of classpath and path and
other environment variables etc etc.  Here
is what I get.


did a configure --with-java and many other options

and here is the relevant output I get:

./configure --enable-multibyte --with-CXX --with-perl --with-python
--with-tcl --enable-odbc --with-openssl=/usr/lib/  --enable-syslog
--enable-unicode-conversion --with-java

creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking which template to use... linux
checking whether to build Java/JDBC tools... yes
checking for ant... no
checking for ant.sh... no
checking for ant.bat... /usr/local/bin/ant.bat

So Question here is why did it say no to ant and
ant.sh but not ant.bat

Then, with a gmake, I get the following:

with only relevant [as far as I could tell]
excerpts/errors included:


gmake[3]: Entering directory
`/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc'
/usr/local/bin/ant.bat -buildfile ../../../build.xml -Dmajor=7
-Dminor=1 -Dfullversion=7.1.3 -Ddef_pgport=5432
/usr/local/bin/ant.bat: @echo: command not found
: command not foundbat:
/usr/local/bin/ant.bat: line 31: syntax error near unexpected token
`(u'
'usr/local/bin/ant.bat: line 31: `rem agruments (up to the command
line limit, anyway).
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory
`/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/usr/local/src/postgresql-7.1.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/src/postgresql-7.1.3/src'
gmake: *** [all] Error 2
[postgres@gims postgresql-7.1.3]$


I read the documentation and it is really not apparent
how to set up the classpath or the path, and environment variables,
for ANT JRE and SDK. what a mess java
environment set up is.

please advise.

I can tell you where what files are located and
perhaps you can tell me how to set up the path and
classpath ?

thanks


Eric Sean Webber
streethockey@ureach.com  I can meet you in IRC



________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

pgsql-jdbc by date:

Previous
From: Florian Wunderlich
Date:
Subject: Re: trying to compile postgres with java support
Next
From: Justin Clift
Date:
Subject: Re: compiling postgres 7.1.3 with ANT and JAVA