Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem emerging postgresql (Java/JDBC related)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
474
l33t
l33t


Joined: 19 Apr 2002
Posts: 714

PostPosted: Thu May 02, 2002 7:03 pm    Post subject: Problem emerging postgresql (Java/JDBC related) Reply with quote

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
View user's profile Send private message
Guest
Guest





PostPosted: Mon May 13, 2002 3:39 am    Post subject: Reply with quote

I'm having the same problem. Any help would be greatly appriciated!!!

Thanks,
:D
Back to top
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon May 13, 2002 7:03 am    Post subject: Java Reply with quote

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
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon May 13, 2002 7:04 am    Post subject: Java Reply with quote

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
View user's profile Send private message
474
l33t
l33t


Joined: 19 Apr 2002
Posts: 714

PostPosted: Mon May 13, 2002 11:18 am    Post subject: Oh classes, where art thou? Reply with quote

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! :lol:

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum