root/1.8.3/branches/macosx/INSTALL

Revision 923, 6.4 KB (checked in by shawnw, 19 months ago)

Mac OS X: Updated for 1.8.3p3

Line 
1============================================================================
2                   Installation Guide to PennMUSH 1.8.x
3============================================================================
4This file explains how to install PennMUSH. It comes in three parts:
5  A. Important background
6  B. Installation from source (recommended)
7  C. Installation of precompiled binaries (only for Windows platforms)
8
9If you are upgrading from a previous PennMUSH release, this is
10probably not the file you want to start with. Read the UPGRADING
11file first.
12
13DISCLAIMER: Before attempting to run a MUD of any sort, you should have
14some reasonable knowledge of UNIX and C.  If you do not, it is _strongly_
15suggested that you learn UNIX and C to some reasonable level of competency
16before attempting to set up a MUSH.  (Note that even people using the
17Windows ports are encouraged to know UNIX, because that's the paradigm
18that PennMUSH was built with, and most resources will be written with
19UNIX is mind.)
20
21You may also want to take a look at Javelin's Guide for PennMUSH Gods,
22at http://pennmush.org/~alansz/guide.html
23or by ftp from pennmush.org, /pub/PennMUSH/Guide
24============================================================================
25 
26A. Important background
27
28Here's a quick picture of the organization of the MUSH directory tree.
29The "src" directory contains C source code.  The "hdrs" directory
30contains header files for the source code.  The files used by a running
31MUSH are in the "game" directory, which includes subdirectories "data"
32(current databases), "txt" (text files and directories for building them),
33"log" (log files), and "save" (backup databases).  Finally, the "hints"
34directory is used during the installation process, the "po" directory
35holds translation message files.
36
37 pennmush--+-> src
38           +-> hdrs
39           +-> game ------+-> data
40           |              |   
41           |              +-> txt -------+-> nws
42           |              |              +-> evt
43           |              |              \-> hlp
44           |              |                 
45           |              +-> log
46           |              \-> save
47           +-> hints
48           +-> po
49           +-> utils
50           \-> win32
51               
52
53PennMUSH has been tested on a fairly wide variety of machines and
54operating systems including at least:
55
56    GNU/Linux, NetBSD, FreeBSD on many architectures
57        Mac OS X
58        Microsoft Windows
59         
60There's no real reason why PennMUSH shouldn't compile on any 32-bit
61or better BSD, System V, or POSIX operating system.  Development is
62primarily done on GNU/Linux and Mac OS X systems.
63
64Mac OS 9 and earlier ("Classic"), and OS/2 are not supported.
65
66============================================================================
67
68B. Installation from source
69
70     The quickstart version of the installation is:
71
721. On win32 only, install proper tools or read win32/README*.
732. ./configure or some variant
743. create options.h, or make update
754. make install
765. possibly make customize
776. Read game/README and follow those instructions
78
79     Here's the process in detail:
80
811. If you're running on win32, read one of the win32/README* files
82   for information on how to compile with various compilers.
83
842. On Unix systems, unpack the code and:
85        cd pennmush
86    ./configure
87
88   Useful arguments to configure:
89       a. --with-mysql=/path/to/mysql_config: Use if configure can't
90          find mysql_config in your normal path and you want SQL support.
91       b. --disable-nls: Turn off translation support if you don't need it.
92       c. --help: See all options.       
93
94       Environment variables to customize search paths:
95       CPPFLAGS=-I/path/to/extra/headers
96       LDFLAGS=-L/path/to/extra/libraries
97       CFLAGS=-Optimation and -Warning options.
98
99       VAR=arg ... ./configure
100
101       See hints/your-os.txt if present for more details and system-specific
102       help, and README.SQL for help with detecting a SQL server.
103   
104
1053. EITHER:
106
107Copy options.h.dist to options.h. Note that these files stay in the
108pennmush directory.
109
110Edit the file. It's liberally commented.
111
112Also, cp game/mushcnf.dst to game/mush.cnf and edit.
113
114OR:
115
116Type 'make update', and answer all the questions about which MUSH
117options you want.
118
119You should not need to change any of the other header files.
120
1214. Do a "make install". This will build all the necessary files, and
122set up some symbolic links for the restart script.  You will probably
123receive a few compilation warnings, which can generally be ignored.
124
1255. If you plan to run multiple MUSHes, you may want to do a "make
126customize" which will run a script to help set up a separate customized
127game subdirectory for each MUSH (run it once per MUSH you plan to run).
128Files in these subdirectories will already be customized in many ways,
129so what follows may be slightly different. :) This is probably broken.
130
1316. Read game/README and follow those instructions.
132
133A final thing you may want to think about is compiling announce.c or
134portmsg.c. These are port announcers; if your MUSH ever goes down, you can
135set one up, and a message will be given to a person attempting to connect
136to that port.  Read that file for details. It is not an official MUSH
137piece of code; rather, it is a freely distributable program available
138via anonymous FTP that is included in this code because it happens to
139be fairly useful.  Javelin suggests using portmsg - it appears to be
140more stable.
141
142============================================================================
143
144C. Installation of precompiled binaries (only for Windows platforms)
145
146A pre-built binary is frequently available for win32 users who don't
147want to customize their MUSH server, and don't feel like compiling it
148themselves.  This binary distribution may not contain the src, hdrs,
149or hints directories and may be missing several key files (like
150Configure) from the pennmush directory.  It does include the options.h
151that it was built with, as an aid to those who decide later that they
152want to customize the server; they are useful as a baseline to work from.
153
154Using the pre-built binary is fairly simple; adjust your configuration
155file as in game/README, then go to the game directory and run
156PennMUSH.exe (you may need to use PennMUSH /run or PennMUSH /start).
157Alternately, if you want the MUSH to automatically start each time you
158turn on your machine, you can install it as a system service by running
159'PennMUSH /install'.  PennMUSH can be removed from service status via
160'PennMUSH /remove'.
Note: See TracBrowser for help on using the browser.