/[GiNaC]/INSTALL
ViewVC logotype

Contents of /INSTALL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.51.2.2 - (hide annotations)
Fri Jul 8 10:03:48 2005 UTC (7 years, 10 months ago) by vollinga
Branch: ginac_1-3
CVS Tags: release_1-3-2
Changes since 1.51.2.1: +2 -2 lines
Synced to HEAD:
Fixed information about required autoconf/make versions.

1 kreckel 1.10 PREREQUISITES
2 kreckel 1.1 =============
3    
4 kreckel 1.49 GiNaC requires the CLN library by Bruno Haible installed on your system.
5     It is available from <ftp://ftpthep.physik.uni-mainz.de/pub/gnu/>.
6    
7 cbauer 1.51 You will also need a decent ANSI-compliant C++-compiler. We recommend the
8     C++ compiler from the GNU compiler collection, GCC >= 3.0. If you have a
9     different or older compiler you are on your own. Note that you may have to
10     use the same compiler you compiled CLN with because of differing
11     name-mangling schemes.
12    
13     Known to work with:
14 vollinga 1.51.2.1 - Linux on x86, Alpha and Sparc using GCC 3.x and 4.0.
15 cbauer 1.51
16     Known not to work with:
17     - GCC 2.96 or earlier because proper exception and standard library support
18     is missing there.
19 kreckel 1.6
20 vollinga 1.51.2.2 If you install from CVS, you also need GNU autoconf (>=2.59) and
21     automake (>=1.7) to be installed.
22 vollinga 1.51.2.1
23 cbauer 1.2
24 kreckel 1.10 INSTALLATION
25 cbauer 1.2 ============
26    
27 cbauer 1.51 To install from a source .tar.bz2 distribution:
28 kreckel 1.1
29 cbauer 1.2 $ ./configure
30     $ make
31 cbauer 1.51 [become root if necessary]
32 cbauer 1.26 # make install
33 kreckel 1.1
34 cbauer 1.51 To install from CVS:
35    
36     $ cvs -d :pserver:anoncvs@cvsthep.physik.uni-mainz.de:/home/cvs login
37     [enter "anoncvs" as the password]
38     $ cvs -d :pserver:anoncvs@cvsthep.physik.uni-mainz.de:/home/cvs co GiNaC
39     $ cd GiNaC
40 vollinga 1.51.2.1 $ autoreconf -i
41 cbauer 1.51 $ make
42     [become root if necessary]
43     # make install
44 kreckel 1.1
45 cbauer 1.50 To build the GiNaC tutorial and reference manual in HTML, DVI, PostScript,
46     or PDF formats, use one of
47    
48     $ make html
49     $ make dvi
50     $ make ps
51     $ make pdf
52    
53 cbauer 1.51 To compile and run GiNaC's test and benchmark suite and check whether the
54     library works correctly you can use
55    
56     $ make check
57    
58     The "configure" script (and "autogen.sh", which invokes "configure") can be
59     given a number of options to enable and disable various features. For a
60     complete list, type:
61 cbauer 1.2
62     $ ./configure --help
63    
64     A few of the more important ones:
65    
66     --prefix=PREFIX install architecture-independent files in PREFIX
67     [defaults to /usr/local]
68     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
69     [defaults to the value given to --prefix]
70     --disable-shared suppress the creation of a shared version of libginac
71 cbauer 1.50 --disable-static suppress the creation of a static version of libginac
72 cbauer 1.2
73 kreckel 1.1 More detailed installation instructions can be found in the documentation,
74     in the doc/ directory.
75 kreckel 1.3
76 cbauer 1.51 The time the "make" step takes depends heavily on optimization levels. Large
77     amounts of memory (>128MB) will be required by the compiler, also depending
78     on optimization. To give you a rough idea of what you have to expect the
79     following table may be helpful. It was measured on an Athlon/800MHz with
80     "enough" memory:
81 kreckel 1.3
82 kreckel 1.47 step | GCC optimization | comment
83     | -O1 | -O2 |
84     --------------+---------+---------+----------------------------------------
85     make | ~6m | ~8m | shared and static library
86     make check | ~8m | ~12m | largely due to compilation
87 kreckel 1.1
88    
89 kreckel 1.10 COMMON PROBLEMS
90     ===============
91    
92 cbauer 1.2 Problems with CLN
93 kreckel 1.10 -----------------
94 kreckel 1.1
95 cbauer 1.51 You should use at least CLN-1.1, since during the development of GiNaC
96     various bugs have been discovered and fixed in earlier versions. Please
97     install CLN properly on your system before continuing with GiNaC.
98 kreckel 1.10
99 cbauer 1.51 Problems building ginsh
100     -----------------------
101 kreckel 1.10
102     The most common reason why this doesn't succeed is the absence of
103 cbauer 1.51 libreadline and/or the corresponding header files. Depending on what your
104     system/distribution is, you will have to install a package called
105     libreadline and maybe libreadline-dev. If your system's vendor doesn't
106     supply such packages, go to <ftp://ftp.gnu.org/gnu/readline/> and compile
107     it yourself.
108 kreckel 1.6
109 kreckel 1.45 Problems with missing standard header files
110     -------------------------------------------
111 kreckel 1.44
112 cbauer 1.51 Building GiNaC requires many standard header files. If you get a configure
113     error complaining about such missing files your compiler and library are
114     probably not up to date enough and it's no worth continuing.

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15