我的R语言版本是目前最新的4.0,用bioconductor安装DiffBind。
BiocManager::install("DiffBind")#需要先安装BiocManager
出现报错:
** using staged installation
Found C++14 compiler: x86_64-conda-linux-gnu-c++
Using CXXCPP=x86_64-conda-linux-gnu-c++ -std=gnu++14 -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: No such file or directory
compilation terminated.
------------------------------------------------------------------------
ERROR: configuration failed for package ‘V8’
* removing ‘/software/miniconda3/lib/R/library/V8’
Warning message:
In install.packages("V8_3.4.0.tar.gz", repos = NULL) :
安装程序包‘V8_3.4.0.tar.gz’时退出狀態的值不是0
按照报错要求安装libv8-dev和libudev-dev
sudo apt-get install libudev-dev
sudo apt-get install libv8-dev
按照报错要求回到R安装V8
install.packages("V8")
成功后继续安装DiffBind
BiocManager::install("DiffBind")
又安装失败
Warning messages:
1: In install.packages(...) :
installation of package ‘systemPipeR’ had non-zero exit status
2: In install.packages(...) :
installation of package ‘DiffBind’ had non-zero exit status
那我根据报错要求先安装缺失R包systemPipeR
BiocManager::install("systemPipeR")
又报错
Error in loadNamespace(j <- imp[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘genefilter’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
停止执行
ERROR: lazy loading failed for package ‘systemPipeR’
* removing ‘/software/miniconda3/lib/R/library/systemPipeR’
The downloaded source packages are in
‘/tmp/Rtmp5jqOb9/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages(...) :
installation of package ‘systemPipeR’ had non-zero exit status
原来是缺失R包genefilter,那我安装genefilter
BiocManager::install("genefilter")
然后就可以安装systemPipeR啦
BiocManager::install("systemPipeR")
DiffBind也可以安装啦
BiocManager::install("DiffBind")
小白成功啦,撒花~~~
* DONE (DiffBind)
The downloaded source packages are in
‘/tmp/Rtmp5jqOb9/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
网友评论