| 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 | |
| 12 | Platform-specific notes |
| 13 | ----------------------- |
| 14 | |
| 15 | - On OS X, the version of OpenSSL included with the operating |
| 16 | system is outdated (0.9.8) and deprecated, and it is recommended |
| 17 | that scrypt be built with an updated version of OpenSSL. On OS X |
| 18 | 10.11 "El Capitan" and higher, OpenSSL was removed entirely. After |
| 19 | installing a newer version of OpenSSL, use |
| 20 | CPPFLAGS="-I /path/to/openssl/headers" |
| 21 | LDFLAGS="-L /path/to/openssl/lib" |
| 22 | to build scrypt. |
| 23 | |
| 24 | In particular, if you installed OpenSSL using homebrew, you may |
| 25 | pass the relevant directories directly to ./configure: |
| 26 | ./configure CPPFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" |
| 27 | |
| 28 | Alternatively, you may with to add these lines to your $HOME/.profile file: |
| 29 | export CPPFLAGS="-I/usr/local/opt/openssl/include $CPPFLAGS" |
| 30 | export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS" |
| 31 | and then close & re-open your terminal window. |
| 32 | |
| 33 | |
| 34 | Building from git |
| 35 | ----------------- |
| 36 | |
| 37 | For experimental development from git, build with: |
| 38 | |
| 39 | autoreconf -i |
| 40 | ./configure |
| 41 | make |
| 42 | |
| 43 | - You must have automake 1.11.2 or higher. |
| 44 | - In order to support the `AX_CFLAGS_WARN_ALL` autoconf directive, you will |
| 45 | need to install the autoconf archive. On Debian systems, use the |
| 46 | `autoconf-archive` package; on FreeBSD, use `devel/autoconf-archive`. |