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

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