File: platform.doc

package info (click to toggle)
singular 1%3A4.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,520 kB
  • sloc: cpp: 319,164; ansic: 42,206; perl: 5,855; sh: 5,524; lisp: 4,241; python: 2,101; makefile: 1,890; yacc: 1,651; pascal: 1,411; lex: 1,367; tcl: 1,024; xml: 182
file content (264 lines) | stat: -rw-r--r-- 8,677 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
@comment -*-texinfo-*-
@comment this file contains Release notes and various howto's

@c The following directives are necessary for proper compilation
@c with emacs (C-c C-e C-r).  Please keep it as it is.  Since it
@c is wrapped in `@ignore' and `@end ignore' it does not harm `tex' or
@c `makeinfo' but is a great help in editing this file (emacs
@c ignores the `@ignore').
@ignore
%**start
\input texinfo.tex
@setfilename platform.info
@node Installation and Platform Specifics
@menu
* Installation and Platform Specifics::
@end menu
@node Installation and Platform Specifics, Index, SINGULAR libraries, Top
@chapter Installation and Platform Specifics
%**end
@end ignore

@menu
* News and changes::
* Parallel computing::
* Singular 3 and Singular 4::
* libSingular::
* Download instructions::
* Used environment variables::
* Unix installation instructions::
* Windows installation instructions::
* Macintosh installation instructions::
@end menu

@c ----------------------------------------------------------
@node News and changes
@section News and changes
@cindex news
@cindex changes

@include NEWS.texi

@c ----------------------------------------------------------
@node Parallel computing
@section Parallel computing
@cindex Parallel computing
@cindex parallelization

@include parallel.texi

@c ----------------------------------------------------------
@node Singular 3 and Singular 4
@section Singular 3 and Singular 4
@cindex Singular 3 and Singular 4

@include changes_in_singular4.texi

@c ----------------------------------------------
@node libSingular
@section libSingular
@cindex libSingular
@cindex GMP
@cindex signal handler

@code{libSingular} is the C++-library version of @sc{Singular}.@*
@code{Singular/libsingular.h} is the main include file,
@code{-lSingular} the link parameter,@*
@code{lib/pkgconfig/Singular.pc} provides all parameters in the pkconfig format.

It contains all parts of @sc{Singular} with the following exceptions:
@enumerate
@item
memory allocation functions for GMP
(see @code{mmInit} in @code{Singular/tesths.cc})
@item
signal handlers
(see @code{init_signals} in @code{Singular/cntrlc.cc}).@*
At least a handler for @code{SIGCHLD} must be installed
for the commands @ref{waitfirst}, @ref{waitall} and the routines from @ref{parallel_lib}, @ref{modstd_lib}, @ref{normal_lib}, @ref{tasks_lib}.@*
If the child was started by @code{libSingular} the handler
has to call @code{sig_chld_hdl} from @code{Singular/links/ssiLink.cc}
or implement something similar (call @code{slClose(l)} for ssi links).
@item
error handlers for factory, NTL
(see @code{init_signals} in @code{Singular/cntrlc.cc}).@*
@end enumerate
@c ----------------------------------------------------------
@node Download instructions
@section Download instructions
@cindex downloading
@cindex instructions, downloading
@cindex howto, download

@sc{Singular} is available as source and binary program for most common hard-
and software platforms.
Instructions to download and install @sc{Singular} can be found
at
@display
@uref{https://www.singular.uni-kl.de/index.php/singular-download.html}.
@end display

Sources od release versions of @sc{Singular} are also available
from our FTP site
@display
@uref{ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/src/}.
@end display
or
@display
@uref{https://wwww.singular.uni-kl.de/ftp/pub/Math/Singular/src/}.
@end display

@c @include README_download.texi

@c ----------------------------------------------------------
@node Used environment variables
@section Used environment variables
@cindex environment variables
@cindex used environment variables
@cindex path
@cindex paths

@sc{Singular} needs to find some files (dynamic modules, libraries, help files).
Usually they are found relative to the location of the (main) executable
(after following symlinks).
This can be changed by setting the following environment variables.

@itemize
@item SINGULAR_EXECUTABLE (should usually not be set)
@*the complete filename of the main executable, usually derived from
the command line (inspecting also PATH, following symlinks).
@*If SINGULAR_EXECUTABLE cannot be found, $prefix/bin/Singular is assumed.
@*For @code{libSingular}: SINGULAR_EXECUTABLE is set to the argument of @code{siInit} (it must exist).
@item SINGULAR_BIN_DIR
@*the directory of the main executable, usually derived from
$SINGULAR_EXECUTABLE
@item SINGULAR_ROOT_DIR
@*the root of the singular tree, default: $SINGULAR_BIN_DIR/..
@item SINGULAR_DATA_DIR
@*the root of the singular data files, default: $SINGULAR_BIN_DIR/../share
@item SINGULARPATH
@*the directories for libraries and optional dynamic modules (separated by @code{;}), default:
  @itemize
  @item $SINGULAR_DATA_DIR/singular/LIB
  @item $SINGULAR_ROOT_DIR/share/singular/LIB
  @item $SINGULAR_BIN_DIR/../share/singular/LIB
  @item $SINGULAR_DATA_DIR/factory
  @item $SINGULAR_ROOT_DIR/share/factory
  @item $SINGULAR_BIN_DIR/LIB
  @item $SINGULAR_BIN_DIR/../factory
  @item $SINGULAR_BIN_DIR/MOD
  @item $SINGULAR_ROOT_DIR/lib/singular/MOD
  @item $SINGULAR_ROOT_DIR/libexec/singular/MOD
  @item $prefix/lib/singular/MOD
  @item $prefix/libexec/singular/MOD
  @item $SINGULAR_BIN_DIR
  @end itemize
@item SINGULAR_PROCS_DIR
@*the directories for dynamic modules (separated by @code{;}), default:
  @itemize
  @item $SINGULAR_BIN_DIR/MOD
  @item $SINGULAR_ROOT_DIR/lib/singular/MOD
  @item $SINGULAR_ROOT_DIR/libexec/singular/MOD
  @item $prefix/lib/singular/MOD
  @item $prefix/libexec/singular/MOD
  @end itemize
@item SINGULAR_INFO_FILE
@*@code{singular.info}, default: $SINGULAR_DATA_DIR/info/singular.info
@item SINGULAR_IDX_FILE
@*the help index, default: $SINGULAR_DATA_DIR/singular/singular.idx
@item SINGULAR_HTML_DIR
@*the directory of the manual as html files,
default: $SINGULAR_DATA_DIR/singular/html
@item SINGULAR_URL
@*the URL of the manual, default: https://www.singular.uni-kl.de/Manual/
@item SINGULAR_CPUS
maximal number of cpu cores to use, default: all available
@*can also be given by a command line argument: @code{--cpus=...}
@end itemize

The effective list of directories/files can be printed by @code{Singular -v},
see @ref{Command line options}.

Depending on the used functions, these environment variables apply also to @code{libSingular}.
@c ----------------------------------------------------------
@node Unix installation instructions
@section Unix installation instructions
@cindex Unix installation
@cindex instructions, Unix installation
@cindex howto, install on Unix

Install binaries:
@uref{https://www.singular.uni-kl.de/index.php/singular-download/install-linuxunix.html}

or build it yourself:
@itemize
@item
Install the necessary packages:
  @itemize
  @item
  libtool
  @item
  gnu make
  @item
  gcc, g++
  @item
  libreadline
  @item
  gmp, mpfr
  @item
  ntl
  @item
  libcdd
  @end itemize
@item
Install flint 2.5 (or newer):
@code{./configure --with-gmp=/usr --prefix=$HOME/tmp}
@*@code{make && make install}
@item
Install Singular
@code{./configure --with-flint=$HOME/tmp --enable-gfanlib --prefix=$HOME/Singular4}
@*@code{make && make install}
@*(@code{$prefix/bin/Singular} is the main executable)
@item (optional)
install 4ti2
@item (optional)
install surf/surfer
@item (optional)
install normaliz 2.8 (or newer)
@end itemize

See also
@url{https://github.com/Singular/Singular/wiki/Step-by-Step-Installation-Instructions-for-Singular}
which includes instructions adapted for debian and fedora based systems.

@c ----------------------------------------------------------
@node Windows installation instructions
@section Windows installation instructions
@cindex Windows installation
@cindex instructions, Windows installation
@cindex howto, install on Windows

Singular relies on Cygwin as its environment under Windows.
There is a 32bit and a 64bit version of Cygwin.

@url{https://www.singular.uni-kl.de/index.php/singular-download/install-windows.html}

@c ----------------------------------------------------------
@node Macintosh installation instructions
@section Macintosh installation instructions
@cindex Macintosh installation
@cindex instructions, Macintosh installation
@cindex howto, install on Macintosh

@strong{Installation of the provided binaries}
@url{https://www.singular.uni-kl.de/index.php/singular-download/install-os-x.html}

If your Mac refuses to open Singular because of an "unidentified developer":
Open System Preferences. Go to the Security & Privacy tab. Click on
the lock and enter your password so you can make changes. Change the
setting for 'Allow apps downloaded from' to 'App Store and identified
developers'.

You may also check @url{https://support.apple.com/en-en/guide/mac-help/mh40616/mac}