Hi All,
I am facing an issue when trying to install the prophet library but haven't found a solution yet via google.
Not sure if anyone countered this issue before? any solution you would like to suggest?
Thank you
install.packages('prophet')
Installing package into ‘/Users/dustinliu/Library/R/3.6/library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘V8’, ‘rstan’
trying URL 'https://cran.rstudio.com/src/contrib/V8_3.4.0.tar.gz'
Content type 'application/x-gzip' length 682079 bytes (666 KB)
==================================================
downloaded 666 KB
trying URL 'https://cran.rstudio.com/src/contrib/rstan_2.21.2.tar.gz'
Content type 'application/x-gzip' length 1152008 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/prophet_0.6.1.tar.gz'
Content type 'application/x-gzip' length 217454 bytes (212 KB)
==================================================
downloaded 212 KB
* installing *source* package ‘V8’ ...
** package ‘V8’ successfully unpacked and MD5 sums checked
** using staged installation
Found C++14 compiler: x86_64-apple-darwin13.4.0-clang++
Using CXXCPP=x86_64-apple-darwin13.4.0-clang++ -std=gnu++14 -E
Using PKG_CFLAGS=-I/usr/local/opt/v8/include -I/usr/local/opt/v8/libexec/include
Using PKG_LIBS=-L/usr/local/opt/v8/libexec -lv8 -lv8_libplatform
-----------------------------[ ANTICONF ]-------------------------------
Configuration failed to find the libv8 engine library. Try installing:
* deb: libv8-dev or libnode-dev (Debian / Ubuntu)
* rpm: v8-devel (Fedora, EPEL)
* brew: v8 (OSX)
* csw: libv8_dev (Solaris)
Alternatively, on Linux (x86_64) or MacOS you can set environment variable:
DOWNLOAD_STATIC_LIBV8=1
to automatically download a static version of libv8.
To use a custom libv8, set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
---------------------------[ ERROR MESSAGE ]----------------------------
<stdin>:1:10: fatal error: 'v8.h' file not found
#include <v8.h>
^~~~~~
1 error generated.
------------------------------------------------------------------------
ERROR: configuration failed for package ‘V8’
* removing ‘/Users/dustinliu/Library/R/3.6/library/V8’
Warning in install.packages :
installation of package ‘V8’ had non-zero exit status
ERROR: dependency ‘V8’ is not available for package ‘rstan’
* removing ‘/Users/dustinliu/Library/R/3.6/library/rstan’
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status
ERROR: dependency ‘rstan’ is not available for package ‘prophet’
* removing ‘/Users/dustinliu/Library/R/3.6/library/prophet’
Warning in install.packages :
installation of package ‘prophet’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/8n/1dlmqswx7ysgv_c_mgxfc7qh0000gp/T/Rtmp8bYbo9/downloaded_packages’