Chapters:
|
MuSR /
Musrfit< PyMinuit, how to install and use it | Index | Notes on musrfit usage > Installing on
# git already installed apt-get install cmake libboost-dev libboost-filesystem-dev libboost-system-dev libgsl-dev libxpm-dev libxext-dev libfftw3-dev libxml2-dev qt6-base-dev libxft-dev qt6-svg-dev libhdf4-dev libhdf5-dev # better make nexus cd ~/git # create a directory for the NeXus source code mkdir nexus cd nexus # get the source code from the master repository git clone https://github.com/nexusformat/code.git # next we will build NeXus out-of-source mkdir build cd build # additional packages needed & not mentioned in instructions # make root from source git clone http://github.com/root-project/root.git # git pull to update mkdir build cd build cmake ../ -Dgminimal=1 -Dasimage=1 -Dmathmore=1 -Dxml=1 # actually done only cmake -Dmathmore=ON -DCMAKE_INSTALL_PREFIX=/usr/local .. cmake --build . --target install --j16 sudo make install cd ../../musrfit mkdir build sudo apt-get install pkg-config # need root from source (/snap misses MathMore) # cmake command cmake ../-Dnexus=1 -Dmathmore=ON # according to instructions it should be sudo cmake --install ./ cmake ../ -Dnexus=1 make sudo make install export ROOTSYS=/usr/local export MUSRFITPATH=/usr/local/bin/
cd ~/git From 14.04 check dependencies in https://root.cern.ch/build-prerequisites#ubuntu by running get the root source: as root in /usr/local (presently in /usr/local/gitroot)
apt-get install libboost-dev gsl-bin libgsl0-dev fftw3 fftw3-dev libxml2 libxml2-dev libqt3-mt libqt3-mt-dev qt4-dev-tools download latest root tarball and install in /usr/local/root Present installation is non standard, done from a sudo -i command line (as root) Should have been done with sudo ./configure --enable-minuit2 --enable-mathmore --enable-xml --prefix=/usr/local sudo make sudo make install If I try that now it tells me ROOTSYS not set, set it to a destination directory make: *** [install] Error 1 even if echo $ROOTSYS (as well as sudo echo $ROOTSYS replies /usr/local/root Should be OK though, since invoking root from a user terminal works (and new TBrowser(); too, .q to quit) now download [[http://savannah.psi.ch/viewcvs/trunk/analysis/musrfit.tar.gz?root=nemu%2Flem&view=tar| musrfit.tar.gz] and unpack it sudo sh autogen.sh sudo ./configure --enable-BMWlibs --with-rootsys=/usr/local/root I did not try nexus, which is installed by synaptic, because it complains that it does not find hdf4 and I do not wish to loose time on that now. (Nexus is alien converted) sudo make sudo make install < PyMinuit, how to install and use it | Index | Notes on musrfit usage > |