On 2012-03-23, Robert Samal <robert.sa...@gmail.com> wrote: > ------=_Part_772_24642055.1332490982625 > Content-Type: multipart/alternative; > boundary="----=_Part_773_30231439.1332490982625" > > ------=_Part_773_30231439.1332490982625 > Content-Type: text/plain; charset=ISO-8859-1 > > >> >> Can you post the logs from doing sage -python setup.py instasll, as well >> as explicit instructions (where to download, etc.) for how to duplicate >> the error? >> > Sure. It's rather long, but I suppose if it works it would be useful for > other people, too. I was hoping someone could spot the problem just from > the above description. > > Anyway, here you go: > > 1) download ATLAS library --- I did use debian package > apt-get install libatlas-base-dev --install-suggests > but one can also download from the web-site > http://math-atlas.sourceforge.net/ > > --> Now I discovered that sage has its own atlas libraries. Should I be > trying > to build against them?
yes, absolutely. > Do I need to build sage from source to do this? no, not really (but YMMV, as always :)) > 2) download http://www.coin-or.org/download/source/Csdp/Csdp-6.1.1.tgz > unzip and install using the instructions. This is straightforward process > make > make install > > 3) download > http://ifatwww.et.uni-magdeburg.de/syst/about_us/people/kern/downloads/pycsdp-0.10.zip > unzip, edit the setup.py to point to the Csdp library and includes, then run > python setup.py install as a root to install "to the system" . > > To install to sage I tried > sage -python setup.py install > but I believe now that already here is a problem (or the problem?): > the installation using python finds the ATLAS library > FOUND: > libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] > library_dirs = ['/usr/lib/atlas-base/atlas', '/usr/lib/atlas-base'] > language = f77 > include_dirs = ['/usr/include/atlas'] indeed, it's a problem. More than one, actually. To fix paths, you can do the following: somewhere at the top of setup.py, insert lines import os SAGE_LIB = os.environ['SAGE_LOCAL']+'/lib' SAGE_INCLUDE = os.environ['SAGE_LOCAL']+'/include' then replace library_dirs = ['/usr/lib/atlas-base/atlas', '/usr/lib/atlas-base'] with library_dirs = [SAGE_LIB+'/atlas-base/atlas', SAGE_LIB+'/atlas-base'] and include_dirs = ['/usr/include/atlas'] with include_dirs = [SAGE_INCLUDE+'/atlas'] But Sage does not have 'ptf77blas', 'ptcblas', it has 'blas', 'cblas' (i.e. non-multithreaded versions of them). Perhaps replacing libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] with libraries = ['lapack', 'blas', 'cblas', 'atlas'] would still work. You should also have just library_dirs = [SAGE_LIB] (not what I posted above). An alternative would be to install these 'pt'*blas in Sage, doing this in Sage shell (i.e. sage -sh), but I have no idea whether this will work out of the box, if at all (multithreading is tricky...). Best, Dmitrii > > while sage-python doesn't find it. Instead, it complains about missing > directories > (full logs attached): > > /data/local/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/numpy/distutils/system_info. > UserWarning: Specified path /home/wstein/build/sage-4.8/local/lib is > invalid. > warnings.warn('Specified path %s is invalid.' % d) > > Is this a bug? What should I do to use my libraries instead of wstein's? :-) > Do I need to compile my sage, so that I can add stuff to it? > > Thanks! > Robert > > > > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org