I see there is a new version of the system library available via Package 
Manager that fixes the problems in eigenpic.ijs. Now only the lapack.ijs in the 
LAPACK addon needs attention.

My suggestion for fixing this is to change lines 268-269 of lapack.ijs from:
path=: jpath '~addons\math\lapack\'
dll=: '"',path,bin,'" '

to:

path=: jpath '~addons\math\lapack\'
darwinlibpath=. /System/Library/Frameworks/vecLib.framework/
dllpath=. (sys>0){:: darwinlibpath;path
dll=: '"',dllpath,bin,'" '

This doesn't require any additonal symlink files to be distributed or created.
Tested on OS X 10.5.2.
   JVERSION
Installer: j602a_mac_intel.dmg
Engine: j602/2008-03-03/16:45
Library: 6.02.024



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of J. Patrick Harrington
> Sent: Sunday, 9 March 2008 02:47
> To: Beta forum
> Subject: RE: [Jbeta] j602: problem running LAPACK on Mac
>
>
> Yes, that's it. On my Mac I just replaced
> dll=. IFUNIX pick 'jlapack.dll';'lapack.so'
> with
> dll=. 'vecLib'
> where vecLib is the symbolic link in \math\lapack, and
> now the eigenpicture demo runs fine. I hope lapack.ijs and
> isigraph/eigenpic.ijs can be fixed so they function "out of
> the box" for all platforms. Otherwise it may give new users
> the impression that j602 is "buggy", which we know isn't
> the case.
>
> On Sat, 8 Mar 2008, Sherlock, Ric wrote:
> > This is related to my post a few days ago where I thought
> that the addon wasn't installing the lapack library on the
> Mac. I understand now from your post and the earlier thread
> that lapack is already installed on Macs as vecLib. In that
> case the logic of the ep_run verb in eigenpic.ijs needs
> updating to take the Mac into account. Currently is is:
> > ep_run=: 3 : 0
> > dll=. IFUNIX pick 'jlapack.dll';'lapack.so'
> >
> > if. 0 >: fsize jpath '~addons\math\lapack\',dll do.
> >  info 'Demo requires LAPACK'
> >  return.
> > end.
> > ....
> > )
> >
> > ---J. Patrick Harrington wrote:
> >> I've now found a discussion back in 29 Aug 2007 with Oleg and
> >> Dan Bron: the problem seems to be the definition in lapack.ijs:
> >>
> >>    bin=. > sys { 'vecLib';'lapackso';'jlapack.dll'
> >>
> >> and there is of course no "vecLib" in addons/math/lapack. I've
> >> made the link
> >>
> >> ln -s
> >> /System/Library/Frameworks/vecLib.framework/Versions/Current/vecLib
> >>            /Users/jph/j602/addons/math/lapack/
> >>
> >> and now the lab and other LAPACK routines seem OK.
> Shouldn't this be
> >> fixed so things run without setting up links?
> >>
> >> And the eigenpictures
> >> demo still can't find LAPACK.
> >>
> >>                                                  Patrick
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to