aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-11-16 09:54:30 -0600
committertlatorre <tlatorre@uchicago.edu>2018-11-16 09:54:30 -0600
commit5a3edcfceecdfa594bd8c5286455bdfa7fe852fb (patch)
tree1936525f038f4514fbb69f09a3ed5a9f0a4c5eb8
parent75eb3165858fbce7600360d058fa630631e326b7 (diff)
downloadsddm-5a3edcfceecdfa594bd8c5286455bdfa7fe852fb.tar.gz
sddm-5a3edcfceecdfa594bd8c5286455bdfa7fe852fb.tar.bz2
sddm-5a3edcfceecdfa594bd8c5286455bdfa7fe852fb.zip
update README with instructions for installing gsl and nlopt
-rw-r--r--README40
1 files changed, 40 insertions, 0 deletions
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
==============