Thread: Won't Build

Won't Build

From
Thorsten Haude
Date:
Hi,

I'm trying to build PostgreSQL and have problems with JDBC support.

I call configure with the --with-java option (among others) but the
configure run ends like this:
- - - Schnipp - - -
checking whether to build Java/JDBC tools... yes
checking for jakarta-ant... no
checking for ant... no
checking for ant.sh... no
checking for ant.bat... /opt/java/ant/bin/ant.bat
checking whether /opt/java/ant/bin/ant.bat works... no
configure: error: ant does not work
- - - Schnapp - - -

I was not surprised that batch files don't work on my Linux box.
However, checking my Ant installation, I couldn't find neither 'ant'
nor 'ant.sh':
- - - Schnipp - - -
yooden@eumel> ll $ANT_HOME/bin
insgesamt 20
-rw-r--r--    1 root     root         3056 Mär 17 20:17 ant.bat
-rw-r--r--    1 root     root          301 Mär 17 20:17 antRun.bat
-rw-r--r--    1 root     root          212 Mär 17 20:17 lcp.bat
-rw-r--r--    1 root     root         3736 Mär 17 20:17 runant.pl
-rw-r--r--    1 root     root         2705 Mär 17 20:17 runant.py
- - - Schnapp - - -

I found a similar question in the archives:
(http://archives.postgresql.org/pgsql-jdbc/2002-01/msg00223.php)
There are two answers, one which asked whether Ant was properly
installed, the other pointed out that batch files won't run on Linux.

Now the problem is neither of these but the simple fact that Ant 1.4.1
doesn't come with 'ant.sh', neither binary nor source distribution.

I guess here are some people who installed PostgreSQL with JDBC, so
the question is: How is is done?

My software:
SuSE Linux 7.2 (2.4.4-4GB)
PostgreSQL 7.2
Java 1.3.0
Ant 1.4.1

Thanks in advance!
Thorsten
--
The best leaders are those barely known to their followers; after them, those
they love; after them, those they fear; after them, those they despise.
    - Lao Tzu

Re: Won't Build

From
"Dave Cramer"
Date:
Hmmm.... This is a little troublesome, there should be a file in your
bin directory called just ant


[root@ebox2 jdbc]# ls /usr/local/jakarta/jakarta-ant-1.4.1/bin -l
total 36
drwxrwxr-x    2 root     root         4096 Nov 28 18:31 .
drwxrwxr-x    5 root     root         4096 Nov 28 18:31 ..
-rwxr-xr-x    1 root     root         3280 Oct 11 09:57 ant
-rw-r--r--    1 root     root         3056 Oct 11 09:57 ant.bat
-rwxr-xr-x    1 root     root           77 Oct 11 09:57 antRun
-rw-r--r--    1 root     root          301 Oct 11 09:57 antRun.bat
-rw-r--r--    1 root     root          212 Oct 11 09:57 lcp.bat
-rw-r--r--    1 root     root         3736 Oct 11 09:57 runant.pl
-rw-r--r--    1 root     root         2705 Oct 11 09:57 runant.py


[root@ebox2 jdbc]# ant -version
Ant version 1.4.1 compiled on October 11 2001
[root@ebox2 jdbc]#


I just tried this with the latest version of the code and it worked
fine.

Dave
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Thorsten Haude
> Sent: Sunday, March 17, 2002 3:20 PM
> To: PostgreSQL JDBC ML
> Subject: [JDBC] Won't Build
>
>
> Hi,
>
> I'm trying to build PostgreSQL and have problems with JDBC support.
>
> I call configure with the --with-java option (among others)
> but the configure run ends like this:
> - - - Schnipp - - -
> checking whether to build Java/JDBC tools... yes
> checking for jakarta-ant... no
> checking for ant... no
> checking for ant.sh... no
> checking for ant.bat... /opt/java/ant/bin/ant.bat
> checking whether /opt/java/ant/bin/ant.bat works... no
> configure: error: ant does not work
> - - - Schnapp - - -
>
> I was not surprised that batch files don't work on my Linux
> box. However, checking my Ant installation, I couldn't find
> neither 'ant' nor 'ant.sh':
> - - - Schnipp - - -
> yooden@eumel> ll $ANT_HOME/bin
> insgesamt 20
> -rw-r--r--    1 root     root         3056 Mär 17 20:17 ant.bat
> -rw-r--r--    1 root     root          301 Mär 17 20:17 antRun.bat
> -rw-r--r--    1 root     root          212 Mär 17 20:17 lcp.bat
> -rw-r--r--    1 root     root         3736 Mär 17 20:17 runant.pl
> -rw-r--r--    1 root     root         2705 Mär 17 20:17 runant.py
> - - - Schnapp - - -
>
> I found a similar question in the archives:
> (http://archives.postgresql.org/pgsql-jdbc/2002-01/msg00223.php)
> There are two answers, one which asked whether Ant was
> properly installed, the other pointed out that batch files
> won't run on Linux.
>
> Now the problem is neither of these but the simple fact that
> Ant 1.4.1 doesn't come with 'ant.sh', neither binary nor
> source distribution.
>
> I guess here are some people who installed PostgreSQL with
> JDBC, so the question is: How is is done?
>
> My software:
> SuSE Linux 7.2 (2.4.4-4GB)
> PostgreSQL 7.2
> Java 1.3.0
> Ant 1.4.1
>
> Thanks in advance!
> Thorsten
> --
> The best leaders are those barely known to their followers;
> after them, those they love; after them, those they fear;
> after them, those they despise.
>     - Lao Tzu
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>


Re: Won't Build

From
Thorsten Haude
Date:
Moin,

* Dave Cramer <Dave@micro-automation.net> [02-03-17 21:18]:
>Hmmm.... This is a little troublesome, there should be a file in your
>bin directory called just ant
Yep, now I see it. Strange, I made sure I got fresh packages from
Apache before posting here.

Whatever: Thank you!

Thorsten
--
Violence is the last refuge of the incompetent
    - Isaac Asimov