GALPROP
https://galprop.stanford.edu/forum/

installing GALPROP code error
https://galprop.stanford.edu/forum/viewtopic.php?f=6&t=227
Page 1 of 1

Author:  Alzetoun1 [ Wed Mar 02, 2016 6:40 am ]
Post subject:  installing GALPROP code error

Hi Galprop users,
I have installed (Cfitsio,CCFITS, gls, Healpix, clhep).
I run:

./configure --with-cfitsio=/home/aalzetoun/GALPROP/cfitsio --with-ccfits=/home/aalzetoun/GALPROP/CCfits --with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/is/installed/include,lib,bin/src/cxx/generic_gcc --with-gsl=/home/aalzetoun/GALPROP/gsl-1.16 --with-clhep=home/aalzetoun/GALPROP/2.1.3.1/CLHEP --prefix=/home/aalzetoun/GALPROP/galprop-54.1.984 --with-galdef=/home/aalzetoun/GALPROP/galprop-54.1.984/source/Galdefiles --with-fitsdata=/home/aalzetoun/GALPROP/galprop-54.1.984/source/Fitfiles--datadir=/home/aalzetoun/GALPROP/galprop-54.1.984/source/datfiles CXX=gcc F77=gfortran CXXFLAGS="-fopenmp" FFLAGS="-fopenmp"

when I run: make, I got this error message:

HealpixBaseExtended.h:10:26: fatal error: healpix_base.h: No such file or directory
#include "healpix_base.h"
^
compilation terminated.
make[2]: *** [D_pp.o] Error 1
make[2]: Leaving directory `/home/aalzetoun/GALPROP/galprop-54.1.984/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aalzetoun/GALPROP/galprop-54.1.984'
make: *** [all] Error 2

I have read and tried many suggestions by using different version of Healpix . but I am still getting the same error.
I am trying since last week to install the GALPROP code.
any help please.
Thanks in advance.

Author:  gudlaugu [ Wed Mar 02, 2016 7:11 am ]
Post subject:  Re: installing GALPROP code error

Alzetoun1 wrote:
--with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/is/installed/include,lib,bin/src/cxx/generic_gcc


This is a very strange path. The configure script accepts those paths without checking their validity. I guess this should be
--with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc

Author:  Alzetoun1 [ Wed Mar 02, 2016 7:34 am ]
Post subject:  Re: installing GALPROP code error

I have already tried your suggestion before!.
But I am still getting this error!?

Author:  gudlaugu [ Wed Mar 02, 2016 10:15 am ]
Post subject:  Re: installing GALPROP code error

You are also setting CXX=gcc. You should have CXX=g++. You should also have --enable-openmp rather than specifying the CXXFLAGX and F77FLAGS. None of that is, however, the origin of the error.

Could you examine the output log and check which healpix path is included in the compiler command. This may give us a clue to the origin of the error. If everything was done correctly you should have
-I/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc/include
in the command somewhere. Also make sure the file healpix_base.h is in that folder.

Access to your config.log and build output would help debug this.

Author:  Alzetoun1 [ Mon Mar 07, 2016 8:57 am ]
Post subject:  Re: installing GALPROP code error

the file : healpix_base.h in this folder: Healpix_cxx. I added this to ./configure like this :
--with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/Healpix_cxx
also I added this
--with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc.
finally all together:

./configure --with-cfitsio=/home/aalzetoun/GALPROP/cfitsio --with-ccfits=/home/aalzetoun/GALPROP/CCfits --with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc --with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/Healpix_cxx --with-gsl=/home/aalzetoun/GALPROP/gsl-1.16 --with-clhep=home/aalzetoun/GALPROP/2.1.3.1/CLHEP --prefix=/home/aalzetoun/GALPROP/galprop-54.1.984--with-galdef=/home/aalzetoun/GALPROP/galprop-54.1.984/source/Galdefiles --with-fitsdata=/home/aalzetoun/GALPROP/galprop-54.1.984/source/Fitfiles--datadir=/home/aalzetoun/GALPROP/galprop-54.1.984/source/datfiles CXX=g++ F77=gfortran --enable-openmp

the error still the same,any help
thanks in advance.

Author:  gudlaugu [ Mon Mar 07, 2016 9:54 am ]
Post subject:  Re: installing GALPROP code error

You should not have the
--with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/Healpix_cxx
part on the configure line, only
--with-healpix=/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc

Also make sure the directory
/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc/include
contains the healpix_base.h file. Finally, make sure that the compiler command written in the output from the make command contains
-I/home/aalzetoun/GALPROP/Healpix_2.20/src/cxx/generic_gcc/include

If all of this is true, then I have no idea what is going on. If one or the other is not true we can work from that.

Author:  Alzetoun1 [ Tue Mar 08, 2016 1:09 am ]
Post subject:  Re: installing GALPROP code error

the generic_gcc/: contain only bin and lib, it dose not contains the healpix_base.h file.
the healpix_base.h file is in the Healpix_cxx.

I tried also Healpix_2.20a: in cxx it has not at all generic_gcc. The healpix_base.h file in Healpix_cxx

Author:  gudlaugu [ Tue Mar 08, 2016 2:34 am ]
Post subject:  Re: installing GALPROP code error

Then there is something wrong with the Healpix installation. The generic_gcc folder should contain an include folder with all the relevant .h files. Try building Healpix again.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/