installation of package ‘sodium’ had non-zero exit status

please someone should assist me with this error

ERROR: configuration failed for package ‘sodium’

  • removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.6/sodium’
    Warning in install.packages :
    installation of package ‘sodium’ had non-zero exit status

Can you post the whole error message you are getting? You are omitting the important parts.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

You are missing a system dependency, try installing the missing library accordingly to your operating system.

2 Likes

install.packages("sodium")
Installing package into ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/sodium_1.1.tar.gz'
Content type 'application/x-gzip' length 489760 bytes (478 KB)
==================================================
downloaded 478 KB

  • installing source package ‘sodium’ ...
    ** package ‘sodium’ successfully unpacked and MD5 sums checked
    ** using staged installation
    Package libsodium was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libsodium.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libsodium' found
    Using PKG_CFLAGS=
    Using PKG_LIBS=-lsodium
    ------------------------- ANTICONF ERROR ---------------------------
    Configuration failed because libsodium was not found. Try installing:
  • deb: libsodium-dev (Debian, Ubuntu, etc)
  • rpm: libsodium-devel (Fedora, EPEL)
  • csw: libsodium_dev (Solaris)
  • brew: libsodium (OSX)
    If libsodium is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a libsodium.pc file. If pkg-config
    is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

ERROR: configuration failed for package ‘sodium’

  • removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.6/sodium’
    Warning in install.packages :
    installation of package ‘sodium’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpWrarMl/downloaded_packages’

Thanks @andresrcs problem solved