Installation for 64 bit fedora system

There are some significant challenges for installation on a 64 bit system.

Status

Currently no known 64 bit issues.

Numpy / Scipy Compilation

gcc / g77 versions

As mentioned often on the numpy lists, you will need to avoid using gfortran. In the end I used a freshly compiled version of gcc 3.4.6 - see instructions here: http://www.mjmwired.net/resources/mjm-fedora-gcc.html. I set the C and fortran compilers to these using the standard environment variable tricks - e.g. export CC=gcc-3.4 ; export CFLAGS="-m64 -fPIC".

64 bit

You will need atlas, lapack and fftw libraries that are 64 bit compatible.

To do this, you need to add the following to all your compilations:

-fPIC -m64

In particular, I used the attachment:make.inc.LINUX64 file as make.inc in the LAPACK directory when building lapack.

I have got bored setting up compiles for atlas and then lapack. I now use a standard directory structure, with a directory atlas, having subdirectories atlas-version.no and LAPACK containing the current atlas version and lapack code respectively. I copy the attachment:config_atlas_gcc34.py script to the atlas-version.no directory, edit for options, and run it to start the atlas compile. If I want to change some trivial options, I just edit the Make.Linux_whatever architecture default files for the platform, and then run:

python config_from_make.py Make.Linux_whatever
make arch=Linux_whatever

to restart the compile. See the attachment:config_from_make.py file. Also see the attachment:config_atlas_gcc34.py for comments about why I added some rather obscure options to the highly P4-specific compile.

In the end my arch make file was: attachment:Make.Linux_gcc34

Finally, I built a full lapack library by putting attachment:make.inc.LINUX64 into the LAPACK/INSTALL directory (with the exact filename make.inc.LINUX64), and running:

python build_full.py 

from the atlas directory (which - as you remember - contains atlas-version.no and LAPACK).

NumPy / SciPy compilation

The latest version from svn.

I think I set the C compiler and flags just using the environment variables as above. I seem to remember setting the g77 version with something like python setup.py config_fc --f77exec=/usr/bin/g77-3.3.6 --f77flags="-m64 -fPIC" build - but that may not be right.

Don't forget to delete any previous scipy or numpy builds, such as builds in your site-packages directory, or the contents of the build subdirectory of the numpy and scipy directories.

Attachments