-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
130 lines (95 loc) · 4.66 KB
/
README
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
MUMPS Version 1.65
This version of mumps runs on FreeBSD, NetBSD, many linux versions,
OSX 10.4 through 10.9 in 64 and 32 bit mode and Solaris. This version
is also available for windows (tested on XP and Windows 7) and on
the Raspberry Pi (ARM) processor (for embeded MUMPS).
First select a directory (such as your home directory) that does NOT
contain a directory or file named mumps.
Then, download mumps-1.65-src.tar.gz from
https://sourceforge.net/projects/mumps/files/ and un-tar.
or enter:
cvs -z3 -d:pserver:[email protected]:/cvsroot/mumps checkout -P mumps
This will create a mumps directory in the current directory.
Change to this directory and type make. The resulting mumps executable
will be optimised for this system.
NOTE: On cygwin, first follow the instructions below and for NetBSD it may
be necessary to copy BSDmakefile to Makefile.
On cygwin and solaris, $H is GMT as these implementations don't have
a local time offset.
On OSX 10.9 (Mavericks), you have to get cvs and gcc from somewhere.
The gcc included invokes clang which just doesn't work. Once you
install gcc from gcc-4.9-bin.tar.gz - delete /usr/bin/gcc.
THIS STEP NO LONGER REQUIRED THANKS TO Andras Pahi who redid some of
my code that needed gcc.
To use, first create a database, eg:
./mumps -v TEST -b 16 -s 1000 testdb
then, start the environment, eg:
./mumps -j2 testdb
then, load the unitities, eg:
./mumps -x 'O 1:("utils":"R") U 1 R X X X' testdb
The environment is then started using:
./mumps testdb
or
./mumps -x "D ^%M" testdb
Remember to shut it down when you are done to free the shared memory.
Do either M> K ^$J or MCL> D ^SSD
NOTES on cygwin
For windows, install the Cygwin environment at http://cygwin.com/install.html
Run cygwin terminal (on win7 or win8 run it as administrator).
Setup the Cygserver using /usr/bin/cygserver-config.
edit /usr/include/cygwin/shm.h
add near end
#define SHM_R (IPC_R)
#define SHM_W (IPC_W)
edit /usr/include/cygwin/ipc.h
move third last #endif 3 lines up
VISTA FILEMAN CODE
Download mumps-vista.tar.gz from:
https://sourceforge.net/projects/mumps/files/
Create group vista and ensure you are a member of this.
Prompt> sudo tar -C / -xzvf mumps-vista.tar.gz
Password: ********
x usr/vista/
x usr/vista/runvista
x usr/vista/startvista
x usr/vista/vistadb
Prompt> sudo chgrp -R vista /usr/vista
Prompt> sudo chmod -R g+w /usr/vista
Fetch the appropriate mumps executable from the above sourceforge location.
// To startup MUMPS with VISTA
Prompt> sudo /usr/vista/startvista
Password: ********
kern.sysv.shmmax: 536870912 -> 536870912
kern.sysv.shmall: 131072 -> 131072
Creating share for 16 jobs with 2mb routine space,
10mb (320) global buffers, 128kb label/map space
and 16kb for locktab.
// and to run that environment
Prompt> /usr/vista/runvista
// This runs in the MUMPS standard MCL environment
// to shutdown using MCL CD MGR then D ^SSD
enjoy
Copyright (c) 1999 - 2016
Raymond Douglas Newman. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of Raymond Douglas Newman nor the names of the
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.