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.

running install_egg_info
Removing 
/Users/was/s/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
Writing /Users/was/s/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
----------------------------------------------------------------------
| SAGE Version 2.5.alpha0, Release Date: 2007-04-23                  |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage:
sage:             sage: from sage.rings.multi_polynomial_libsingular
import MPolynomialRing_libsingulardlopen(/Users/was/s/local/lib/libsingular.so,
257): image not found

// ***dError: Bug reported: Could not get expanded executable from
/Users/was/s/local/lib/libsingular.so
 occured at feResource.cc,434
 occured at:
sage:             sage: P.<x,y,z> = MPolynomialRing_libsingular(QQ,3)
sage:             sage: P
Polynomial Ring in x, y, z over Rational Field
sage:
sage:
Exiting SAGE (CPU time 0m0.13s, Wall time 5m22.08s).
sage -rank4:~/tmp was$ sage -br

----------------------------------------------------------
sage: Building and installing modified SAGE library files.

running install
running build
running build_py
running build_ext
running build_scripts
running install_lib
running install_scripts
changing mode of /Users/was/s/local/bin/dsage_server.py to 755
changing mode of /Users/was/s/local/bin/dsage_setup.py to 755
changing mode of /Users/was/s/local/bin/dsage_worker.py to 755
running install_egg_info
Removing 
/Users/was/s/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
Writing /Users/was/s/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
----------------------------------------------------------------------
| SAGE Version 2.5.alpha0, Release Date: 2007-04-23                  |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage:             sage: from sage.rings.multi_polynomial_libsingular
import MPolynomialRing_libsingular
sage:
sage:             sage: P.<x,y,z> = MPolynomialRing_libsingular(QQ,3)

On 4/25/07, Martin Albrecht <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> I have uploaded an updated SINGULAR spkg to:
>
>    http://dobbertin.informatik.uni-bremen.de/~malb/
>
> . This spkg attempts to build a libsingular.so|.dylib besides the usual
> Singular binary. I have successfully tested in under x86 OSX, x86_64 Linux,
> and x86 Linux. In all cases, "make test" (including my tests for stuff which
> builds on libsingular.so) passes.
>
> However, I am not an expert on
>
>  * SINGULAR ('s buildsystem)
>  * autoconf/automake
>  * shared library linking (under OSX)
>
> so I would very much appreciate if some people could look over my package and
> tell me how it should be improved. I would be delighted if Justin would look
> at it for OSX reasons and Kate Minola (is she reading the devel mailinglist?)
> for autoconf reasons. Of course, everybody is very welcome to look at it
> and/or test it, these are just the two people I am aware of being better
> educated about some topics mentioned above.
>
> If you want to test it, you may want to apply the libsingular.hg from
>
>    http://dobbertin.informatik.uni-bremen.de/~malb/libsingular.hg
>
> which provides a beta of the new SINGULAR based polynomial arithmetic.
>
> If you want to investigate the package a bit more in detail, the most relevant
> file is Makefile.in in the Singular subdirectory. The target libsingular
> builds the libsingular shared library. Please note, that the current
> configure.in shipped with SINGULAR is not compatible with autoconf 2.61 such
> that I didn't touch any configure[.in] file at all.
>
> A known issue is, that under OSX I need to use the libtool (from the variable
> $(LD)) to link the library and under Linux I need to use the g++ (from the
> variable $(CXX)) or I would get C++ link errors.
>
> Thoughts?
>
> Martin
>
> --
> name: Martin Albrecht
> _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _www: http://www.informatik.uni-bremen.de/~malb
> _jab: [EMAIL PROTECTED]
>
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
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