Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find fitsio.h #5

Open
aayush3009 opened this issue Aug 4, 2014 · 8 comments
Open

Cannot find fitsio.h #5

aayush3009 opened this issue Aug 4, 2014 · 8 comments

Comments

@aayush3009
Copy link

I get an error when i run ./configure. The error is-
configure: error: Cannot find fitsio.h. See ./configure --help to know how to set a proper cfitsio include directory

This is after I run the required command to include cfitsio libraries with configure. The command that I run looks something like-
./configure --with-cfitsio-include=/directory_containing_CRPropa/External/cfitsio/include

I don't know what I'm doing wrong. Any suggestions? Thanks

@avvliet
Copy link
Member

avvliet commented Aug 6, 2014

Can I ask you how or where you installed cfitsio? One way to install it is by running:

./get_external.sh

in the folder "../CRPropa2-2.0.4/" (see also point 1 in the README file). If you did it this way, and this worked correctly, you do not have to include the "--with-cfitsio-include=/directory_containing_CRPropa/External/cfitsio/include" part in the configure command and just running

./configure

would already be enough. If you installed cfitsio somewhere else by yourself you should not only add "--with-cfitsio-include=$YourCFITISO/include" but also "--with-cfitsio-library=$YourCFITISO/lib" to your configure command, so that it should look something like:

./configure --with-cfitsio-include=$YourCFITISO/include --with-cfitsio-library=$YourCFITISO/lib

I hope this helps!

@aayush3009
Copy link
Author

Thanks for your reply! I did install cfitsio by using ./get_externals.sh.

When i first ran ./configure, i got the same error. I then tried to explicitly include the cfitsio include as well as the lib folders, but it did not change anything.

I can see the header file fitsio.h in the correct directory, but ./configure just wouldn't find it!

@rafaelab
Copy link
Member

rafaelab commented Aug 7, 2014

Hi!
Could you provide us the configuration log (config.log)?

@aayush3009
Copy link
Author

Hi,
Instead of posting the entire contents of the file here, I figured it would be better to use Pastebin. Here's what the config.log file looks like:

http://pastebin.com/gcZyf5iV

Thanks!

@rafaelab
Copy link
Member

rafaelab commented Aug 8, 2014

Hello!

Could you compile cfitsio separately with the standard ./configure --prefix=... && make && make install. Once it is installed, try again compiling CRPropa, this time adding --with-cfitsio-library=...:
./configure --with-cfitsio-include=~/Desktop/MSc_Project/CRPropa2-master/cfitsio/include/ --with-cfitsio-library=~/Desktop/MSc_Project/CRPropa2-master/cfitsio/lib/
Please check if libcfitsio(.so,.a,.dylib) is in this folder.

@aayush3009
Copy link
Author

Hi!
I compiled cfistio separately and then included the paths in the ./configure command, but the problem persists. I then completely removed CRPropa2-master and downloaded the CRPropa2-2.0.4 tarball instead, but the problem refuses to go away... I am running out of ideas!

The include and lib folders inside cfitsio contain the fitsio.h and libcfitsio.a files. I can see them, wonder why the configure command cant!

@rafaelab
Copy link
Member

Hi!

I could not reproduce the problem. ./configure always takes the provided cfitsio locations for an external installation. For the standard installation with get_externals.sh, it works as well.
I would suggest starting again from the beginning, with the tarball, ./GetPDCrossSections.sh and ./get_externals.sh, ./configure && make && make install, but you've done it already, right? If so, could you please send the config.log file (again).

@cyanb007
Copy link

I have tried all the above possible solutions but I still find this:

configure: error: CFITSIO path not provided. See ./configure --help to see how to set a path properly.

I can see the lib and include subfolders inside my cfitsio folder. Please tell me how can I do it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants