docker 里面安装r包
install.packages(“easypackages”)
报错:
Configuration failed to find libgit2 library. Try installing:
- brew: libgit2 (MacOS)
- deb: libgit2-dev (Debian, Ubuntu, etc)
- rpm: libgit2-devel (Fedora, CentOS, RHEL)
解决:
wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/libgit2-devel-0.26.8-1.el7_9.x86_64.rpm
linux rpm安装失败 提示is needed by:
就多加一个 --nodeps 的参数就好了
如:rpm -ivh --nodeps gcc-4.1.2-46.SEL5_4.2.i386.rpm
这就无需依赖其他的安装包了
rpm -ivh --nodeps libgit2-devel-0.26.8-1.el7_9.x86_64.rpm
解决:
https://github.com/r-lib/gert
apt-get install libgit2-dev
install.packages(‘gert’)
install.packages(“easypackages”)
library(‘easypackages’)
unlink("/usr/local/lib/R/site-library/00LOCK-blob", recursive = TRUE)
install.packages(“easypackages”)
install.packages(“easypackages”, dependencies = T)
BiocManager::install(‘gert’)
BiocManager::install(‘scran’)
getwd()
setwd("/root/Rrelyon")
install.packages(“gert_1.0.2.tar.gz”,repos=NULL)
library(‘gert’)
install.packages(‘gert’)
BiocManager::install(‘lgit2’)
remove.packages(“gert”)
install.packages(“gert”, type=“binary”)
wget https://github.com/libgit2/libgit2/releases/download/v1.1.0/libgit2-1.1.0.tar.gz
centos7 git 2.9.5安装-配置:
library(“easypackages”)
报错:fatal error: expat.h: No such file or directory
apt-get install expat-devel
wget http://www.rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/expat-devel-2.1.0-12.el7.x86_64.rpm
bash: rpm: command not found
解决
使用如下命令安装:
apt-get update
apt-get upgrade
apt-get install rpm
报错:Unable to locate package expat-devel:
apt-get install libcurl libcurl-devel
apt-get install perl-ExtUtils-MakeMaker package
library(‘showtext’)
install.packages(‘showtext’)
BiocManager::install(‘showtext’)