> On Nov 18, 2014, at 9:33 AM, Jess H. Brewer <j...@triumf.ca> wrote:
>
> Okay, I narrowed down my problem as follows: I made sure I had the
> latest JDK from Oracle (installed without a hitch) and then did
> piecewise updates until the only ones left (according to update-all)
> were various octave packages and system-java16-dev. None of the octave
> stuff would build without system-java16-dev, but there were a mix of
> octave364 and octave382 packages, so I figured a "clean slate" might
> help, so I carefully removed all octave packages (real and virtual).
> Then I tried reinstalling octave:
>
> root@airmac:~# fink install octave
> Information about 10254 packages read in 1 seconds.
> The following package will be installed or updated:
> octave
> The following 3 additional packages will be installed:
> fink-octave-scripts octave382 system-java16-dev
> Default answer will be chosen in 60 seconds...
> Do you want to continue? [Y/n]
> Reading buildlock packages...
> /sw/bin/dpkg-lockwait -i
> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/fink-octave-scripts_0.3.2.1-1_darwin-x86_64.deb
> Selecting previously deselected package fink-octave-scripts.
> (Reading database ... 308465 files and directories currently installed.)
> Unpacking fink-octave-scripts (from
> .../fink-octave-scripts_0.3.2.1-1_darwin-x86_64.deb) ...
> Setting up fink-octave-scripts (0.3.2.1-1) ...
> We replaced any previously installed oct-cc and oct-cxx compiler wrappers.
> Be sure to update any octave3XY*-dev packages to their newest version.
>
> Setting runtime build-lock...
> dpkg-deb -b
> /sw/src/fink.build/root-fink-buildlock-system-java16-dev-1.6.0-1
> /sw/src/fink.build
> dpkg-deb: building package `fink-buildlock-system-java16-dev-1.6.0-1' in
> `/sw/src/fink.build/fink-buildlock-system-java16-dev-1.6.0-1_2014.11.18-08.39.07_darwin-x86_64.deb'.
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i
> /sw/src/fink.build/fink-buildlock-system-java16-dev-1.6.0-1_2014.11.18-08.39.07_darwin-x86_64.deb
> Selecting previously deselected package
> fink-buildlock-system-java16-dev-1.6.0-1.
> (Reading database ... 308486 files and directories currently installed.)
> Unpacking fink-buildlock-system-java16-dev-1.6.0-1 (from
> .../fink-buildlock-system-java16-dev-1.6.0-1_2014.11.18-08.39.07_darwin-x86_64.deb)
>
> ...
> Setting up fink-buildlock-system-java16-dev-1.6.0-1
> (2014.11.18-08.39.07) ...
>
> sudo -u fink-bld [ENV] sh -c /tmp/fink.gGwTm
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Permission denied
> /tmp/fink.27Ixn
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Permission denied
>
> +----------
> |
> | Attention!
> |
> | Package system-java16-dev is an autogenerated virtual package.
> |
> | You cannot manipulate this type of package using the usual Fink tools.
> | A detailed description of this package follows...
> |
> | This package represents the development headers for
> | Java 1.6.0. If this package shows as not being installed,
> | you must download the Java SDK from Apple at:
> |
> | http://connect.apple.com/
> |
> | (free registration required)
> |
> | or the Java JDK from Oracle at:
> |
> | http://www.oracle.com/technetwork/java/javase/downloads/index.html
> |
> | Web site: http://www.finkproject.org/faq/usage-general.php#virtpackage
> |
> +----------
>
> ### execution of /tmp/fink.27Ixn failed, exit code 1
> ### execution of /tmp/fink.gGwTm failed, exit code 1
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-system-java16-dev-1.6.0-1
> (Reading database ... 308487 files and directories currently installed.)
> Removing fink-buildlock-system-java16-dev-1.6.0-1 ...
> Failed: phase compiling: system-java16-dev-1.6.0-1 failed
>
> Before reporting any errors, please run "fink selfupdate" and try again.
>
> (I did. It had no effect.)
>
> Looks like I have to do without octave for now. Hopefully not forever?
> Does octave382 really require java16 (which I presume means java 6)?
> Would java 8 (java18) do? Can I fool it into accepting the latest
> java? Can I have multiple versions of java on my system? (Sounds very
> dangerous!) Sorry for all the dumb questions.
>
> Cheers — Jess
>
Multiple versions of Java on the system doesn’t usually cause problems. The
system generally points things to whatever the latest one on the system is.
However, Octave-3.8 _really_ requires Java-1.6 for now. It _links_ to a Java
library, which isn’t best practice. Modifying it to link to the corresponding
library from Java 1.7 or Java 1.8 is nontrivial, because Oracle decided _not_
to provide an unversioned library option, and when I tried a simple tweak it
produced builds which varied depending on what teeny-version of Java is
newest. This means that folks using the binary distribution would need the
same teeny-version installed (not necessarily as the newest) to have a working
package—and if you installed a newer teeny version of Java and removed the old
one you’d break Octave and have to rebuild it. There might be another way
forward to handle this, but I haven’t had time since nobody seems willing to
pay me enough that I can quit my day job and devote full time to Fink matters.
You’ve got a few options:
1) Install Java for OS X 2014-001:
http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg
<http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg>
That’s got the Java-1.6 SDK and you’ll therefore have system-java16 and
system-java16-dev. It’s worked for everybody who has tried it.
2) Use Octave-3.6.4, which doesn’t need Java. “fink install octave-3.6.4” will
give you the unversioned executable, manpage, and working help system.
3) Make a local modification to octave-3.8.2.info and disable Java support by
adding --disable-java to the ConfigureParams, then remove system-java16 and
system-java16-dev from the dependency list. I’m not sure what functionality
that removes, however.
--
Alexander Hansen, Ph.D.
Fink User Liaison
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users