= Fedora Core = The following system packages are needed: {{{ yum -y install cfitsio libstdc++ libgfortran boost python-matplotlib-tk atlas ipython }}} == Binary packages == For standard fedora core 9 as an example (replace fc9 part with fcN if other binaries are available) {{{ wget http://www.atnf.csiro.au/pub/software/asap/current/asap-2.3.1-fc9.tar.bz2 }}} {{{ tar jxf asap-2.3.1-fc9.tar.bz2 cd asap-2.3.1-fc9 su ./install }}} === Notes === If you get the following error: {{{ Loading ASAP... ------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.5/site-packages/asap/__init__.py", line 314, in ? from asap._asap import Log as _asaplog ImportError: /usr/lib/python2.5/site-packages/asap/_asap.so: 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/lib/python2.5/site-packages/asap/_asap.so }}} == 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 }}} === Install scons-1.2 === {{{ wget http://prdownloads.sourceforge.net/scons/scons-1.2.0-1.noarch.rpm su rpm -i scons-1.2.0-1.noarch.rpm exit }}} === Install rpfits === {{{ wget ftp://ftp.atnf.csiro.au/pub/software/rpfits/rpfits.tar.gz 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 su make install exit cd - }}} === Install wcslib === {{{ wget ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.gz tar zxf wcslib.tar.gz cd wcslib-4.3.2 ./configure make su make install # want to link statically, so remove shred library rm -f /usr/local/lib/libwcs.so* exit cd - }}} === Install casacore === {{{ wget http://casacore.googlecode.com/files/casacore-0.4.1.tar.bz2 tar jxf casacore-0.4.1.tar.bz2 cd casacore-0.4.1 ./batchbuild.py blaslibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio su ./batchbuild.py install prefix=/usr/local exit cd - }}} === Install asap === {{{ wget ftp://ftp.atnf.csiro.au/pub/software/asap/current/asap2.3.1-src.tar.bz2 tar zxf asap2.3.1-src.tar.bz2 cd asap2.3.1 scons lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio su scons lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio install exit }}} To help out other users please also create a binary package and replace the version fc9 in the following with your version: {{{ scons makedist=fc9 lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio }}} Then send a notification to mailto:malte.marquarding@csiro.au so I can add it to the ftp area.