ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 224 forks source link

Can't install package sodium on rstudio #10327

Open smith01s opened 6 years ago

smith01s commented 6 years ago

I can't install sodium when using rstudio installed from miniconda.

Can you help? I have installed libsodium-dev (sudo apt install libsodium-dev)

R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

Microsoft R Open 3.5.1 The enhanced R distribution from Microsoft Microsoft packages Copyright (C) 2018 Microsoft Corporation

Using the Intel MKL for parallel mathematical computing (using 4 cores).

Default CRAN mirror snapshot taken on 2018-08-01. See: https://mran.microsoft.com/.

install.packages('sodium') % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 478k 100 478k 0 0 367k 0 0:00:01 0:00:01 --:--:-- 367k

  • installing source package ‘sodium’ ... ** package ‘sodium’ successfully unpacked and MD5 sums checked Found pkg-config cflags and libs! 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/FDSL/smith01s/miniconda3/envs/rstudio/lib/R/library/sodium’ Warning in install.packages : installation of package ‘sodium’ had non-zero exit status

The downloaded source packages are in ‘/tmp/RtmpkZOve2/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done

mingwandroid commented 6 years ago

Please try with conda install libsodium instead.

smith01s commented 6 years ago

Thank you so much for getting back to me. That worked great for sodium. However I needed sodium to support the keyring library (so I can store db credentials in my keyring).

install.packages('keyring') fails as I don't have access to libsecret.

I have executed:

sudo apt install libsecret-1-dev

But my rstudio env cannot see the libsecret-1.so.0.0.0 file.

I have copied it into /miniconda3/envs/rstudio/lib/R/lib and the install.packages('keyring') now works.

Can we have a conda install libsecret like we have conda install libsodium?