BUILDING 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Installing
  2. ----------
  3. We strongly recommend that people use the latest official release tarball on
  4. https://www.tarsnap.com/scrypt.html, and build with:
  5. ./configure
  6. make
  7. make install
  8. Platform-specific notes
  9. -----------------------
  10. - On OS X, the version of OpenSSL included with the operating
  11. system is outdated (0.9.8) and deprecated, and it is recommended
  12. that scrypt be built with an updated version of OpenSSL. On OS X
  13. 10.11 "El Capitan" and higher, OpenSSL was removed entirely. After
  14. installing a newer version of OpenSSL, use
  15. CPPFLAGS="-I /path/to/openssl/headers"
  16. LDFLAGS="-L /path/to/openssl/lib"
  17. to build scrypt.
  18. In particular, if you installed OpenSSL using homebrew, you may
  19. pass the relevant directories directly to ./configure:
  20. ./configure CPPFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib"
  21. Alternatively, you may with to add these lines to your $HOME/.profile file:
  22. export CPPFLAGS="-I/usr/local/opt/openssl/include $CPPFLAGS"
  23. export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
  24. and then close & re-open your terminal window.
  25. Building from git
  26. -----------------
  27. For experimental development from git, build with:
  28. autoreconf -i
  29. ./configure
  30. make
  31. - You must have automake 1.11.2 or higher.
  32. - In order to support the `AX_CFLAGS_WARN_ALL` autoconf directive, you will
  33. need to install the autoconf archive. On Debian systems, use the
  34. `autoconf-archive` package; on FreeBSD, use `devel/autoconf-archive`.