-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
68 lines (49 loc) · 2.18 KB
/
INSTALL
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
# pwsafe - commandline tool compatible with Counterpane's Passwordsafe
## HOW TO BUILD FROM SOURCE TARBALL
tar xzf <tarball>
cd <dir>
./configure
make
make check # to be sure it's working
make install
And for the secure memory allocation to work, pwsafe must be install suid root
chown root:root %install_prefix%/bin/pwsafe
chmod +s %install_prefix%/bin/pwsafe
## HOW TO BUILD FROM CVS
cd <dir>
aclocal # generate aclocal.m4
autoheader # generate config.h.in from configure.ac
automake # generated Makefile.in from Makefile.am
autoconf # generate configure from configure.ac
./configure # etc...; from here on you're on your own
## Dependencies
You'll need autoconf 2.5 or better, as well as the header files for X11,
libreadline (which pulls in lib[n]curses) and openssl's libcrypto.
## Platforms
### Linux
pwsafe builds cleanly on various linuxes (i386, sparc32, sparc64, alpha/debian
stable, debian unstable, redhat 8.0, 7.2, 6.2) with various g++ versions
(4.0.1, 3.4.2, 3.3.3, 3.2, 3.1, 2.95, 2.96 and even egcs-2.91).
### NetBSD
pwsafe builds on NetBSD 1.6.1 if you use --without-readline (or go install libreadline
first) and gmake.
### FreeBSD
pwsafe builds on FreeBSD 4.9 if you use gmake.
### OpenBSD
pwsafe builds fine on OpenBSD 3.4.
### Solaris
pwsafe builds on Solaris if you first install openssl (for libcrypto). If you have
openssh you already have openssl somewhere, though you might not have the header
files. And you need to use --without-readline, or install that as well.
However the shell scripts in test/ do not all work under Solaris. It's not that
pwsafe is broken, but that my shell scripting skills aren't tuned to Solaris'
ancient /bin/sh.
### MacOS
pwsafe builds on MacOS X if you use --without-readline (or go install libreadline
first).
If you get errors on MacOS X when linking with the X libraries, try setting
export LDFLAGS="-flat_namespace -undefined suppress"
before ./configuring. Tiger (and presumably beyond) require "-undefined suppress"
when "-flat_namespace" is used, but autoconf does not know this so you have to
add it manually.
- Nicolas S. Dade <[email protected]>