'Not able to install V8 package on ubuntu?

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! :)



Solution 1:[1]

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

Solution 2:[2]

Try this

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

Source :- here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 duckmayr
Solution 2 astaines