View previous topic :: View next topic |
Author |
Message |
474 l33t
Joined: 19 Apr 2002 Posts: 714
|
Posted: Thu May 02, 2002 7:03 pm Post subject: Problem emerging postgresql (Java/JDBC related) |
|
|
I am trying to emerge postgresql on a new system (for a friend who is a developer and is using plenty of USE flags). It appears to be compiling in JDBC support, and it flakes out with the following:
make[3]: Entering directory '/var/tmp/portage/postgresql-7.1.3-r4/work/postgresql-7.1.3/src/interfaces/jdbc'
/usr/bin/ant -buildfile ../../../build.xml -Dmajor=7 -Dminor =1 -Dfullversion=7.1.3 -Ddef_pgport=5432
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
make[3]: *** [all] Error 1
...
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 51, Exitcode 2
!!! (no error message)
I have already emerged the blackdown-jre and run java-config to select it as the default system-wide virtual machine (originally it complained about not having a VM available before I did this). I suppose it has something to do with the path used to find Java classes (?) but I'm not sure what to do about it. Any help would be appreciated! |
|
Back to top |
|
|
Guest Guest
|
Posted: Mon May 13, 2002 3:39 am Post subject: |
|
|
I'm having the same problem. Any help would be greatly appriciated!!!
Thanks,
|
|
Back to top |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Mon May 13, 2002 7:03 am Post subject: Java |
|
|
Guys,
First install java!
emerge java sun-jdk will not work because of the agreement.
grab it from java.sun.com into the /usr/portage/distfiles
then run emerge sun-jdk
then try install the server portgresql
pacman _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Mon May 13, 2002 7:04 am Post subject: Java |
|
|
Now i see that you already got java.
Try set the CLASS_PATH
PACMAN _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
474 l33t
Joined: 19 Apr 2002 Posts: 714
|
Posted: Mon May 13, 2002 11:18 am Post subject: Oh classes, where art thou? |
|
|
Thanks PACMAN. The only problem is that I cannot work out where the core java classes are and therefore, what the path should be. Otherwise I would not have raised the question!
This is what happens when I do a java-config --list-available-packages
Code: | ls: /usr/share/*/classpath.env: No such file or directory
ls: /usr/share/*/package.env: No such file or directory |
I've searched for .env files under /usr/share and there are none. Any ideas? I shouldn't have to use the Sun implementation, should I? |
|
Back to top |
|
|
|