File: INSTALL

package info (click to toggle)
wcd 3.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 804 kB
  • ctags: 640
  • sloc: ansic: 8,260; makefile: 43; sh: 6; csh: 1
file content (142 lines) | stat: -rw-r--r-- 3,271 bytes parent folder | download
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
130
131
132
133
134
135
136
137
138
139
140
141
142
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

Cygwin
$ make -f Makefile.ncurses.cygwin

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:

$ make

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

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

Wcd can also be compiled with Imake:

$ xmkmf
$ make depend
$ make
$ make install

The last command copies wcd.exe to your ~/bin/ directory.
Note: Imake will overwrite the makefile "Makefile".

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

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

--

Cygwin

The Cygwin version of wcd makes use of WIN32 API functions
to scan Windows SMB LAN servers. So library 'mpr' is included
during linking.

--

A compile error occurs when you use gcc < 3.0 and
<stdbool.h> is included somewhere (e.g. in curses.h).

Apply the following patch:

$ patch -p1 < patch/wcd_bool.diff

(thanks to Kevin M. Rosenberg)

--

Conflicting curses.h ncurses.h

On some systems curses.h is conflicting with ncurses.h. To compile wcd you can
solve this by creating a symbolic link curses.h in the wcd source directory
pointing to the ncurses.h file and adding -I. to CFLAGS in
Makefile.ncurses.gcc.

This problem was seen on a BSDI BSD/OS 4.0 system. /usr/local/include/ncurses.h
......................................................................

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 .

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

Note that the current working directory of a Bourne-like or C shell can only be
changed by the builtin cd command. Therefore the binary is always called by a
function or alias. The function or alias sources a shell script (go-script)
which is generated by the binary wcd.exe. Wcd can only work after the function
or alias is defined.

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

 ===== 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.