解決了2天,坑點滿滿,哭死😭
解決R語言的依賴
安裝Seurat
直接install.packages('Seurat')
安裝會報錯
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘Cairo’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘igraph’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘SeuratObject’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘leiden’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘mutoss’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘qqconf’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘hdf5r’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘ggrastr’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘Seurat’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘Rfast’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘Rfast2’ had non-zero exit status”
Warning message in install.packages("Seurat", dependencies = T, source = T):
“installation of package ‘metap’ had non-zero exit status”
Updating HTML index of packages in '.Library'
Making 'packages.html' ...
done
簡而言之意思就是需要提前安裝Cairo
等東西
解決辦法:
開啟自己的conda環境,輸入如下命令
# 安裝Cairo
conda install -c r r-cairo