Ignore my previous post it was a bit more complicated than it should
have been.

1. Just put the following file

http://sage.math.washington.edu/home/jkantor/cvxopt-0.8.2.p1.spkg

in spkg/standard


2.  sage: install_package('cvxopt-0.8.2.p1')



On Aug 2, 11:20 pm, Joshua Kantor <[EMAIL PROTECTED]> wrote:
> Hello,
>
> The problem is that cvxopt does not by default link in gfortran which
> apparently your libblas was compiled with.
> (Incidentally what distribution is this and are you using custom
> compiled blas/atlas or ones from a repository)
>
> To fix this try the following:
>
> 1. From your sage directory cd to spkg/standard
>
> 2. untar cvxopt-0.8.2.spkg
>
> $ tar -xjvf cvxopt-0.8.2*.spkg
>
> (replace the * by the exact version on your system)
>
> Next copy cvxopt-0.8.2*/src/src/setup.py to cvxopt-0.8.2*/patches
>
> Now retar the directory
>
> $ sage -spkg cvxopt-0.8.2*/
>
> Now in sage do
>
> sage: install_packages('cvxopt-0.8.2*.spkg')
>
> This should recompile cvxopt so it links against gfortran
> and now you should be able import anything. Let me know if this solves
> your problem.
>
> Josh
>
> On Aug 2, 8:10 am, legout <[EMAIL PROTECTED]> wrote:
>
> > Hi William,
>
> > i´ll do so soon.
>
> > I could build sage with gcc-4.0. But there´s a problem with my
> > libblas.so.
> > If i try to import cvxopt, i´ve got the following error:
>
> > sage: import numpy
> > sage: from cvxopt.base import spmatrix
> > ---------------------------------------------------------------------------
> > <type 'exceptions.ImportError'>           Traceback (most recent call
> > last)
>
> > /opt/sage/<ipython console> in <module>()
>
> > <type 'exceptions.ImportError'>: /usr/lib/libblas.so.3: undefined
> > symbol: _gfortran_runtime_error
> > sage:
>
> > As you can see, importing numpy was succsessfull.
>
> > volker
>
> > On 2 Aug., 11:16, "William Stein" <[EMAIL PROTECTED]> wrote:
>
> > > On 8/1/07, legout <[EMAIL PROTECTED]> wrote:
>
> > > > thanks for your answer. I already thought about the gcc-problem. And
> > > > yes, i´m using gcc 4.2.1.
> > > > I´ve just hoped, that this problem was fixed from 2.7 to 2.7.2 ;)
>
> > > Unfortunately not.  It's really a linbox problem, and the linbox 
> > > developers
> > > haven't been able to fix the problem yet.  But I very much hope they do 
> > > soon.
>
> > > > Another question about ATLAS. I´ve installed it in /opt/atlas/
> > > > {lib,include}. How can i tell sage (numpy,scipy,linbox,...) to use
> > > > this libraries?
>
> > > With luck you can do
> > >    export SAGE_BLAS="exact path to your blas"
> > > then (re-)build numpy and linbox.
> > > This unfortunately has not been well tested.
>
> > > --
> > > William Stein
> > > Associate Professor of Mathematics
> > > University of Washingtonhttp://www.williamstein.org


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to