Opened 20 years ago
Closed 20 years ago
#837 closed defect (worksforme)
Build issue --- using env. variables to find CFITSIO, FFTW
| Reported by: | Owned by: | Paul Price | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | build | Version: | 0.12.0 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Our group has been tasked with evaluating pslib for use with LSST.
(We're not the only ones associated with LSST who are using it or
trying to use it, but we have been assigned that task).
In any case, some build issues have come up that I'd like to report
as bugs. I can't get into the bugzilla site, so I hope you will
accept them via email.
1) ./configure needs to be told where cfitsio and fftw are, even
though environmental variables already point there.
I am installing pslib and its dependencies in a special area
$LSSTLOCAL. The relevant environment variables are:
setenv LSSTLOCAL "/array-2/tmp/lsst/local"
setenv PATH $LSSTLOCAL"/bin:"$PATH
setenv LD_LIBRARY_PATH $LSSTLOCAL"/lib:"$LD_LIBRARY_PATH
setenv LDFLAGS "-L$LSSTLOCAL/lib"
setenv CPPFLAGS "-I$LSSTLOCAL/include"
I can install cfitsio, fftw, gsl and libxml2 with the usual simple
./configure --prefix=$LSSTLOCAL
make
install
(I also use --enable-float for fftw, to make pslib happy).
But this fails miserably for pslib, even with all those environment
variables set. Instead I have to explicitly tell it where cfitsio and
fftw are (it can find gsl and libxml2, presumably using their config
binaries).
So I end up needing the following to even build the code:
./configure --prefix=$LSSTLOCAL --with-cfitsio=$LSSTLOCAL
--with-fftw3=$LSSTLOCAL

I believe this has been fixed since. In particular, it works for me with CVS head.