It is currently Tue Dec 07, 2021 6:06 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Mar 02, 2016 6:40 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
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.


Top
 Profile  
 
PostPosted: Wed Mar 02, 2016 7:11 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
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

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
PostPosted: Wed Mar 02, 2016 7:34 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
I have already tried your suggestion before!.
But I am still getting this error!?


Top
 Profile  
 
PostPosted: Wed Mar 02, 2016 10:15 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
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.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
PostPosted: Mon Mar 07, 2016 8:57 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
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.


Top
 Profile  
 
PostPosted: Mon Mar 07, 2016 9:54 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
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.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
PostPosted: Tue Mar 08, 2016 1:09 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
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


Top
 Profile  
 
PostPosted: Tue Mar 08, 2016 2:34 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
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.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group