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.
opened 08:28PM - 24 Jan 19 UTC
closed 02:43PM - 06 Mar 19 UTC
V8 installation went through successfully,
*** installing help indices
** bu… ilding package indices
** installing vignettes
** testing if installed package can be loaded
•DONE (V8)
The downloaded source packages are in
‘/tmp/RtmpXcaOVl/downloaded_packages’.
----------------
installed V8 packages :
v8-3.14.5.10-25.el7.x86_64
v8-devel-3.14.5.10-25.el7.x86_64
--------
but while trying to publish an app getting this following error :
Installing V8 (1.5) ...
01/23 22:39:26.382
curl: (22) The requested URL returned error: 404 Not Found
01/23 22:39:30.252
[1] "Command failed (1)\n\nFailed to run system command:\n\n\t'/opt/microsoft/ropen/3.4.3/lib64/R/bin/R' --vanilla CMD INSTALL '/opt/rstudio-connect/mnt/tmp/RtmplXCmvF/V8' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.4.3' --install-tests --no-docs --no-multiarch --no-demo \n\nThe command failed with output:\n* installing *source* package 'V8' ...\n** package 'V8' successfully unpacked and MD5 sums checked\nUsing PKG_CFLAGS=-I/usr/include/v8-3.14\nUsing PKG_LIBS=-lv8\n------------------------- ANTICONF ERROR ---------------------------\nConfiguration failed because was not found. Try installing:\n * deb: libv8-3.14-dev (formerly: libv8-dev) (Debian, Ubuntu)\n * rpm: v8-314-devel (formerly: v8-devel) (Fedora, EPEL)\n * brew: v8@3.15 (OSX) -- NOT regular v8! Tap from homebrew/versions\n * csw: libv8_dev (Solaris)\nTo use a custom libv8, set INCLUDE_DIR and LIB_DIR manually via:\nR CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'\n--------------------------------------------------------------------\nERROR: configuration failed for package 'V8'\n* removing '/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.4.3/V8'"
01/23 22:39:30.257
Error: Command failed (1)
01/23 22:39:30.257
01/23 22:39:30.257
Failed to run system command:
01/23 22:39:30.257
01/23 22:39:30.257
'/opt/microsoft/ropen/3.4.3/lib64/R/bin/R' --vanilla CMD INSTALL '/opt/rstudio-connect/mnt/tmp/RtmplXCmvF/V8' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.4.3' --install-tests --no-docs --no-multiarch --no-demo
01/23 22:39:30.257
01/23 22:39:30.257
The command failed with output:
01/23 22:39:30.257
* installing *source* package 'V8'
My Version
RStudio Connect v1.7.6-6
Build "a3b920e"
andrie
September 8, 2019, 6:01pm
2
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