Hello,

In trying to install the java package under Mac OS X 10.6.8 I was seeing
"Java Development Kit not found" during configuration and make was
returning "Java support not compiled". I tried with Octave 3.4.0 MacOS X
binary and Octave 3.6.1 built from source. I also tried an earlier version
(1.2.7) of the java package. The result was the same in all cases.

Searching this list led to the java package configuration file. The problem
for me was that there's an OS X section in the configure script that sets
all Java-required parameters but that doesn't get run if JAVA_HOME
environment variable is present, as in my case.

The attached patch to the java package configure script adds support for
the case where JAVA_HOME is set in OS X.

Note, in testing install with Octave 3.4.0 MacOS X binary, I had to
configure and install the package outside of Octave. If I tried "pkg
install" on a gzipped tarball of the patched package, I got a seg fault
when I tried to use the package. The problem seems to be that, when
installing in Octave, CXXFLAGS is being set to simply "-arch i386", which
overrides the defaults returned by mkoctfile that include a number of
additional flags. This wasn't an issue with Octave 3.6.1 built from source,
where I was able to "pkg install" the patched package from within Octave.

Steve

Attachment: config.patch
Description: Binary data

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to