Skip to content

Installing libsodium

Andrew Kane edited this page Jul 3, 2019 · 6 revisions

RbNaCl is an FFI wrapper for libsodium, a portable repackaging of NaCl. You will need libsodium installed or RbNaCl will not work.

This page contains information on how to install libsodium on various platforms.

Windows

  • Visit https://download.libsodium.org/libsodium/releases/
  • Downloaded latest pre-built binary e.g. libsodium-1.0.18-msvc.zip
  • Extract the .zip file and locate an appropriate DLL file, e.g. libsodium-1.0.18-msvc\libsodium\x64\Release\v142\dynamic\libsodium.dll
  • Copy libsodium.dll to C:\Windows\System32\sodium.dll

OS X

  • Install Homebrew
  • Run brew install libsodium

Linux

You will either need to compile libsodium from source or install an appropriate package for your distribution:

CentOS

Debian (stretch)

NOTE: packages for other Debian releases are available

  • apt-get install libsodium18

Ubuntu (xenial 16.04 LTS)

  • apt-get install libsodium18

Ubuntu (bionic 18.04 LTS)

  • apt-get install libsodium23