From 5a3edcfceecdfa594bd8c5286455bdfa7fe852fb Mon Sep 17 00:00:00 2001 From: tlatorre Date: Fri, 16 Nov 2018 09:54:30 -0600 Subject: update README with instructions for installing gsl and nlopt --- README | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README b/README index 53680fd..8eda084 100644 --- a/README +++ b/README @@ -6,6 +6,9 @@ install these with the following command: $ yum install gsl gsl-devel NLopt NLopt-devel +You can also install these packages yourself. For instructions, see below +(Installing GSL and Installing NLopt). + Then, to build everything you just type: $ make @@ -15,6 +18,43 @@ with: $ yum install plotutils +Installing GSL +============== + +To install GSL in your home directory, you can run the following commands: + + $ curl -O -L ftp://ftp.gnu.org/gnu/gsl/gsl-2.5.tar.gz + $ tar -xzvf gsl-2.5.tar.gz + $ cd gsl-2.5 + $ mkdir $HOME/local + $ ./configure --prefix=$HOME/local + $ make + $ make install + +Installing NLopt +================ + + $ curl -O -L https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz + $ tar -xzvf v2.5.0.tar.gz + $ cd nlopt-2.5.0 + $ mkdir build + $ cd build + $ cmake -DCMAKE_INSTALL_PREFIX=$HOME/local .. + $ make + $ make install + +To use gsl and nlopt installed locally, you will have to edit the Makefile and +add the following to the CFLAGS and LDLIBS variables: + + CFLAGS=-I$(HOME)/local/include + LDLIBS=-L$(HOME)/local/lib -L$(HOME)/local/lib64 + +and also edit the -lnopt_cxx line to just be -lnlopt. + +You will also need to edit ~/.bash_profile and add the following line: + + export LD_LIBRARY_PATH=$HOME/local/lib:$HOME/local/lib64 + Fitting Events ============== -- cgit