This is the file qcdnum-17-00-08/README: How to install QCDNUM +---------------------------------------------------------------------+ | | | If you use qcdnum, please refer to: | | | | M. Botje, Comput. Phys. Commun. 182(2011)490, arXiV:1005.1481 | | | +---------------------------------------------------------------------+ To install QCDNUM, first unpack the tarball. bash> gunzip qcdnum170008.tar.gz bash> tar -xvf qcdnum170008.tar This gives in your working directory: Directory /qcdnum-17-00-08 | +--README this file +--LICENSE GNU public license +-- .. whole bunch of Autotool files | +--/mbutil/inc include files | /src source code | /doc writeup | +--/qcdnum/inc include files | /pij splitting functions | /src source code | /usr user interface | /doc writeup (including zmstf and hqstf) | +---/zmstf/inc include files | /cij coefficient functions | /src source code | +---/hqstf/inc include files | /cij coefficient functions | /src source code | +--/testjobs example jobs | +--/dcards datacards for (some) example jobs | +--/weights weight files created by example jobs | +--/run run example jobs | +--/bin used by Autotools +--/lib used by Autotools +--/m4 used by Autotools Now you can install QCDNUM with Autotools. bash> cd qcdnum-17-00-08 bash> ./configure bash> make (or make -j8 on multiple processors) bash> make install (or sudo make install) This installs the library /usr/local/lib/libQCDNUM.a which contains all of mbutil, qcdnum, zmstf and hqstf. If access rights to /usr/local are restricted, you need to issue the sudo command in front of make install or install QCDNUM in another directory (see below). The qcdnum-config command gives some useful information, e.g.: bash> qcdnum-config --version (gives QCDNUM version) bash> qcdnum-config --prefix (gives installation directory) bash> qcdnum-config --ldflags (gives compiler flag to link to QCDNUM) See qcdnum-config --help for a list of all available options. If you want to install QCDNUM in a directory you must run configure with the --prefix option (specify absolute pathname). bash> ./configure --prefix= bash> make bash> make install The library libQCDNUM.a can now be found in /lib and qcdnum-config in /bin. Because other scripts may depend on qcdnum-config, please make sure that /bin is in your search path. bash> export PATH=$PATH:/bin Depending on your system, you may also have to set other paths: bash> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib bash> export LD_RUN_PATH=$LD_RUN_PATH:/lib To undo the installation do: bash> cd qcdnum-17-00-08 bash> make uninstall (or sudo make uninstall) bash> make distclean When you have installed QCDNUM you can run the testjobs from the run directory. For instance to run example.f do: bash> cd qcdnum-17-00-08/run bash> ./runtest example (without extension .f) For a complete list of testjobs see qcdnum-17-00-08/testjobs/README or consult the web page http://www.nikhef.nl/user/h24/qcdnum. You can also install libraries locally in qcdnum-17-00-08/lib in case you don't want to use Autotools, or if that fails. bash> cd qcdnum-17-00-08 bash> ./makelibs bash> cd run bash> ./runlocal example The makelibs and runlocal scripts are very simple so that it is easy to modify them, if necessary. If you want to get rid of the local libraries then do: bash> cd qcdnum-17-00-08 bash> ./makelibs --clean