美文网首页
inferCNV centos服务器安装失败解决

inferCNV centos服务器安装失败解决

作者: Kevin_Hhui | 来源:发表于2021-04-11 10:31 被阅读0次

前言

昨天在安装inferCNV的包时频繁报错,尝试了很多方式最终解决,现将解决方法记录如下

服务器版本

CentOS Linux release 7.9.2009 (Core)

其实我之前在Ubuntu下安装inferCNV一下子就搞定了,这次弄了比较久多少是因为我对centos不太熟悉)。

正文

安装inferCNV

install.packages("rjags")
if (!requireNamespace("BiocManager", quietly = TRUE))
     install.packages("BiocManager")
BiocManager::install("infercnv")

这时候会报错提示缺少JAGS库

方法一 编译安装

# 手动安装BLAS和LAPACK不推荐
# yum install blas-devel lapack-devel
tar xf JAGS-4.3.0.tar.gz 
cd JAGS-4.3.0
./configure --libdir=/usr/local/lib64
make -j 20 && make install 

方法二 下载相关安装包,手动安装

#Download latest springdale-computational rpm from
http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/

##下载JAGS rpm
wget http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/jags4-4.3.0-67.1.x86_64.rpm

##安装JAGS
rpm -ivh jags4-4.3.0-67.1.x86_64.rpm

##查看安装是否成功
rpm -qa |grep jags4
### jags4-4.3.0-67.1.x86_64

##安装inferCNV缺少的依赖包rjags
install.packages("rjags")

##最后安装inferCNV
if (!requireNamespace("BiocManager", quietly = TRUE))
     install.packages("BiocManager")
BiocManager::install("infercnv")

方法3 安装JAGS

## You can test this capability in a unix shell by typing
$ pkg-config --modversion jags

## If this does not detect your JAGS installation then it means that the
## file 'jags.pc' is not on the search path of pkg-config. In this case
## you should add it by setting the environment variable PKG_CONFIG_PATH.
$ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig # before installing rjags.

安装成功 搞定

相关文章

网友评论

      本文标题:inferCNV centos服务器安装失败解决

      本文链接:https://www.haomeiwen.com/subject/ovcakltx.html