Fedora Core

The following system packages are needed:

yum -y install python-matplotlib-tk atlas boost-python ipython wcslib cfitsio

Binary packages

For standard fedora core 14 (64bit) as an example


Become root user

easy_install asap-4.0.0-py2.7.egg

Then run as normal user


and exit

The as root



If you something like following error:

Loading ASAP...
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.7/site-packages/asap/", line 314, in ?
    from asap._asap import Log as _asaplog
ImportError: /usr/lib/python2.7/site-packages/asap/ cannot
restore segment prot after reloc: Permission denied

Fedora is using SElinux, which makes life hell for the user. Kinda like Windows Vista, protect the system by not allowing the user to use anything

To recitfy the problem as root or sudo execute

chcon -t texrel_shlib_t  /usr/local/lib64/python2.7/site-packages/asap/

Alternative: From source

You need to install the corresponding "-devel" packages.

As root

yum -y install gcc-gfortran gcc-c++ flex bison boost-devel python-devel atlas-devel cfitsio-devel python-matplotlib-tk ipython wget make wcslib-devel 

Install rpfits

Note for 64bit you need to go to linux64 and also add -fPIC to CFLAGS and FFLAGS.

tar zxf rpfits.tar.gz
cd rpfits/linux
# edit GNUMakefile to use gfortran
perl -pi.bak -e 's/^FC.*$//; s/^FFLAGS.*$//; s/# (FC.*)$/\1/;s/# (FFLAGS.*)$/\1/;s/(LDFLAGS\s+:=).*$/\1 -lgfortran/' GNUmakefile
make install
cd -

Install casacore

tar jxf casacore-1.3.0.tar.bz2
cd casacore-1.3.0
scons --cfitsio-incdir=/usr/include/cfitsio
scons install
cd -

Install asap

tar zxf asap-4.0.0-src.tar.bz2
cd asap-4.0.0
scons lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio makedist=egg
cd asap-4.0.0
su # or sudo
python install
exit # if su was used

To help out other users please also create a binary package:

python bdist_egg
ls dist/*

There should be a file ending in .egg

Then send this to mailto:malte.marquarding@… so I can add it to the ftp area.

Last modified 10 years ago Last modified on 10/20/11 16:29:04