On 4/25/07, Martin Albrecht <[EMAIL PROTECTED]> wrote:
> On Thursday 26 April 2007 08:17, William Stein wrote:
> > Martin,
> >
> > On OS X your singular package almost, but doesn't exactly work.
> > Basically it gets names libsingular.dylib.  However when SAGE looks
> > for it, it looks for libsingular.so.  See the sessions below.  If I just
> > make a symlink libsingular.so --> libsingular.dylib then your code works,
> > so you're very very close.
>
> Did you apply the libsingular.hg patch? It is supposed to look for .dylib
> under OSX now, like this:
>
>     lib = os.environ['SAGE_LOCAL']+"/lib/libsingular.so"
>     if os.path.exists(lib):
>        handle = dlopen(lib, 256+1)
>     else:
>         lib = os.environ['SAGE_LOCAL']+"/lib/libsingular.dylib"
>         if os.path.exists(lib):
>             handle = dlopen(lib, 256+1)
>         else:
>             raise ImportError, "cannot load libSINGULAR library"
>
> Martin
>
> PS: http://dobbertin.informatik.uni-bremen.de/~malb/libsingular.hg

OK, that fixes everything.  We're good to go!  Great work.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to