Installation of `V8` on 🚩🇨🇳🏹红旗中科 RedFlag Linux (🍥Debian 11)
englianhu opened this issue · 1 comments
englianhu commented
sudo su - -c "R -e \"install.packages('V8', repos = 'https://cran.rstudio.com', lib = '/usr/lib/R/library', dependencies = TRUE, INSTALL_opts = '--no-lock')\""
R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R是自由软件,不带任何担保。
在某些条件下你可以将其自由散布。
用'license()'或'licence()'来看散布的详细条件。
R是个合作计划,有许多人为之做出了贡献.
用'contributors()'来看合作者的详细情况
用'citation()'会告诉你如何在出版物中正确地引用R或R程序包。
用'demo()'来看一些示范程序,用'help()'来阅读在线帮助文件,或
用'help.start()'通过HTML浏览器来看帮助文件。
用'q()'退出R.
> install.packages('V8', repos = 'https://cran.rstudio.com', lib = '/usr/lib/R/library', dependencies = TRUE, INSTALL_opts = '--no-lock')
试开URL’https://cran.rstudio.com/src/contrib/V8_4.2.1.tar.gz'
Content type 'application/x-gzip' length 682947 bytes (666 KB)
==================================================
downloaded 666 KB
* installing *source* package ‘V8’ ...
** 成功将‘V8’程序包解包并MD5和检查
staged installation is only possible with locking
** using non-staged installation
Found C++17 compiler: g++
Using CXXCPP=g++ -std=gnu++17 -E
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)
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: 没有那个文件或目录
compilation terminated.
------------------------------------------------------------------------
ERROR: configuration failed for package ‘V8’
* removing ‘/usr/lib/R/library/V8’
下载的程序包在
‘/tmp/Rtmpix2InG/downloaded_packages’里
更新'.Library'里的HTML程序包列表
Making 'packages.html' ... 做完了。
Warning message:
In install.packages("V8", repos = "https://cran.rstudio.com", lib = "/usr/lib/R/library", :
安装程序包‘V8’时退出狀態的值不是0
englianhu commented
sudo apt install libv8-* libnode-* -y
sudo su - -c "R -e \"install.packages('V8', repos = 'https://cran.rstudio.com', lib = '/usr/lib/R/library', dependencies = TRUE, INSTALL_opts = '--no-lock')\""