5

I am trying to install V8 package on ubuntu but i am getting below error:

Warning in install.packages :
  installation of package ‘V8’ had non-zero exit status

Any help would be appreciated! :)

Phil
  • 7,287
  • 3
  • 36
  • 66
Nick
  • 333
  • 5
  • 17
  • 2
    There should be some output after `install.packages("V8")`, but before the warning message you listed. It will be impossible to diagnose your problem without that intermediate output. – duckmayr Jun 10 '20 at 11:43
  • yes sorry for incomplete message.plese find the below one: ERROR: configuration failed for package ‘curl’ * removing ‘/home/nk/curl Warning in install.packages : installation of package ‘curl’ had non-zero exit status ERROR: dependency ‘curl’ is not available for package ‘V8’ * removing ‘/home/nk/V8’ Warning in install.packages : installation of package ‘V8’ had non-zero exit status i tried to install curl as well but getting same error – Nick Jun 10 '20 at 12:01
  • i am getting below message while installing using terminal : Package libcurl-dev is a virtual package provided by: libcurl4-openssl-dev 7.58.0-2ubuntu3.8 libcurl4-nss-dev 7.58.0-2ubuntu3.8 libcurl4-gnutls-dev 7.58.0-2ubuntu3.8 You should explicitly select one to install. E: Package 'libcurl-dev' has no installation candidate – Nick Jun 10 '20 at 12:14
  • Thank you so much for your help but still after installing libcurl4-openssl-dev i am not able to install V8 getting below error : ERROR: configuration failed for package ‘V8’ * removing ‘/home/nk/V8’ Warning in install.packages : installation of package ‘V8’ had non-zero exit status – Nick Jun 10 '20 at 12:18

3 Answers3

9

You need some system dependencies. V8 depends on the R package curl. To resolve curl's system dependencies, open a terminal via CTRL-Alt-T and use

sudo apt install libcurl4-openssl-dev

V8 itself also has a system dependency which you can resolve after opening a terminal and using

sudo apt install libv8-dev
duckmayr
  • 16,303
  • 3
  • 35
  • 53
1

Try this

Sys.setenv(DOWNLOAD_STATIC_LIBV8=1)
install.packages("V8")

Source :- here

astaines
  • 872
  • 2
  • 9
  • 20
0

I had the same problem and fixed it installing r-cran-curl. It installs all R packages required for Rcurl, including V8, and also all system library dependencies

sudo apt-get update
sudo apt-get -y install r-cran-curl
josep maria porrà
  • 1,198
  • 10
  • 18