lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
218 stars 291 forks source link

issue with classy #549

Open sajal1805 opened 9 months ago

sajal1805 commented 9 months ago

I am facing this issues while runnig please help

sajal1805@Sajal:~/class$ make if ! [ -e /home/sajal1805/class/build ]; then mkdir /home/sajal1805/class/build ; mkdir /home/sajal1805/class/build/lib; fi; touch build/.base cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/growTable.c -o growTable.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/dei_rkck.c -o dei_rkck.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/sparse.c -o sparse.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/evolver_rkck.c -o evolver_rkck.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/evolver_ndf15.c -o evolver_ndf15.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/arrays.c -o arrays.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/parser.c -o parser.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/quadrature.c -o quadrature.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/hyperspherical.c -o hyperspherical.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/common.c -o common.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../tools/trigonometric_integrals.c -o trigonometric_integrals.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/input.c -o input.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/background.c -o background.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/thermodynamics.c -o thermodynamics.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/perturbations.c -o perturbations.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/primordial.c -o primordial.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/fourier.c -o fourier.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/transfer.c -o transfer.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/harmonic.c -o harmonic.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/lensing.c -o lensing.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/distortions.c -o distortions.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/RecfastCLASS/wrap_recfast.c -o wrap_recfast.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/heating/injection.c -o injection.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/heating/noninjection.c -o noninjection.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/HyRec2020/hyrectools.c -o hyrectools.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/HyRec2020/helium.c -o helium.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/HyRec2020/hydrogen.c -o hydrogen.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/HyRec2020/history.c -o history.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/HyRec2020/wrap_hyrec.c -o wrap_hyrec.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../external/HyRec2020/energy_injection.c -o energy_injection.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../source/output.c -o output.o cd /home/sajal1805/class/build;gcc -O3 -fopenmp -g -fPIC -DCLASSDIR='"/home/sajal1805/class"' -DHYREC -I../include -I../external/RecfastCLASS -I../external/heating -I../external/HyRec2020 -c ../main/class.c -o class.o gcc -O3 -fopenmp -g -fPIC -o class build/growTable.o build/dei_rkck.o build/sparse.o build/evolver_rkck.o build/evolver_ndf15.o build/arrays.o build/parser.o build/quadrature.o build/hyperspherical.o build/common.o build/trigonometric_integrals.o build/input.o build/background.o build/thermodynamics.o build/perturbations.o build/primordial.o build/fourier.o build/transfer.o build/harmonic.o build/lensing.o build/distortions.o build/wrap_recfast.o build/injection.o build/noninjection.o build/hyrectools.o build/helium.o build/hydrogen.o build/history.o build/wrap_hyrec.o build/energy_injection.o build/output.o build/class.o -lm ar rv libclass.a build/growTable.o build/dei_rkck.o build/sparse.o build/evolver_rkck.o build/evolver_ndf15.o build/arrays.o build/parser.o build/quadrature.o build/hyperspherical.o build/common.o build/trigonometric_integrals.o build/input.o build/background.o build/thermodynamics.o build/perturbations.o build/primordial.o build/fourier.o build/transfer.o build/harmonic.o build/lensing.o build/distortions.o build/wrap_recfast.o build/injection.o build/noninjection.o build/hyrectools.o build/helium.o build/hydrogen.o build/history.o build/wrap_hyrec.o build/energy_injection.o ar: creating libclass.a a - build/growTable.o a - build/dei_rkck.o a - build/sparse.o a - build/evolver_rkck.o a - build/evolver_ndf15.o a - build/arrays.o a - build/parser.o a - build/quadrature.o a - build/hyperspherical.o a - build/common.o a - build/trigonometric_integrals.o a - build/input.o a - build/background.o a - build/thermodynamics.o a - build/perturbations.o a - build/primordial.o a - build/fourier.o a - build/transfer.o a - build/harmonic.o a - build/lensing.o a - build/distortions.o a - build/wrap_recfast.o a - build/injection.o a - build/noninjection.o a - build/hyrectools.o a - build/helium.o a - build/hydrogen.o a - build/history.o a - build/wrap_hyrec.o a - build/energy_injection.o cp python/setup.py python/autosetup.py cd python; export CC=gcc; python autosetup.py install || python autosetup.py install --user /bin/sh: 1: python: not found /bin/sh: 1: python: not found make: *** [Makefile:195: classy] Error 127

brinckmann commented 9 months ago

It appears it's not finding your python installation as "python". Sometimes this is because it's set up as "python3" instead of "python", if this is the case you cane change that in the Makefile by replacing "python" with "python3".

Best, Thejs