File: INSTALL.CMake

package info (click to toggle)
ginac 1.8.10-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 8,000 kB
  • sloc: cpp: 52,440; sh: 5,402; makefile: 455; python: 193
file content (64 lines) | stat: -rw-r--r-- 1,577 bytes parent folder | download
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
PREREQUISITES
=============

1. A decent ISO C++-14 compiler. GCC 5 or later is recommended.
2. CLN library (https://www.ginac.de/CLN), version >= 1.2.2
3. CMake, version >= 2.8 (version 2.6.x might work too).
4. Python 3
5. (optional) pkg-config utility (http://pkg-config.freedesktop.org)
6. (optional) bison (>= 2.3), flex (2.5.33), GNU readline (>= 4.3). These
   are necessary to build ginsh, the GiNaC interactive shell, and can be
   skipped if you don't intend to use ginsh (i.e. you need the GiNaC library
   for compiling another piece of a software).
7. (optional) To build the GiNaC tutorial and reference manual the doxygen
   utility (it can be downloaded from https://www.doxygen.nl/) and TeX are
   necessary.

INSTALLATION
============

To install from a source distribution:
--------------------------------------

1) Unpack the tarball

 $ tar xaf ginac-x.y.z.tar.bz2

2) Create a build directory

 $ mkdir ginac_build

3) Run CMake to generate Makefile's

 $ cd ginac_build
 $ cmake ../ginac-x.y.z

4) Actually build GiNaC

 $ make

5) Run the test and benchmark suite (not mandatory, but strongly recommended)

 $ make check

6) Install GiNaC

 [become root if necessary]
 # make install

To install from git: 
--------------------

The steps are essentially the same as compiling from the tarball, the only
difference is using git to get the code.

1) Download the code:

  $ git clone git://www.ginac.de/ginac.git ginac
  
  or, if you have already cloned the repository,

  $ git pull

Subsequent steps are the same as compiling from a source tarball.