Publish failure when packages include V8

I'm publishing a package from exploratory.io, that include the package V8 to R-Connect. When I do, I receive the following error.

09/08 00:23:03.681
Installing V8 (2.3) ...
09/08 00:23:07.259
[1] "Command failed (1)
Failed to run system command:
\t'/opt/R/3.5.2/lib64/R/bin/R' --vanilla CMD INSTALL '/opt/rstudio-connect/mnt/tmp/RtmpfUSW2n/V8' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.5.2' --install-tests --no-docs --no-multiarch --no-demo 
The command failed with output:
* installing *source* package ‘V8’ ...
** package ‘V8’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=-I/usr/include/v8 -I/usr/include/v8-3.14
Using PKG_LIBS=-lv8 -lv8_libplatform
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because was not found. Try installing:
* deb: libv8-dev or libnode-dev (Debian / Ubuntu)
* rpm: v8-devel (Fedora, EPEL)
* brew: v8 (OSX)
* csw: libv8_dev (Solaris)
To use a custom libv8, set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘V8’
* removing ‘/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.5.2/V8’"
09/08 00:23:07.260
Error: Command failed (1)

I tried including the V8 package in the load, but it did not change the outcome.

I've searched elsewhere, and others have had the same issue, with no resolution.

My Version
RStudio Connect v1.7.6-6
Build "a3b920e"

The error message in your logs include this guidance:

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because was not found. Try installing:
* deb: libv8-dev or libnode-dev (Debian / Ubuntu)
* rpm: v8-devel (Fedora, EPEL)
* brew: v8 (OSX)
* csw: libv8_dev (Solaris)
To use a custom libv8, set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

This means that you are missing a Linux system dependency on your Connect Server. The exact dependency depends on your operating system. For example, on a Debian based system, you need to install libv8-dev.

Ask your system administrator to install the correct linux dependency for your operating system.

For example, on a Debian based system, it will be something along the lines of:

sudo apt-get install libv8-dev
2 Likes