Skip to content

Navigation Menu

Sign up
blackrim edited this page Aug 20, 2012 · 46 revisions

Installation

First, install the dependencies (see below), then proceed.

treePL uses the standard GNU installion system. You can get the source if you have git installed on your system (an easy install for all platforms) by typing git clone git://github.com/blackrim/treePL.git. If you don't have git and don't want it you can go [here] (https://github.com/blackrim/treePL/downloads) and click on Download as tar or Download as tar.gz. Then unarchive and you should be off.

So you can grab the code either in the archive or with git clone and cd into the src directory and run ./configure then make then sudo make install

Dependencies

These should be relatively easy to install, but difficulty depends on the system. It has been successfully installed on a number of linux distributions and MacOSX 10.6 and 10.7.

NLopt

treePL uses [NLopt] (http://ab-initio.mit.edu/wiki/index.php/NLopt) in addition to some simulated annealing code. The code for this is included in the deps directory. To install this you can run ./configure and then make and sudo make install.

adolc

In order to work around some of the issues around gradients and barriers, in addition to analytic gradient calculations, treePL uses rad auto diff sources and adolc. Both are used because rad cannot be used with openmp (yet). If you don't have adolc, treePL will still install but it maybe be less efficient in cross validation. To install adolc you can use the directory provided with the distribution in the deps directory. After unpacking, if using gcc you can run autoreconf -fi. If you are on a Mac, you need to do export LIBS=-lgomp. Then for Linux and Mac, ./configure --with-openmp-flag=-fopenmp --prefix=/usr and then make and sudo make install. It is very important that adolc is compiled with the openmp flag because that is the reason for using it with treePL. It may be important to expand your LD_LIBRARY_PATH environmental variable if you get a shared library error after compilation. For my computer, I add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64 to the bottom of my ~/.bashrc file.

#Updates If you have cloned treePL, you can update the code with git pull. It should pull the most recent version and then you would just ./configure then make then sudo make install to install the updated treePL.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /