7.2.2 java configure problem on Mac OS X 10.1.5
7.2.2 java configure problem on Mac OS X 10.1.5
От:
Joel Rodrigues <borgempath@Phreaker.net>
Дата:
Hi, I've been meaning to recompile with Java enabled, and got around to it this morning. Got Ant, built & installed it. Then ran: "./configure --enable-locale --enable-recode --enable-multibyte --with-perl --with-python --enable-odbc --with-java" It ends with this: checking whether to build Java/JDBC tools... yes checking for jakarta-ant... no checking for ant... /usr/local/ant/bin/ant checking whether /usr/local/ant/bin/ant works... no configure: error: ant does not work But Ant works: [localhost:~/eden/postgresql-7.2.2] mark% ant -version Apache Ant version 1.5 compiled on September 17 2002 Any thoughts ? - Joel
Re: 7.2.2 java configure problem on Mac OS X 10.1.5
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Joel Rodrigues writes: > checking whether /usr/local/ant/bin/ant works... no > configure: error: ant does not work Look in config.log to get more info about the problem. I've seen some reports indicating that you must have JAVA_HOME set to get ant to behave properly. regards, tom lane
Re: 7.2.2 java configure problem on Mac OS X 10.1.5
От:
Joel Rodrigues <borgempath@Phreaker.net>
Дата:
On Tuesday, September 17, 2002, at 07:50 , Tom Lane wrote:
> Joel Rodrigues writes:
>> checking whether /usr/local/ant/bin/ant works... no
>> configure: error: ant does not work
>
> Look in config.log to get more info about the problem. I've
> seen some reports indicating that you must have JAVA_HOME set
> to get ant to behave properly.
>
> regards, tom lane
>
Hi Stuart, Tom, thanks for the input !
Here's the relevant bit from config.log:
configure:1916: checking whether /usr/local/ant/bin/ant works
configure:1939: /usr/local/ant/bin/ant -buildfile conftest.xml 1>&2
Buildfile: conftest.xml
BUILD FAILED
Unable to load default ProjectHelper due to
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Total time: 5 seconds
configure: failed java program was:
public class conftest {
int testmethod(int a, int b) {
return a + b;
}
}
configure: failed build file was:
I just looked in /Library/Java/Home, and there are 2 aliases,
"doc" & "include", which lead nowhere, i.e. "the original item
could not be found". Is that normal ?
I have these set:
JAVA_HOME=/Library/Java/Home
ANT_HOME=/usr/local/ant
Cheers,
Joel
Re: 7.2.2 java configure problem on Mac OS X 10.1.5
От:
Charles Albrecht <charlesa@pobox.com>
Дата:
Joel Rodrigues wondered:
>
>I just looked in /Library/Java/Home, and there are 2 aliases,
>"doc" & "include", which lead nowhere, i.e. "the original item
>could not be found". Is that normal ?
I haven't followed the entire thread, but the link for "include" should work - it's possible that that's causing the problems you're seeing. The link for "doc" doesn't work for me here. Here's what I have on 10.1.5 with Apple's stock install (plus developer tools, natch):
The symbolic links in /Library/Java/Home/ are to ../Documentation and
../Headers respectively.
However, /Library/Java/Home/ is itself a symlink to:
/System/Library/Frameworks/JavaVM.framework/Home/
Where /System/Library/Frameworks/JavaVM.framework/Home/ is symlinked to
Versions/CurrentJDK/Home (with CurrentJDK symlinked to 1.3.1)
So, ultimately /Library/Java/Home/include should take you to:
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
You can test that this directory exists:
% ls -ld \
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
drwxr-xr-x 8 root wheel 228 Apr 1 20:29 /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
And that all the symbolic links point in the right places:
% ls -ld \
/Library/Java/Home \
/Library/Java/Home/include \
/System/Library/Frameworks/JavaVM.framework/Home \
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
(The meat of output for this is:)
/Library/Java/Home -> /System/Library/Frameworks/JavaVM.framework/Home
/Library/Java/Home/include -> ../Headers
/System/Library/Frameworks/JavaVM.framework/Home -> Versions/CurrentJDK/Home
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK -> 1.3.1
Hopefully this will help,
-Charles
charlesa@pobox.com
--
Charles Albrecht Euonymic Solutions
charlesa@pobox.com P.O. Box 300623
C>303.619.7596 F>978.334.3061 Denver, Colorado 80203-0623
http://www.euonymic.net/~charlesa/cv/
Re: 7.2.2 java configure problem on Mac OS X 10.1.5
От:
Joel Rodrigues <borgempath@Phreaker.net>
Дата:
On Thursday, September 19, 2002, at 04:39 , Charles Albrecht wrote: > Joel Rodrigues wondered: >> >> I just looked in /Library/Java/Home, and there are 2 aliases, >> "doc" & "include", which lead nowhere, i.e. "the original item >> could not be found". Is that normal ? > > I haven't followed the entire thread, but the link for > "include" should work - it's possible that that's causing the > problems you're seeing. The link for "doc" doesn't work for me > here. Here's what I have on 10.1.5 with Apple's stock install > (plus developer tools, natch): > > The symbolic links in /Library/Java/Home/ are to ../Documentation and > ../Headers respectively. > > However, /Library/Java/Home/ is itself a symlink to: > /System/Library/Frameworks/JavaVM.framework/Home/ > > Where /System/Library/Frameworks/JavaVM.framework/Home/ is symlinked to > Versions/CurrentJDK/Home (with CurrentJDK symlinked to 1.3.1) > > So, ultimately /Library/Java/Home/include should take you to: > /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers > > You can test that this directory exists: > > % ls -ld \ > /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers > > drwxr-xr-x 8 root wheel 228 Apr 1 20:29 > /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers > > And that all the symbolic links point in the right places: > > % ls -ld \ > /Library/Java/Home \ > /Library/Java/Home/include \ > /System/Library/Frameworks/JavaVM.framework/Home \ > /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK > > > (The meat of output for this is:) > > /Library/Java/Home -> /System/Library/Frameworks/JavaVM.framework/Home > /Library/Java/Home/include -> ../Headers > /System/Library/Frameworks/JavaVM.framework/Home -> > Versions/CurrentJDK/Home > > /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK -> > 1.3.1 > > > Hopefully this will help, > > -Charles > Hi Charles, Looks like something's screwy in my system ! [localhost:/Library/Java/Home] mark% l -la total 19220 drwxr-xr-x 9 root wheel 262 Feb 19 2002 . drwxr-xr-x 6 root wheel 264 Feb 19 2002 .. -rw-r--r-- 1 root wheel 3076 Dec 8 2001 JSSE Copyright.rtf -rw-r--r-- 1 root wheel 12417 Dec 8 2001 JSSE License.rtf drwxr-xr-x 22 root wheel 704 Jan 31 2002 bin lrwxr-xr-x 1 root wheel 16 Feb 19 2002 doc -> ../Documentation lrwxr-xr-x 1 root wheel 10 Feb 19 2002 include -> ../Headers drwxr-xr-x 18 root wheel 568 Feb 19 2002 lib -rw-r--r-- 1 root wheel 19657247 Feb 15 2002 src.jar [localhost:JavaVM.framework/Versions/1.3.1] mark% l -la total 0 drwxr-xr-x 6 root wheel 160 Feb 19 2002 . drwxr-xr-x 8 root wheel 264 Feb 19 2002 .. drwxr-xr-x 6 root wheel 264 Sep 19 10:39 Classes drwxr-xr-x 24 root wheel 772 Sep 19 10:42 Commands drwxr-xr-x 9 root wheel 262 Feb 19 2002 Home drwxr-xr-x 27 root wheel 874 Sep 19 10:42 Libraries The only Java Headers I can find are: [localhost:/Developer/Java/Headers] mark% l total 124 -rw-rw-r-- 1 root admin 13777 Jul 10 2001 AppKitJava.h -rw-rw-r-- 1 root admin 167 Dec 4 1997 AppKitJava_Application.h -rw-rw-r-- 1 root admin 2617 Jun 23 2001 AppKitJava_Graphics.h -rw-rw-r-- 1 root admin 644 Mar 17 1999 AppKitJava_ModalSession.h -rw-rw-r-- 1 root admin 19214 Aug 4 2001 FoundationJava.h -rw-rw-r-- 1 root admin 759 Oct 13 2000 NSJavaObject.h -rw-rw-r-- 1 root admin 1162 Mar 29 2000 NSNamedValueSequence.h -rw-rw-r-- 1 root admin 583 Jul 25 1998 ObjCJava.h -rw-rw-r-- 1 root admin 99 Dec 4 1997 PureAppKitJava.h -rw-rw-r-- 1 root admin 2235 Jul 25 1998 java-class.h -rw-rw-r-- 1 root admin 6488 Jul 22 2000 java-objc.h -rw-rw-r-- 1 root admin 11137 May 8 2001 java-vm.h -rw-rw-r-- 1 root admin 210 Apr 21 2001 jobjc-api.h -rw-rw-r-- 1 root admin 1760 Oct 13 2000 typemap.h -rw-rw-r-- 1 root admin 9290 May 8 2001 vm-interface.h -rw-rw-r-- 1 root admin 774 May 10 2001 vm-jni-inc.h -rw-rw-r-- 1 root admin 9807 Aug 4 2001 vm-jni.h I haven't fiddled with the Java setup, so one or more of Apple's updates did something weird. These are the relevant receipts of my updates, etc.: [localhost:/Library/Receipts] mark% l total 520 drwxr-xr-x 3 root wheel 264 Aug 8 10:28 BSD.pkg drwxr-xr-x 3 mark unknown 264 Sep 19 10:30 DevSDK.pkg drwxr-xr-x 3 mark unknown 264 Aug 8 11:01 DevTools.pkg drwxr-xr-x 3 root wheel 264 Aug 8 10:28 Essentials.pkg drwxr-xr-x 3 mark staff 264 Aug 8 11:36 IEUpdate.pkg drwxr-xr-x 3 root wheel 264 Aug 8 11:37 InstallerUpdate1.0.pkg drwxr-xr-x 3 root wheel 264 Sep 19 10:39 Java1.3.1Update1.pkg -rw-r--r-- 1 root admin 9606 Aug 8 10:39 Mac OS X Log.rtf -rw-r--r-- 1 mark admin 3317 Aug 8 18:21 Mac OS X Update Log.rtf drwxr-xr-x 3 mark staff 264 Aug 8 11:40 MacOSXUpdate10.1.1.pkg drwxr-xr-x 3 root wheel 264 Aug 8 11:52 MacOSXUpdate10.1.2.pkg drwxr-xr-x 3 mark staff 264 Aug 8 14:15 MacOSXUpdate10.1.3.pkg drwxr-xr-x 3 mark staff 264 Aug 8 17:58 MacOSXUpdate10.1.4.pkg drwxr-xr-x 3 mark unknown 264 Aug 8 18:10 MacOSXUpdate10.1.5.pkg -rw-r--r-- 1 root wheel 508475 Aug 8 11:08 MinimalSystem.bom drwxr-xr-x 3 mark wheel 264 Aug 9 01:57 NetworkingUpdate.pkg drwxr-xr-x 3 mark wheel 264 Aug 11 01:18 SecurityUpd2002-08-02.pkg drwxr-xr-x 3 mark wheel 264 Sep 8 23:54 SecurityUpd2002-08-20.pkg drwxr-xr-x 3 root wheel 264 Aug 8 11:27 SecurityUpdate10-19-01.pkg drwxr-xr-x 3 mark staff 264 Aug 8 18:48 SecurityUpdate7-18-02.pkg drwxr-xr-x 3 mark staff 264 Aug 8 18:06 SecurityUpdateApr2002.pkg drwxrwxrwx 3 mark unknown 264 Sep 15 11:01 bin.pkg drwxrwxrwx 3 mark unknown 264 Sep 15 11:01 include.pkg drwxrwxrwx 3 mark unknown 264 Sep 15 11:01 lib.pkg drwxrwxrwx 3 mark unknown 264 Sep 15 11:01 man.pkg - Joel