Re: [SciPy-user] SciPy installation problems on SUSE linux
Hi Sebastian, here is a (attached) file I used to install all the necessary packages; Things are much easier via svn of course. Hope this helps. Don't forget to remove the old stuff if you wish to reinstall scipy and numpy. Eric P.S.: I have Suse 10.1, and it installs fine on my laptop and desktop PC ####################### # LAPACK # ##################### # Build Lapack from the web since then you are sure it is complete # It is in the Suse distribution but I don't trust it wget http://www.netlib.org/lapack/lapack.tgz mkdir install_lapack cd install_lapack tar xvfz ../lapack.tgz cd LAPACK cp INSTALL/make.inc.LINUX make.inc ## This will build a lapack_LINUX.a ## That you will use later on for ATLAS make lapacklib ######################## # ATLAS # ###################### tar xvfz atlas3.6.0.tar.gz cd ATLAS ## You will have to answer a few questions... make # change "arch" with the right one # you will be asked a few question there make install arch=Linux_UNKNOWNSSE2 ## Create a new directory where to put the include and lib files ## (root) mkdir /usr/local/lib/atlas ## then copy all the include and archive (*.a) files ## under this new dir cp include/* /usr/local/lib/atlas cp *.a /usr/local/lib/atlas # in .cshrc # and don't forget to set it up setenv ATLAS /usr/local/lib/atlas ## save the lapack lib built from ATLAS (which is incomplete) cd /usr/local/lib/atlas cp liblapack.a liblapack.a_ATLAS # then create a new temporary dir which will allow you to complete # lapack mkdir tmp cd tmp # detar the atlas lapack lib ar x ../liblapack.a # then cp the true lapack linux lib into the liblapack.a file cp /soft/python/tar/install_lapack/LAPACK/lapack_LINUX.a ../liblapack.a # and add the files from the atlas lib # you will then have a full lapack lib with the atlas files too ar r ../liblapack.a *.o cd .. # remove the temp dir rm -rf tmp ## copy all *.a into your local atlas dir cp *.a /usr/local/lib/atlas # ###################### ## Added all fftw libraries from yast # ###################### # ###################### ## Adding pyfits # ###################### svn co http://astropy.scipy.org/svn/pyfits/trunk pyfits cd pyfits python setup.py install ########################################################### # NUMPY # ######### svn co http://svn.scipy.org/svn/numpy/trunk numpy cd numpy python setup.py install # ###################### ## INSTALLED IPYTHON # ###################### tar xvfz ipython-0.7.2.tar.gz cd ipython-0.7.2 python setup.py install # ###################### ## F2PY # ###################### (CVS password: guest) cvs -d :pserver:anonymous@cens.ioc.ee:/home/cvs login cvs -z6 -d :pserver:anonymous@cens.ioc.ee:/home/cvs checkout f2py2e cd f2py2e make install # ###################### ## SCIPY # ###################### ## Remove any scipy in your python before.. ## ALSO REMOVE the "build" directories from the "core" and "scipy" directories before ## doing the install!! svn co http://svn.scipy.org/svn/scipy/trunk scipy cd scipy python setup.py install ## Test:: cd # Start python and run as tests: # (level 10 will take a while ...) import scipy scipy.test(1,verbosity=10) scipy.test(10,verbosity=10) ################################# # Matplotlib ################################# svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib # Note that some matplotlibrc options have changed # such that tick ==> xtick + ytick ## not needed anymore ### # add one line in setupext.py: ### ### o.tcl_inc="/usr/include/" ### ### # before ### if not os.path.exists(o.tcl_inc): ### print 'cannot find tcl/tk headers. giving up.' ### sys.exit() ### return o # and run the usual python setup.py install
participants (1)
-
Eric Emsellem