Can't install sodium package on shinyapps.io

204 views
Skip to first unread message

Jeremy Darot

unread,
Mar 18, 2016, 7:02:08 PM3/18/16
to ShinyApps Users

Hi,

I am trying to deploy a shiny app that uses the sodium package (https://cran.r-project.org/web/packages/sodium/).

The app works works fine locally, but when using the deployApp() function, the installation of the sodium package on shinyapps.io fails, and I get the log below.
Could you please have a look?

Thanks,
Jeremy

Preparing to deploy application...DONE
Uploading bundle for application: 72254...DONE
Deploying bundle: 398669 for application: 72254 ...
Waiting for task: 170651245
building: Processing bundle: 398669
building: Parsing manifest
building: Building image: 391991
building: Fetching packages
building: Building package: sodium
################################ Begin Task Log ################################ 
[2016-03-18T22:43:33.892330609+0000] Installing R package: xtable (1.8-0)

  • installing to library ‘/usr/local/lib/R/site-library’
  • installing binary package ‘xtable’ ...
  • DONE (xtable) [2016-03-18T22:43:34.184885917+0000] Installing R package: labeling (0.3)
  • installing to library ‘/usr/local/lib/R/site-library’
  • installing binary package ‘labeling’ ...
  • DONE (labeling) [2016-03-18T22:43:34.440812487+0000] Building R package: sodium (0.2) /mnt/packages/build /mnt
  • installing to library ‘/usr/local/lib/R/site-library’
  • installing source package ‘sodium’ ... ** package ‘sodium’ successfully unpacked and MD5 sums checked 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 ‘/usr/local/lib/R/site-library/sodium’ ################################# End Task Log ################################# Error: Unhandled Exception: Child Task 170651260 failed: Error building image: Error building sodium (0.2). Build exited with non-zero status: 1

Jeremy Darot

unread,
Mar 20, 2016, 5:23:12 PM3/20/16
to ShinyApps Users
I have just added a package support request at https://github.com/rstudio/shinyapps-package-dependencies/issues/37.

Cheers,
Jeremy
Reply all
Reply to author
Forward
0 new messages