- If you do not have a fortran compiler installed, install homebrew from https://brew.sh/
Then in a terminal install with homebrew the required components:
brew install gcc gfortran make cmake
If you did not do it yet, add homebrew binary directory in the shell variable PATH by adding IN THIS ORDER in .bashrc:
export PATH=/opt/homebrew/bin:/opt/homebrew/opt/make/libexec/gnubin:$PATH(adapt it if needed).
The order force to override the default binaries by the homebrew binaries and thus take gcc from homebrew and not the Mac OS preinstalled one.
- If you do not have python installed (the native python with Mac OS is generally outdated), install with
brew install python
Installation of the main code and python package dependencies can be found at the end of the document, being OS independent.
- If you do not have a virtual machine, install it from the app Microsoft store with the Window Subsystem for Linux.
- Go to the store
- Find Ubuntu, choose the distribution you like and install it (if you have some troubles for this part, have a look to specific helps here as example)
- Open a linux emulator terminal
- Follow the linux installation instruction here below
- If you do not have a fortran compiler installed, install it with
sudo apt install gfortran make cmake
(orsudo apt-get install gfortran make cmake)
This installation assumes that you have bash as shell.
- In the terminal, install the requested python packages, if not already installed, with
pip install numpy scipy matplotlib ipython jupyter pandas getdist anesthetic - Choose a directory and go on it
- Expand the zip file here or clone the program with git with
git clone https://github.com/martinit18/nested_fit - create the directory
bin(mkdir bin) in your home (normally the place where you are when you open a new terminal) - obsolete, see main README file for this part
go to the decompressed directory and create the directorybuild:
cd nested_fit-xxx(wherexxxis the present version number)
mkdir build
cd build - Go to the directory build and run
cmake ..
and then
make - In the file
.bashrcin your home put the line
export PATH=$HOME/bin:$PATH
Now if everything works, you can run nested_fit from terminal anywere you are.
- Go to the distribution directory
examples/data_analysis/gauss_bg - Run
nested_fitxxx(wherexxxis the present version number) - If everything works, the program will run and produce a series of
nf_output_*files includingnf_output_res.dat
More details on the program itself can be found in the README file.