-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathINSTALL
84 lines (49 loc) · 2.64 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
MANUAL INSTALLATION
===================
Since version 2.04.00, the rl is reduced to a set of C++ header files. It can thus be installed very easily manually.
First, install the GSL (http://www.gnu.org/software/gsl/) on your system. You have to know the compiling and linking flags for it. Second, put all the src/*.h files in some directory, where they are available for C++ compiling. You will have to add this directory in the compiling flags.
You should now be able to compile the examples/example-*.cc examples and execute them.
CMAKE INSTALLATION
==================
We provide here the basic installation scheme, more detail can be foud in cmake documentation. You must have installed the gsl-library, with its header files, as well as standard tools for compiling (g++, cmake, ...) and doxygen.
UNIX INSTALLATION
-----------------
For a 32bit architecture, as root, go in this directory, and type
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make install
For a 64bit architecture, as root, go in this directory, and type
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64
make install
pkg-config is available for compiling your code
g++ -c example.cc `pkg-config --cflags rl`
g++ -o example.bin example.cc `pkg-config --libs rl`
MAC OS INSTALLATION
-------------------
Dependencies :
You can use MacPorts (https://www.macports.org/) or any other means to install the following dependencies :
- the GSL development files (http://www.gnu.org/software/gsl/)
- CMake (http://www.cmake.org/)
- (optional) Doxygen
With macports, just type :
sudo port install gsl-devel cmake doxygen
Try the following.
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install
If you have linking problems with gsl, you may fix them by modifying some lines in CMakeLists.txt
Edit this file, and in the section "Get required and optional
library", comment the block concerning pkg-config and uncomment the
one for gsl-config.
then run again
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install
WINDOWS INSTALLATION
--------------------
As rl is based on the GNU Scientific Library, you need to have the GNU environment available on your system. To do so, install mingw and msys from
http://www.mingw.org/
(the setup package installs both). Select all items when prompted.
In a "cmd", start "bash" in order to have the bash command interpreter running. You may have to fix PATH problems before.
Be sure that pkg-config, cmake and doxygen run properly, or install them from sources from the current bash. Install the GSL from sources as well, since windows packages may not fit all requirements.
Last, follow the instruction in the "UNIX INSTALLATION".