]> www.ginac.de Git - cln.git/blob - INSTALL.CMake
Remove some unused configuration macros.
[cln.git] / INSTALL.CMake
1 Prerequisites
2 =============
3
4 * C++11-compliant C++ compiler. GNU C++ compiler (version >= 5.1) is recommended.
5
6 * [Recommended] GNU multiprecision library (http://gmplib.org), version > 4.0.
7
8 * CMake, version 3.10 or newer.
9
10 * Ninja (https://ninja-build.org), version 1.8 or newer
11
12 * [Optional] To build CLN documentation texinfo and TeX are necessary.
13
14 * If you install CLN from git, you also need git (http://git-scm.com),
15   version >= 1.8.
16
17 Installation from a source .tar.bz2 distribution
18 ================================================
19
20 1) Unpack the archive
21
22    $ tar xaf cln-x.y.z-tar.bz2
23
24 2) Create a build directory
25
26    $ mkdir cln_build
27
28 3) Run CMake to generate build files
29
30    $ cd cln_build
31    $ cmake -GNinja ../cln-x.y.z
32
33 4) Actually build CLN
34
35    $ cmake --build .
36
37 5) Run the test suite (not mandatory, but strongly recommended)
38
39    $ cmake --build . --target check
40
41 6) Install CLN
42
43    [become root if necessary]
44    # cmake --build . -t install
45
46
47 Installation from git
48 =====================
49
50 The steps are essentially the same as compiling from the tarball, the only
51 difference is using git to get the code.
52
53 1) Download the code:
54
55    $ git clone git://ginac.de/cln.git cln
56
57    or, if you have already cloned the repository,
58
59    $ git pull
60
61 Subsequent steps are the same as compiling from a source distribution.
62