I am trying to install R-package prophet using these commands:
install.packages("prophet", repos = "http://cran.r-project.org ")
and
install.packages("prophet")
I get this error:
<stdin>:1:10: fatal error: v8.h: No such file or directory
compilation terminated.
------------------------------------------------------------------------
ERROR: configuration failed for package ‘V8’
* removing ‘/home/wsuser/R/x86_64-redhat-linux-gnu-library/3.6/V8’
Warning in install.packages :
installation of package ‘V8’ had non-zero exit status
ERROR: dependency ‘V8’ is not available for package ‘rstan’
* removing ‘/home/wsuser/R/x86_64-redhat-linux-gnu-library/3.6/rstan’
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status
ERROR: dependency ‘rstan’ is not available for package ‘prophet’
* removing ‘/home/wsuser/R/x86_64-redhat-linux-gnu-library/3.6/prophet’
Warning in install.packages :
installation of package ‘prophet’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpWvha5B/downloaded_packages’
When I try to install rstan, I get the same error. But I already have the os library V8 installed on the RHEL. Please let me know what am I missing?
Thank you