我无法在Rstudio服务器中安装R软件包V8。我没有root特权,但是成功下载了libv8-3.14-dev并在/ include和/ lib中添加了文件,
R CMD INSTALL V8_1.5.tar.gz --configure-vars='INCLUDE_DIR=/home/software/libv8-3.14-dev/usr/include LIB_DIR=/home/software/libv8-3.14-dev/usr/lib'
我可以看到:
Found INCLUDE_DIR and/or LIB_DIR!
Using PKG_CFLAGS=-I/home/software/libv8-3.14-dev/usr/include -I/usr/include/v8-3.14
Using PKG_LIBS=-L/home/software/libv8-3.14-dev/usr/lib -lv8
但是,出现以下错误:
/usr/bin/ld: cannot find -lv8
collect2: error: ld returned 1 exit status
make: *** [V8.so] Error 1
ERROR: compilation failed for package ‘V8’
尽管搜索了一些相关的教程,但我还是被卡住了。
我的R sessionInfo:
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rcpp_1.0.0 SingleCellExperiment_1.3.11 SummarizedExperiment_1.11.6
[4] DelayedArray_0.7.49 BiocParallel_1.15.15 matrixStats_0.54.0
[7] Biobase_2.41.2 GenomicRanges_1.33.14 GenomeInfoDb_1.17.4
[10] IRanges_2.15.18 S4Vectors_0.19.23 BiocGenerics_0.27.1
loaded via a namespace (and not attached):
[1] lattice_0.20-35 bitops_1.0-6 grid_3.5.0 zlibbioc_1.27.0
[5] XVector_0.21.4 Matrix_1.2-14 tools_3.5.0 RCurl_1.95-4.11
[9] yaml_2.2.0 compiler_3.5.0 knitr_1.20 GenomeInfoDbData_1.2.0
谢谢!