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

From Justin Clift
Subject Re: compiling postgres 7.1.3 with ANT and JAVA
Date
Msg-id 3C5233EE.B50D4F6D@postgresql.org
Whole thread Raw
In response to compiling postgres 7.1.3 with ANT and JAVA  (Eric Webber <streethockey@ureach.com>)
List pgsql-jdbc
Hi Eric,

I don't know anything about ANT, but ant.bat in this case looks to be a
DOS/Windows "batch file".  (A batch file is a script made or DOS or
Windows).

It's *definitely* not going to do anything productive when run on a
RedHat Linux (aka Non-DOS/Non-Windows) system.

Don't know if this info is helpful, but hope it is.

:)

Regards and best wishes,

Justin Clift


Eric Webber wrote:
>
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
   - Indira Gandhi

pgsql-jdbc by date:

Previous
From: Eric Webber
Date:
Subject: compiling postgres 7.1.3 with ANT and JAVA
Next
From: Rene Pijlman
Date:
Subject: Re: compiling postgres 7.1.3 with ANT and JAVA