Обсуждение: Make not working (on RHE)

Поиск
Список
Период
Сортировка

Make not working (on RHE)

От
Ron St-Pierre
Дата:
I am installing postgres 7.3.4 on a RedHat Enterprise box but 'make'
refuses to work. When installing as user postgres I get the following
error message:
------------------------------------
 driver:
     [copy] Copying 1 file to
/usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC3 edition driver

 compile:
    [javac] Compiling 52 source files to
/usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/build
    [javac]
/usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29:
error: Method
`org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)'
was defined with return type
`org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
    [javac]        static Jdbc3PoolingDataSource getDataSource(String name)
    [javac]                                      ^
    [javac] 1 error

 BUILD FAILED
 file:/usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/build.xml:104:
Compile failed; see the compiler error output for details.
------------------------------------

I have already removed all traces of postgres which were installed as
well as the rh-postgresql3.jar file. Currently I do not have the
classpath set.

Java version:
   java version "1.4.2_01"
   Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
   Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
Ant version: 1.5.3-1

I have also tried postgres 7.4.1 with the same error(slightly different).

I have found a few references to this, the most promising has a response
from Kris Jurka which says that the postgresql.jar file may still be
hanging around somewhere, but it is totally removed from my system.


Can anyone help?

ps I also tried to copy the latest jdbc3 driver from jdbc.postgresql.org
and place it in the classpath, but it still didn't work.
pps my configure params:
 ./configure --enable-multibyte \
              --enable-odbc \
              --with-java \
               --with-maxbackends=96 \
              --enable-syslog




Re: Make not working (on RHE)

От
Dave Cramer
Дата:
Have you looked in the lib/ext directory for it ?

Try a quick and dirty

main() throws Exception
{
    Class.forName("org.postgresql.Driver");
}

if it doesn't throw an exception then run java with -verbose to see
where it is loading the jar from...

Dave
On Mon, 2004-04-19 at 18:14, Ron St-Pierre wrote:
> I am installing postgres 7.3.4 on a RedHat Enterprise box but 'make'
> refuses to work. When installing as user postgres I get the following
> error message:
> ------------------------------------
>  driver:
>      [copy] Copying 1 file to
> /usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/org/postgresql
>      [echo] Configured build for the JDBC3 edition driver
>
>  compile:
>     [javac] Compiling 52 source files to
> /usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/build
>     [javac]
> /usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29:
> error: Method
> `org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)'
> was defined with return type
> `org.postgresql.jdbc2.optional.PoolingDataSource' in class
> `org.postgresql.jdbc2.optional.PoolingDataSource'.
>     [javac]        static Jdbc3PoolingDataSource getDataSource(String name)
>     [javac]                                      ^
>     [javac] 1 error
>
>  BUILD FAILED
>  file:/usr/local/src/postgresql-7.3.4/src/interfaces/jdbc/build.xml:104:
> Compile failed; see the compiler error output for details.
> ------------------------------------
>
> I have already removed all traces of postgres which were installed as
> well as the rh-postgresql3.jar file. Currently I do not have the
> classpath set.
>
> Java version:
>    java version "1.4.2_01"
>    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
>    Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
> Ant version: 1.5.3-1
>
> I have also tried postgres 7.4.1 with the same error(slightly different).
>
> I have found a few references to this, the most promising has a response
> from Kris Jurka which says that the postgresql.jar file may still be
> hanging around somewhere, but it is totally removed from my system.
>
>
> Can anyone help?
>
> ps I also tried to copy the latest jdbc3 driver from jdbc.postgresql.org
> and place it in the classpath, but it still didn't work.
> pps my configure params:
>  ./configure --enable-multibyte \
>               --enable-odbc \
>               --with-java \
>                --with-maxbackends=96 \
>               --enable-syslog
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>
>
> !DSPAM:40846039113691938515933!
>
>
--
Dave Cramer
519 939 0336
ICQ # 14675561


Re: Make not working (on RHE)

От
Ron St-Pierre
Дата:
Dave Cramer wrote:

>Have you looked in the lib/ext directory for it ?
>
>Try a quick and dirty
>
>main() throws Exception
>{
>    Class.forName("org.postgresql.Driver");
>}
>
>if it doesn't throw an exception then run java with -verbose to see
>where it is loading the jar from...
>
>
Thanks, that helped me track it down on one of the servers - it pointed
out the rt.jar file so I included it in my classpath. On the other
server the problem was (somehow) related to having two versions of ant
installed. That's what happens when more than one person  is responsible
for configuring the server.

Ron