Update for 0.51.0
[wmaker-crm.git] / INSTALL
blob10e7a7a591cf3b453d8a91f48c64fb772c66a54b
2                 Installation Instructions for Window Maker
6 SUPPORTED PLATFORMS
7 ===================
8 (ie: I've heard someone has compiled it on...)
10 - Intel GNU/Linux Slackware 3.5 (primary platform)
11 - Intel GNU/Linux other distributions
12 - Sparc GNU/Linux RedHat 5.1
13 - PowerPC GNU/MkLinux
14 - Alpha GNU/Linux RedHat 5.1
15 - FreeBSD
16 - NetBSD
17 - Solaris 2.5.1, 2.5.2
18 - Solaris 2.6.0
19 - Solaris 2.7beta
20 - SCO Unix
21 - SGI Irix
22 - OSF/1
23 - HP-UX
24 - AIX 4.1.4 / IBM PowerPC
25 - AIX 4.3.1 / IBM CC compiler
26 - AIX 4.3.2 / IBM PowerPC
27 - AIX 5.3
28 - DEC Alpha/Digital UNIX 4.x
29 - XFree86 / OS/2
30 - Corel NetWinder
31 - SunOS 4.x
32 - PowerMac / Power MachTen 4.1.1 over MacOS
33 - Amiga 3000 running RedHat Linux 5.1 (Rawhide)
35 Patches to make it work on other platforms are welcome. 
37 If the latest version doesn't work for you, try 0.19.3, 
38 which is known to be pretty stable on many platforms.
41 REQUIREMENTS:
42 =============
44 The following software is required to use Window Maker:
46 - X11R6.x       
47         Window Maker can be compiled in older versions of X, like X11R5
48         (Solaris) or X11R4 (OpenWindows) but it will not work 100% correctly.
49         In such servers there will not be application icons and you'll have
50         trouble using the dock. Upgrading the client libraries (Xlib, Xt etc)
51         will help if you can't upgrade the server.
53 The following is required to build Window Maker:
55 - Basic obvious stuff
56         If you will build Window Maker, make sure you have gcc (or some
57         other ANSI C compiler) and the X header files installed. Specially
58         for newbie Linux users: you must install all X development packages
59         and the gcc suite. Otherwise you won't be able to build any X
60         program, including Window Maker.
62 - autoconf, automake and libtool
63         These tools are not needed, but IF you have one or
64         more of them installed, make sure you have ALL of the following 
65         with exactly these versions:
66                 autoconf 2.12
67                 automake 1.3
68                 libtool 1.2
69         If you have a different version, disable them by temporarily
70         renaming them to something else or uninstalling them from your
71         system. If you don't develop software you don't need them,
72         so you can safely uninstall. 
74 - lex (or flex) and yacc (or bison)
75         These are used by libPropList. lex is actually not needed since
76         it's output file is included, but either me or automake is stupid,
77         causing the configure script for libPropList to simply abort for no
78         convincent reason if lex is not found.
81 OPTIONAL:
82 =========
84 These libraries are not required to make Window Maker work, but they
85 are supported in case you want to use them. Version numbers are those
86 that I have (and therefore, guraranteed to work), but other versions
87 might work too. 
90 - libXPM 4.7 or newer
91         Older versions may not work!!! 
92         Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
94         There is builtin support for XPM files, but it will not
95         load images in some uncommon encodings.
97 - libpng 0.96 or newer and zlib     
98         For PNG image support.
100 - libtiff 3.4 or newer
101         For TIFF image support.
102         You can get it at ftp://ftp.sgi.com/graphics/tiff
104 - libjpeg 6.0.1 or newer
105         For JPEG image support
107 - libgif 2.2 or libungif
108         For GIF image support   
110 - GNU xgettext
111         If you want to use translated messages, you will need GNU gettext.
112         Other versions of gettext are not compatible and will not work.
113         Get the GNU version from ftp://prep.ai.mit.edu
115 Most of these can be get from ftp.uu.net/pub/graphics
118 CONFIGURE OPTIONS:
119 ==================
121 These options can be passed to the configure script to enable/disable
122 some Window Maker features. Example:
124 ./configure --enable-kanji
126 will configure Window Maker with kanji (and other multi-byte) characters
127 support compiled in.
130 To get a list of other options, run ./configure --help
132 --enable-kanji
133         support to display Kanji characters, Korean, Chinese and other
134         languagues that require special characters.
136 --enable-single-icon
137         enables the collapsing of all appicons of the WM_CLASS+WM_INSTANCE
138         into a single one. This feature is not supported at all by the
139         developers. If you have some trouble with it, contact it's author:
140         Christopher Seawood <cls@seawood.org>
142 --disable-shm
143         disable use of the MIT shared memory extension. This will slow down
144         texture generation a little bit, but in some cases it seems to be
145         necessary due to a bug that manifests as messed icons and textures.
147 --disable-motif 
148         disable support for mwm window manager hints
150 --enable-openlook
151         enable support for OPEN LOOK(tm) window manager hints
153 --enable-gnome
154         enable support for GNOME window manager hints
156 --enable-kde
157         enable support for kde/kwm window manager hints
159 --enable-lite
160         remove things that are already supported in desktop environments,
161         like KDE and GNOME. Disabled things are: window list, root
162         applications menu, multiple window selection. Note that you will not
163         be able to exit Window Maker from itself anymore; you will have to
164         use kill with the SIGTERM signal or exit it from KDE. It is not
165         advisable to enable it.
167 --enable-modelock
168         XKB language status lock support. If you don't know what it is you
169         probably don't need it.
171 --enable-sound  
172         enable support of sound effects module
174 --disable-xpm   
175         disables use of the XPM library even if it is available on your
176         system.
178 --disable-png   
179         disables use of PNG library
181 --disable-tiff
182         disable use of TIFF library
184 --disable-gif
185         disable use of GIF library
187 --disable-jpeg
188         disable use of JPEG library
190 --disable-shape
191         disables shaped windows (for oclock, xeyes etc.)
193 --enable-debug
194         Do not use it unless you know what you're doing.
197 PLATFORM SPECIFIC NOTES:
198 ========================
199 - SCO Unix - run configure like
200         CFLAGS="-belf -DANSICPP" ./configure 
202 - SunOS, Solaris 
203         If you have gcc installed, run configure as:
204         CPP_PATH="gcc -E -x c" ./configure
205         Sun's cpp lacks some features needed by Window Maker and it can
206         cause problems when parsing the config files.
207         You also might need to use the --with-gfx-libs and --with-gfx-incs
208         to supply the directory where libtiff is located.
210         If you have a Ultra Creator 3D or some other machine with high-end
211         graphics, be sure to start the X server with the default visual
212         set to 24bpp or you might experience problems with mangled colors.
213         This is a wmaker bug and will be fixed.
215 - GNU/Linux in general
216         Make sure you have /usr/local/lib in /etc/ld.so.conf and that you
217         run ldconfig after installing.
219 - RedHat GNU/Linux
220         RedHat systems have several annoying problems. If you use it, 
221         be sure to follow the steps below or Window Maker will not work:
223         * make sure you don't have the LANG and LINGUAS environment variables
224         set to en_RN;
226         * make sure you have /usr/local/bin in your PATH environment
227         variable, as for some mysterious reason the folks at RedHat did not
228         include it in the default configuration files in RH 5.x;
230         * make sure you have /usr/local/lib in /etc/ld.so.conf before running
231         ldconfig;
233         * if you have problems that mention an error message with --no-reexec
234         uninstall libtool-1.2b and install libtool-1.2 instead. libtool-1.2
235         can be found in ftp.gnu.org  Also read the TROUBLESHOOTING section;
237         * if you installed the Window Maker package from RedHat and are
238         installing a new version of it by hand (compiling yourself), uninstall
239         the package from RedHat before.
241         * make a symbolic link from /usr/X11 to /usr/X11R6
242         (type ln -s /usr/X11R6 /usr/X11 ) and make sure you have a symbolic
243         link from /usr/include/X11 to /usr/X11R6/include/X11 (if not,
244         type ln -s /usr/X11R6/include/X11 /usr/include/X11 )
246 - PowerPC MkLinux
247         You will need to have the latest version of Xpmac. Older versions
248         seem to have bugs that cause the system to hang.
250 - Debian GNU/Linux
251         If you want JPEG and TIFF support, make sure you have libtiff-dev 
252         and libjpeg-dev installed.
254 - SuSE GNU/Linux
255         If you installed the Window Maker package from SuSE,
256         uninstall it before trying to compile wmaker or you
257         might have problems.
259 - MetroX (unknown version)
260         MetroX has a bug that corrupts pixmaps that are set as window
261         backgrounds. If you use MetroX and has weird problems with
262         textures, do not use textures in titlebars. Or use a different
263         X server.
265 INSTALLATION:
266 =============
268 Unpack WindowMaker-data.tar.gz and move the pixmaps directory in it
269 to /usr/local/share/pixmaps
271 You can get the file at ftp://ftp.windowmaker.org. This file is optional
272 and only have a few icons.
275 Build Window Maker
276 ------------------
277         For a quick start, type the following in your shell prompt:
279         ./configure
280         make
282 then, login as root and type:
284         make install
285         ldconfig
287 or if you want to strip the debugging symbols from the binaries and make them
288 smaller, you can instead type:
290         make install-strip
291         ldconfig
293 This will build and install Window Maker with default parameters.
295 If you want to customize some compile-time options, you can do the
296 following. 
298         1. (optional) Look at the CONFIGURE OPTIONS section above for the 
299         options available. Also run:
301         ./configure --help
303         to get a complete listing of other options that are available.
305         2. Run configure with the options you want. For example, if you
306         want to use the --enable-kanji option, type:
308         ./configure --enable-kanji
310         3. (optional) Edit src/wconfig.h with your favorite text editor 
311         and browse through it for some options you might want to change.
313         4. Compile. Just type:
315         make
317         5. Login as root (if you can't do that, read the "I don't have the 
318         root password :-(" section) and install Window Maker in your system:
319                 su root
320                 make install
323 User specific configuration
324 ---------------------------
326 These instructions do not need to be followed when upgrading Window Maker
327 from an older version, unless stated differently in the NEWS file.
329 Every user on your system that wishes to run Window Maker must do the
330 following:
332         1. Install Window Maker configuration files in your home directory.
333 Type:
334         wmaker.inst
336         wmaker.inst will install Window Maker configuration files and will
337 setup X to automatically launch Window Maker at startup.
339         That's it! 
340         
341         You can type "man wmaker" to get some general help for configuration
342 and other stuff.
344 Read the User Guide for a more in-depth explanation of Window Maker.
346 You might want to take a look at the FAQ too.
349 I don't have the root password :(
350 ---------------------------------
352 If you can't get superuser privileges (can't be root) you can install
353 wmaker in your own home directory. For that, supply the --prefix option
354 when running configure in step 2 of building Window Maker. You will
355 also need to supply the --with-appspath option, to specify the path for
356 WPrefs.app Example:
358 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps
361 Then make /home/jshmoe/bin be included in your search path and run 
362 bin/wmaker.inst
365 UPGRADING
366 =========
368 If you are upgrading from an older version of Window Maker:
370         1. Configure and build Window Maker as always
371         2. Install Window Maker (but do not run wmaker.inst)
372         3. Read the NEWS file and update your configuration files, 
373            if necessary.
375 TROUBLESHOOTING
376 ===============
378 When you have some trouble during configuration (while running configure),
379 like not being able to use a graphic format library you think you have
380 installed, look at the config.log file for clues of the problem.
383 == Error when configuring
385 ltconfig: unrecognized option `--no-reexec'
386 Try `ltconfig --help' for more information.
387 configure: error: libtool configure failed
389 remove the --no-reexec option from aclocal.m4 and libPropList/aclocal.m4
390 and reconfigure
391 Also make sure the autoconf and automake versions you have installed are:
392 autoconf 2.12
393 automake 1.3
394 libtool 1.2
396 Note that it must not be libtool 1.2b, it must be libtool 1.2, 
397 from the GNU sites.
399 == Error during build of libPropList
401 make: *** No rule to make target `libPropList.a.c', needed by 
402 `libPropList.a.o'.  Stop.
404 Make sure the autoconf and automake versions you have installed are at
405 least:
406 autoconf 2.12
407 automake 1.3
408 libtool 1.2
410 If you are using the RPM's that come with RedHat 4.x, don't use them.
411 It is broken. Uninstall the RPM and reinstall a fresh package from
412 ftp://prep.ai.mit.edu or any mirror.
414 == configure doesn't detect libtiff, or other graphic libraries.
416 Delete config.cache, then rerun configure adding the following options to
417 configure (among the other options you use):
418 --with-gfx-libs="-L/usr/local/lib"
419 --with-gfx-incs="-I/usr/local/include -I/usr/local/include/tiff"
420 Put the paths where your graphic libs and their corresponding header files are
421 located. You can put multiple paths in any of these options, as the example
422 of --with-gfx-incs shows. Just put a space between them.
425 == configure doesn't detect libXpm. 
427 * Check if you have a symbolic link from libXpm.so.4.9 to libXpm.so
430 == Segmentation fault on startup
432 * Check if the version of libXPM you have is at least 4.7
434 * Check if you have an updated version of ~/GNUstep/Defaults/WindowMaker
436 If you're not sure, try renaming ~/GNUstep to ~/GNUtmp and then run wmaker.inst
438 == "...: your machine is misconfigured. gethostname() returned (none)"
440 * the hostname of your machine is set to something invalid, that starts
441         with a parenthesis. Do a man hostname for info about how to set it.
444 == The root menu contains only 2 entries. ("XTerm" and "Exit...")
446 * Window Maker is not finding cpp (the C preprocessor). If your cpp is
447 not located in /lib/cpp, edit src/config.h and correct the path in
448 CPP_PATH.
450 == checking lex output file root... configure: error: cannot find output from true; giving up
452 * Read the REQUIREMENTS section of this file.
455 LOCALES/INTERNATIONALIZATION
456 ============================
458 Window Maker has national language support. 
459 To enable national language support, you must compile
460 Window Maker with some additional parameters. 
462 0 - You must have the GNU gettext package installed. It can be
463 obtained at ftp://prep.ai.mit.edu/pub/gnu/gettext-nnn.tar.gz
465 Steps 1 to 3 can be skipped if you use the Install script.
467 1 - You have to select the languages you want to support. Set the
468 LINGUAS to the list of locales you want. English is always
469 suported. Example:
471 setenv LINGUAS "pt ja de"
472 in csh
476 export LINGUAS;LINGUAS="pt ja de"
477 in sh
479 The list of supported locales can be found in po/README.
480 English is the default language.
482 Read po/README if you wish to translate and maintain locale files 
483 for other languages.
485 2 - Additionally, if your language uses multi-byte characters, such
486 as Japanese or Korean, you must supply the --enable-kanji flag to configure.
488 3 - Configure, build and install Window Maker normally.
490 4 - To select a particular locale at runtime you must set the LANG
491 environment variable to the locale you want. For example, if you want to set
492 the portuguese locale, you must run
494 setenv LANG pt
496 in csh or
498 export LANG; LANG=pt
500 in Bourne sh and similars
502 Note: If you have the LC_CTYPE environment variable set, you must
503 unset it before running wmaker.
505 For menu definition files, Window Maker searches for them in the
506 following order (for brazilian portuguese, in this case):
508 menu.pt_BR
509 menu.pt
510 menu
513 5 - If you chose a language that uses multi-byte characters, you must
514 configure the fonts appropriately. Read the manual page for XCreateFontSet
515 to have more details about it. You must change the ~/G/D/WindowMaker file
516 for fonts used in titlebars, menus and other things. For fonts used in
517 dialog windows, change ~/G/D/WMGLOBAL. The %d in the font names must not be
518 removed. You can also use the supplied wsetfont script for the task.
519 Read the script itself for instructions.
521 For example, you can specify the following in ~/G/D/WindowMaker:
523 WindowTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
524 MenuTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
525 MenuTextFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
526 IconTitleFont = "-*-helvetica-medium-r-normal-*-8-*,-*-*-medium-r-normal-*-12-*";
527 ClipTitleFont = "-*-helvetica-bold-r-normal-*-10-*,-*-*-medium-r-normal-*-12-*";
528 DisplayFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-12-*";
530 and in ~/G/D/WMGLOBAL:
532 SystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
533 BoldSystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
535 The above 2 fonts are only used by applications that use WINGs (WindowMaker
536 and WPrefs.app)