问题
R语言中V8包安装失败,报错:
* installing *source* package 'V8' ... ** package 'V8' successfully unpacked and MD5 sums checked ** using staged installation Using PKG_CFLAGS=-I/usr/include/v8 -I/usr/include/v8-3.14 Using PKG_LIBS=-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) 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: No such file or directory compilation terminated. ------------------------------------------------------------------------ ERROR: configuration failed for package 'V8' * removing '/home/liujason/R/x86_64-pc-linux-gnu-library/3.6/V8'
解决方案
安装依赖包:
sudo apt install libv8-dev -y
This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/585.html
Please quote the original link:https://www.liujason.com/article/585.html