3
<!-- @(#)install.html 1.2 04 Jun 1995 -->
4
<title>Installing WorkMan</title>
8
<h1>How to Install WorkMan</h1>
10
<h2>Prerequisites</h2>
13
WorkMan requires XView version 3 or higher. This is supplied by default on Sun
14
systems (though you may have to select the "OpenWindows Developers" category
15
from your SunOS or Solaris CD to get the necessary files for compiling) and is
16
available as part of the "contrib" distribution in X11R5 and X11R6 for other
20
Some of the Makefiles assume that OPENWINHOME is set to the Sun OpenWindows 3.x
21
home directory. Some tweaking will probably be required if you're not using
22
OpenWindows; OPENWINHOME is used to locate the XView include files and
28
How you build WorkMan depends on which platform you're trying to build it on.
29
The following are the quick-and-dirty instructions, and will often suffice,
30
but you should follow the link on your platform's name for more information.
33
On most platforms, you can configure WorkMan to use a database library from
34
4.4BSD to look CDs up very quickly. More details on that
35
<a href="#libdb">below.</a>
40
Edit "Makefile" and comment out the Solaris 2 lines (SOL2, LIBLOC,
42
type "make". You may want to use the "-e" option when you run
43
WorkMan; see the manpage.
46
<dt><a href="notes-solaris2.html">Solaris 2.x</a>
48
If you're not using gcc, adjust the Makefile accordingly. Then type
52
<dt><a href="notes-ultrix.html">ULTRIX</a><br>
53
<a href="notes-news.html">NEWS-OS</a><br>
54
<a href="notes-bsd386.html">BSD/386</a><br>
55
<a href="notes-freebsd.html">FreeBSD</a>
57
Run "imake" or "xmkmf" to convert the supplied Imakefile to a Makefile.
58
Or edit the Makefile to point to the right directories.
61
<dt><a href="notes-hpux.html">HP-UX</a>
63
Edit "Makefile.hpux" to point to the correct directories, then type
64
"make -f Makefile.hpux" to build WorkMan. You may want to use the
65
"-e" option when you run WorkMan; see the manpage.
68
<dt><a href="notes-linux.html">Linux</a>
70
Edit "Makefile.linux" to point to the correct directories. Uncomment
71
the PASS line if appropriate (see the Makefile.)
72
Then type "make -f Makefile.linux" to build WorkMan.
75
<dt><a href="notes-svr4.html">SVr4 4.0</a>
77
Edit "Makefile.svr4" to point to the right directories, then type
78
"make -f Makefile.svr4".
81
<dt><a href="notes-osf1.html">OSF/1</a>
83
<em>Note: OSF/1 is not officially supported; the code is known to
84
have problems on many systems.</em>
85
Edit "Makefile.osf1" to point to the right directories, then type
86
"make -f Makefile.osf1". Note that this port is preliminary and
87
there are known problems (see README.osf1 for details).
91
<h3><a name="libdb">Using the libdb package</a></h3>
93
WorkMan can optionally make use of the 4.4BSD "libdb" package to speed up
94
database lookups tremendously. Here's how to use it.
97
<li> For now, you have to get libdb separately; it's available on
98
<a href="ftp://ftp.cs.berkeley.edu/ucb/4bsd/">ftp.cs.berkeley.edu</a>
101
<li> Unpack libdb in the WorkMan source directory. A subdirectory called
102
"db.1.85" will be created.
104
<li> <code>cd db.1.85/PORT</code>
106
<li> Have a look at the README file if you like.
108
<li> There are a bunch of system-specific directories in PORT. Look for
109
the system name that most closely resembles yours. Go into it.
111
<li> <code>make</code>
113
<li> Go back to the WorkMan source directory (<code>cd ../../..</code>).
115
<li> Edit your system's Makefile, or the Imakefile if that's what you're
116
using. You'll see a comment about libdb; the lines below that define
117
some compiler options and the path to the libdb library. Uncomment
118
those lines and make sure the paths point to the PORT directory you
121
<li> <code>make</code> (with appropriate arguments, e.g.
122
<code>-f Makefile.linux</code>, for your system.)
127
If you have an old WorkMan database sitting around, you should build an index
128
file for it; WorkMan itself only writes to the index file when you save or
129
update a CD. There's a program called "buildindex" to build index files.
130
Type "<code>make buildindex</code>" (specifying an alternate Makefile as
131
appropriate) after you've built WorkMan. To run buildindex, just give it the
132
path to your database file as an argument, e.g. "<code>buildindex
133
$HOME/.workmandb</code>".
136
One thing to be careful of is using libdb on a database you're sharing via NFS
137
on a system without working file locking. If you run WorkMan with the "-n"
138
option to bypass the file locking code, you risk corrupting the index file if
139
two people save CDs at once. If you're the only one using a CD database, or
140
the only one with write access to it, you can safely use -n in conjunction
141
with libdb; it's only when two or more entries are saved simultaneously that
142
problems can occur. In that case the best solution is to bug your sysadmin,
143
or your UNIX vendor, to give you working file locking.
148
Once the executable is built, install it in your favorite directory for such
149
things. The file "workman.info" should be placed in the XView help directory,
150
usually $OPENWINHOME/lib/help. If you put it somewhere else, be sure to set
151
your HELPPATH environment variable to point to that directory. This is
152
necessary if you want to use the Help key to see the controls' descriptions.
153
Run "make install" to install everything under $OPENWINHOME. You will probably
154
need to be root to do this.
157
Once all that's done, you're ready to rock and roll (or jazz, or...)
161
<a href="index.html">To the WorkMan home page</a>
163
<h5>Last update: 04 Jun 1995</h5>