Debian Codegraph @

BUILDING

raw
1 Installing
2 ----------
3
4 We strongly recommend that people use the latest official release tarball on
5 https://www.tarsnap.com/scrypt.html, and build with:
6
7 ./configure
8 make
9 make install
10
11 Official scrypt tarball releases should build and run on any IEEE Std 1003.1
12 (POSIX) compliant system which
13 1. Includes the Software Development Utilities option,
14 2. Has OpenSSL available via -lcrypto and #include <openssl/foo>, and
15 3. Provides /dev/urandom.
16
17
18 libscrypt-kdf
19 -------------
20
21 To install the development library, run:
22
23 ./configure --enable-libscrypt-kdf
24 make install
25
26
27 Platform-specific notes
28 -----------------------
29
30 - when cross-compiling, runtime POSIX compatibility checks are disabled.
31 For more information, see libcperciva/POSIX/README.
32
33 - On OS X, the version of OpenSSL included with the operating
34 system is outdated (0.9.8) and deprecated, and it is recommended
35 that scrypt be built with an updated version of OpenSSL. On OS X
36 10.11 "El Capitan" and higher, OpenSSL was removed entirely. After
37 installing a newer version of OpenSSL, use
38 CPPFLAGS="-I /path/to/openssl/headers"
39 LDFLAGS="-L /path/to/openssl/lib"
40 to build scrypt.
41
42 In particular, if you installed OpenSSL using homebrew, you may
43 pass the relevant directories directly to ./configure:
44 ./configure CPPFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib"
45
46 Alternatively, you may wish to add these lines to your $HOME/.profile file:
47 export CPPFLAGS="-I/usr/local/opt/openssl/include $CPPFLAGS"
48 export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
49 and then close & re-open your terminal window.
50
51
52 Building from git
53 -----------------
54
55 For experimental development from git, build with:
56
57 autoreconf -i
58 ./configure
59 make
60
61 - You must have automake 1.11.2 or higher, and libtool.
62 - In order to support the `AX_CFLAGS_WARN_ALL` autoconf directive, you will
63 need to install the autoconf archive. On Debian systems, use the
64 `autoconf-archive` package; on FreeBSD, use `devel/autoconf-archive`.
65 - Ignore this message if it appears:
66 aclocal: warning: couldn't open directory 'm4': No such file or directory