If you want the curse-based interface, try:

With gcc compiler and ncurses:
$ make -f Makefile.ncurses.gcc

With HP-UX cc and ncurses:
$ make -f Makefile.ncurses.HP-UX

With HP-UX cc and curses:
$ make -f Makefile.curses.HP-UX

With SunOS cc and curses:
% make -f Makefile.curses.SunOS

With gcc compiler and PDcurses:
$ make -f Makefile.pdcurses.gcc

You may need to edit the makefile first.

   ----------------------------------------------

To compile wcd with plain stdin/stdout interface type:

$ xmkmf
$ make depend
$ make
$ make install

The last command copies wcd.exe to your ~/bin/ directory.

   ----------------------------------------------

If you don't have imake on your system, try:

$ make

You may need to edit file 'Makefile' first if you don't
have the gcc compiler.

   ----------------------------------------------
*** PORTABILITY ***

See also section "Source code" in file wcd.txt.

BSD/OS

On BSDI BSD/OS 4.0 curses.h is conflicting with /usr/local/include/ncurses.h
(4.2). To compile wcd you can solve this by creating a symbolic link curses.h
-> /usr/local/include/ncurses.h in the wcd source directory and adding -I. to
CFLAGS in Makefile.ncurses.gcc.

......................................................................

Make sure that you have a copy of wcd.exe in a directory listed in your
PATH environment. If you install a local copy, for example in your
$HOME/bin directory, this directory must be added to the PATH
environment.

Copy file wcd.1 somewhere in $MANPATH .

......................................................................

 ===== Bourne-like shells: =====

Korn Shell (ksh, pdksh), Bourne Again Shell (bash), Z shell (zsh), ash, ...

1)

 copy wcd.exe to your $HOME/bin directory.

2)

 Add the following function to a startup file of your shell. For instance in:
$HOME/.kshrc (ksh)
$HOME/.bashrc (bash)
$HOME/.zshenv (zsh)

function wcd
{
   $HOME/bin/wcd.exe $*
   . $HOME/bin/wcd.go
}


Start a new shell


 ===== C Shell (csh): =====

1)

 copy wcd.exe to your $HOME/bin directory.

2)

 Add the following alias to your $HOME/.cshrc
 file.

alias wcd "$HOME/bin/wcd.exe \!* ; source $HOME/bin/wcd.go"

Start a new C Shell


......................................................................

There are more detailed information and tips about installing wcd
in file wcd.txt.

