Problem installing V8 in RStudio on Ubuntu 18.10

Hi, I am running R/RStudio(Version 1.1.423) on a Linux (Ubuntu 18.10) machine. The system is an intel core i5 based one. I am trying to install the package “V8” but keep running into an error. I am not sure if this package has a version for Ubuntu. Please let me know if anyone can help. Please let me know if any further information would be needed and I will gladly provide the same. The error message is detailed below:

  • installing source package ‘V8’ …
    ** package ‘V8’ successfully unpacked and MD5 sums checked
    Using PKG_CFLAGS=-I/usr/include/v8-3.14
    Using PKG_LIBS=-lv8
    ------------------------- ANTICONF ERROR ---------------------------
    Configuration failed because was not found. Try installing:
  • deb: libv8-3.14-dev (formerly: libv8-dev) (Debian, Ubuntu)
  • rpm: v8-314-devel (formerly: v8-devel) (Fedora, EPEL)
  • brew: v8@3.15 (OSX) – NOT regular v8! Tap from homebrew/versions
  • 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 ‘/home/raoul/.conda/envs/rstudio/lib/R/library/V8’
    Warning in install.packages :
    installation of package ‘V8’ had non-zero exit status

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

Thanks,
Raoul

1 Like

Welcome @Raoul - thanks for posting here.

I think you need to install like apt-get install libv8-3.14-dev, but I’ll let @jeroenooms give the definitive answer

2 Likes

Thanks so much. I did try that and unfortunately, it didnt make a difference. I guess I am doing something wrong somewhere! This is the message on installing using apt-get:
" libv8-3.14-dev is already the newest version (3.14.5.8-11ubuntu1)."

Scott’s answer is correct. Do you have a compiler installed? Can you try:

apt-get install r-base-dev
g++ --version
make --version

How did you install R? Can you show us your sessionInfo()

1 Like

Hi, Thanks so much for your reply. I have Eclipse, but have never used it. I have R installed through Anaconda/RStudio and the session Info is here.
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.10

Matrix products: default
BLAS: /home/raoul/.conda/envs/rstudio/lib/R/lib/libRblas.so
LAPACK: /home/raoul/.conda/envs/rstudio/lib/R/lib/libRlapack.so

locale:
[1] LC_CTYPE=en_IN.UTF-8 LC_NUMERIC=C LC_TIME=en_IN.UTF-8 LC_COLLATE=en_IN.UTF-8
[5] LC_MONETARY=en_IN.UTF-8 LC_MESSAGES=en_IN.UTF-8 LC_PAPER=en_IN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_IN.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] RevoUtils_11.0.1 RevoUtilsMath_11.0.0

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1 yaml_2.2.0

We do not support anaconda, please don’t use anaconda. We only support the official R that you can install with apt-get install r-base-dev.

Ok, thanks! Will try that.

1 Like