alex-mcdaniel / RX-DMFIT

A tool used for calculating the expected secondary emission from DM annihilation and placing constraints on dark matter properties, incorporating important astrophysics including the diffusion of charged particles, relevant radiative energy losses, and magnetic field modelling.
12 stars 5 forks source link

fatal error: gsl/gsl_integration.h: No such file or directory #7

Open pooja1984 opened 1 year ago

pooja1984 commented 1 year ago

Hi Alex,

I am facing some issue in running the RX-DMFit CODE from my laptop with ubuntu 20.04. I installed darksusy 6.3.1. That was successful. Then I installed gsl2.7.1/. That was successful too. The location of the gsl folder is /usr/local/include/gsl. I also add the necessary modifications to run RX-DMFit to with darksusy-6.3.1. But whenever I am trying to run the example file, such as make example1, I am getting this error related to the gsl. I was using RXDMFit code for long, but did not face this issue for ubuntu 16.04. The error message is as follows: "(base) bhattachar@lappc-p979:~/Desktop/RX-DMFIT-master$ make example1 /home/bhattachar/anaconda3/bin/x86_64-conda-linux-gnu-c++ -o example1 Constants.cpp Target.cpp bfield.cpp DM_profile.cpp greens.cpp diffusion.cpp dist.cpp psyn.cpp pIC.cpp emissivity.cpp surface_brightness_profile.cpp flux.cpp calc_sv.cpp run.cpp example1.cpp \ -I/home/bhattachar/darksusy-6.3.1/include -L/home/bhattachar/darksusy-6.3.1/lib \ -I/home/bhattachar/gsl-2.7.1/include -L/home/bhattachar/gsl-2.7.1/lib \ -lgsl -lgslcblas -lcfitsio -lds_generic_decayingDM -lds_mssm_user -lFH -lHS -lds_core -lds_generic_decayingDM_user -lds_silveira_zee -lgif -lisajet -lds_core_user -lds_generic_wimp -lds_silveira_zee_user -lHB -lisospin -lds_empty -lds_generic_wimp_user -lds_vdSIDM -lhealpix -lsharp_healpix_f -lds_empty_user -lds_mssm -lds_vdSIDM_user -lhpxgif -lgfortran In file included from Target.cpp:4: Target.h:8:10: fatal error: gsl/gsl_integration.h: No such file or directory 8 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. bfield.cpp:4:10: fatal error: gsl/gsl_integration.h: No such file or directory 4 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. In file included from DM_profile.cpp:6: Target.h:8:10: fatal error: gsl/gsl_integration.h: No such file or directory 8 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. greens.cpp:3:10: fatal error: gsl/gsl_integration.h: No such file or directory 3 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. diffusion.cpp:4:10: fatal error: gsl/gsl_integration.h: No such file or directory 4 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. dist.cpp:3:10: fatal error: gsl/gsl_integration.h: No such file or directory 3 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. psyn.cpp:4:10: fatal error: gsl/gsl_integration.h: No such file or directory 4 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. pIC.cpp:5:10: fatal error: gsl/gsl_integration.h: No such file or directory 5 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. emissivity.cpp:3:10: fatal error: gsl/gsl_integration.h: No such file or directory 3 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. surface_brightness_profile.cpp:7:10: fatal error: gsl/gsl_integration.h: No such file or directory 7 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. flux.cpp:5:10: fatal error: gsl/gsl_integration.h: No such file or directory 5 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. In file included from Run.h:7, from calc_sv.cpp:3: Target.h:8:10: fatal error: gsl/gsl_integration.h: No such file or directory 8 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. In file included from Run.h:7, from run.cpp:7: Target.h:8:10: fatal error: gsl/gsl_integration.h: No such file or directory 8 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. In file included from Run.h:7, from example1.cpp:9: Target.h:8:10: fatal error: gsl/gsl_integration.h: No such file or directory 8 | #include <gsl/gsl_integration.h> | ^~~~~~~ compilation terminated. make: *** [makefile:30: example1] Error 1 I also added the path of the lib folder to .bashrc as "LD_LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH" but that did not solve the error.

Can you please suggest how to resolve it?