Wiki
Clone wikicosmosis / Ubuntu Install
Installing under Ubutu 18.04 and 20.04
These instructions have worked for us before under ubuntu 18.04 and 20.04:
# install dependencies with apt - you may need to use "sudo" for these apt-get update # Annoyingly this command will stop in the middle to ask what time zone you are in apt-get install gcc g++ gfortran wget make python3-dev pkg-config curl libcfitsio-dev libfftw3-dev git libgsl-dev python3-pip libpng16-16 libxft2 libpangoft2-1.0-0 libfreetype6-dev libhdf5-dev libopenblas-dev libbz2-dev python3-mpi4py # get the cosmosis repos git clone -b develop https://bitbucket.org/joezuntz/cosmosis cd cosmosis git clone -b develop https://bitbucket.org/joezuntz/cosmosis-standard-library # install python dependencies - again, might need sudo but I am not sure pip install -r config/requirements.txt # not required but switches on OpenMP which makes lots of things faster export COSMOSIS_OMP=1 # you have to do this command whenever you start a new terminal and want to run cosmosis source config/setup-cosmosis-ubuntu # This is only necessary if your python command is not already aliased to python3 update-alternatives --install /usr/bin/python python /usr/bin/python3 10 # build - takes a few minutes make # test - runs multinest mpirun -n 2 cosmosis --mpi demos/demo9.ini # test - run DES Y1 likelihood cosmosis examples/des-y1/params.ini
Updated