Compiling Under Fedora Core 5

Help
2008-01-10
2012-09-01
  • Russell Almond
    Russell Almond
    2008-01-10

    I managed to get JAGS to compile under Fedora Core 5 by rebuilding the autoconfig stuff. Here are the steps I used.

    Here is what I needed to do to get JAGS to compile on my system.

    1) Find location of f77 and set F77 variable:

    setenv F77 gfortran

    2) Find and identify location of blas and lapack /usr/lib64/libXXX.so

    3) Recreate aclocal.m4

    aclocal

    4) Get files missing for automake:

    cp /usr/share/automake-1.9/install-sh .
    cp /usr/share/automake-1.9/config.* .
    cp /usr/share/automake-1.9/missing .
    cp /usr/share/automake-1.9/INSTALL .
    cp /usr/share/automake-1.9/compile .
    cp /usr/share/automake-1.9/depcomp .
    cp /usr/share/libtool/ltmain.sh .

    5) Run automake

    automake

    6) Run autoconf/automake in libltdl director

    cp install-sh config.* missing ltmain.sh libltdl
    cd libltdl
    aclocal
    autoconf
    automake
    cd ..

    7) configure

    ./configure --prefix=$HOME '--with-blas=/usr/lib64/libblas.so' '--with-lapack=/
    usr/lib64/liblapack.so' 'F77=gfortran'

    8) make

    I also created a mini acinclude.m4 that had just the following lines:
    m4_include([m4/R.m4])
    m4_include([m4/acx_blas.m4])
    m4_include([m4/acx_fortran.m4])
    m4_include([m4/acxx_lapack.m4])
    m4_include([m4/libtool.m4])

    this seems to work, but I have not had time to test it much.