joezuntz/cosmosis

Installation error on nersc - missing gsl?

annmapo opened this issue · 2 comments

I also tried to install on nersc, using the latest version of the conda env:
conda create -p ./env --clone $CFS/des/zuntz/cosmosis-global/env-latest

I got this error when trying to make cosmosis-standard-library:

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /global/cscratch1/sd/porredon/cosmosisv2/env/include -fPIC -O2 -isystem /global/cscratch1/sd/porredon/cosmosisv2/env/include -fPIC -Isrc -I/global/common/software/spackecp/cori/e4s-22.02/software/cray-cnl7-haswell/gcc-11.2.0/gsl-2.7-dnj35q4arliuhq6wm7lucflfn3hqknaf/include -I../src/ -I/global/cscratch1/sd/porredon/cosmosisv2/env/include/python3.9 -c src/euclidemu2.cpp -o build/temp.linux-x86_64-cpython-39/src/euclidemu2.o -std=c++11 "-D PRINT_FLAG=0" "-D PATH_TO_EE2_DATA_FILE=\"/global/cscratch1/sd/porredon/cosmosisv2/cosmosis-standard-library/structure/EuclidEmulator2/ee2_bindata.dat\""
g++ -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/global/cscratch1/sd/porredon/cosmosisv2/env/lib -Wl,-rpath-link,/global/cscratch1/sd/porredon/cosmosisv2/env/lib -L/global/cscratch1/sd/porredon/cosmosisv2/env/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/global/cscratch1/sd/porredon/cosmosisv2/env/lib -Wl,-rpath-link,/global/cscratch1/sd/porredon/cosmosisv2/env/lib -L/global/cscratch1/sd/porredon/cosmosisv2/env/lib build/temp.linux-x86_64-cpython-39/src/cosmo.o build/temp.linux-x86_64-cpython-39/src/emulator.o build/temp.linux-x86_64-cpython-39/src/euclidemu2.o -lgsl -lgslcblas -o build/lib.linux-x86_64-cpython-39/euclidemu2.cpython-39-x86_64-linux-gnu.so "-L /global/common/software/spackecp/cori/e4s-22.02/software/cray-cnl7-haswell/gcc-11.2.0/gsl-2.7-dnj35q4arliuhq6wm7lucflfn3hqknaf/lib -lgslcblas -lgsl"
/usr/bin/ld: cannot find -lgsl
/usr/bin/ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status

But I managed to solve it by doing conda install -c conda-forge gsl

am610 commented

This did not solve my case.
/usr/bin/ld: cannot find -lsci_gnu

is what came next

This is now done automatically in v3