Bug #1462
configure fails if cfitsio library is not found
Status: | New | Start date: | 05/19/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Duration: |
Description
Lili Yang had a problem with compiling ctools after a successful gammalib compilation.
There was no problem with install of gammalib. However, when I tried to ./configure ctools, there is an error,
configure: error: The GammaLib library has been built with openMP support but OpenMP is not available on this system. Please install OpenMP or re-build GammaLib without OpenMP support.
So I tried to recompile gammalib with diable-openmp,./configure --disable-openmp --prefix=/grid/software/CTA/gamma
But still the same error came out when configuring ctools as before. I notice there was a bug two year ago https://cta-redmine.irap.omp.eu/issues/552. It should have been fixed. Could you please help with this? Thanks a lot.
Following up on that it turned out that the problem was related to not finding cfitsio:
configure:17031: WARNING: GammaLib not found in any standard path configure:17063: GammaLib found in /grid/software/CTA/gamma/lib and /grid/software/CTA/gamma/include/gammalib. configure:17102: checking whether GammaLib has been compiled with OpenMP configure:17125: g++ -o conftest -g -O2 -I/usr/include/python2.6 -I/grid/software/CTA/gamma/include/gammalib -L/grid/software/CTA/gamma/lib conftest.cpp -lgamma >&5 /usr/bin/ld: warning: libcfitsio.so.2, needed by /grid/software/CTA/gamma/lib/libgamma.so, not found (try using -rpath or -rpath-link) /grid/software/CTA/gamma/lib/libgamma.so: undefined reference to `ffgdes' /grid/software/CTA/gamma/lib/libgamma.so: undefined reference to `ffukyd' /grid/software/CTA/gamma/lib/libgamma.so: undefined reference to `ffgtcl' /grid/software/CTA/gamma/lib/libgamma.so: undefined reference to `ffgidm'
Recurrence
No recurrence.
History
#1 Updated by Knödlseder Jürgen over 9 years ago
- Subject changed from configure fails is cfitsio library is not found to configure fails if cfitsio library is not found
#2 Updated by Knödlseder Jürgen over 9 years ago
Adding the folder where cfitsio resides to the LD_LIBRARY_PATH solved the problem