1. 安装

> source("http://bioconductor.org/biocLite.R")
Bioconductor version 3.6 (BiocInstaller 1.28.0), ?biocLite for help
A new version of Bioconductor is available after installing the most recent version of R; see http://bioconductor.org/install
# 设置国内华科镜像
> options(BioC_mirror="http://mirrors.ustc.edu.cn/bioc/")
> biocLite("pathview")

2. 安装报错显示

缺一下软件,需要在ubuntu下的系统进行安装,而不是实用R来安装补充

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)* rpm: libcurl-devel (Fedora, CentOS, RHEL)* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/curl’
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:* deb: libssl-dev (Debian, Ubuntu, etc)* rpm: openssl-devel (Fedora, CentOS, RHEL)* csw: libssl_dev (Solaris)* brew: openssl@1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘openssl’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/openssl’
* installing *source* package ‘XML’ ...
** package ‘XML’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for sed... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/XML’
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/httr’
ERROR: dependency ‘XML’ is not available for package ‘KEGGgraph’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/KEGGgraph’
ERROR: dependency ‘httr’ is not available for package ‘KEGGREST’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/KEGGREST’
ERROR: dependencies ‘KEGGgraph’, ‘XML’, ‘KEGGREST’ are not available for package ‘pathview’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/pathview’The downloaded source packages are in‘/tmp/RtmphFHfs8/downloaded_packages’
installation path not writeable, unable to update packages: backports, bindr, bindrcpp, data.table, dplyr, Formula, highr, htmlTable,htmlwidgets, knitr, munsell, pillar, purrr, Rcpp, reshape2, rlang, stringi, stringr, tibble, tidyr, utf8, viridis, yaml, cluster,foreign, MASS, Matrix, mgcv, nlme, survival
Warning messages:
1: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘curl’ had non-zero exit status
2: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘openssl’ had non-zero exit status
3: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘XML’ had non-zero exit status
4: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘httr’ had non-zero exit status
5: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘KEGGgraph’ had non-zero exit status
6: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘KEGGREST’ had non-zero exit status
7: In install.packages(pkgs = doing, lib = lib, ...) :installation of package ‘pathview’ had non-zero exit status

3. 安装系统依赖包,实用R来安装,报错

> install.packages("XML")
Installing package into ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/XML_3.98-1.11.tar.gz'
Content type 'application/x-gzip' length 1599533 bytes (1.5 MB)
==================================================
downloaded 1.5 MB* installing *source* package ‘XML’ ...
** package ‘XML’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for sed... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
* removing ‘/home/toucan/R/x86_64-pc-linux-gnu-library/3.4/XML’
Warning in install.packages :installation of package ‘XML’ had non-zero exit statusThe downloaded source packages are in‘/tmp/RtmphFHfs8/downloaded_packages’

4. 实用ubuntu下进行安装,最终所有安装成功

解决方法:
1. 安装

$sudo apt-get install r-cran-xml

无效报错依旧

  1. 安装
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libxml2-dev# 或者
sudo apt-get install libcurl4-openssl-dev libxml2-dev
  1. 加载库成功,说明缺上面的包,问题已解决
 library(XML)
  1. 继续根据报错安装
sudo apt-get install libssl-dev
  1. 最终安装成功
library("pathview")

0056-【R-bioconductor】-KEGG通路分析R包安装失败解决-pathview相关推荐

  1. VRPM包安装失败解决方案:had non-zero exit status

    VRPM包安装失败解决方案:had non-zero exit status 目录 VRPM包安装失败解决方案:had non-zero exit status #VRPM包安装 #找到VRPM包的文 ...

  2. ORA-12569: TNS: 包校验和失败解决方法一例

    ORA-12569: TNS: 包校验和失败解决方法一例 参考文章: (1)ORA-12569: TNS: 包校验和失败解决方法一例 (2)https://www.cnblogs.com/1976zj ...

  3. 王者荣耀s22服务器维修,王者荣耀资源包升级失败 S22资源包升级失败解决方法...

    王者荣耀1月14日资源包升级失败是什么导致的?如何才能解决这个问题?今天版本更新很多人都遇到了各种各样的问题,18183小编将资源包升级失败等问题进行了汇总,会在下面全部分享给大家,告诉玩家们正确的解 ...

  4. r语言npsurv_10生存分析+R语言代码surv.pdf

    10生存分析R语言代码surv 生存函数和危险函数 生存分析数据的 Cox 回归模型 生存分析 R 软件陪同 吴喜之 December 20, 2014 . . . . . . . . . . . . ...

  5. 【问题记录1:R-ClusterProfiler相关包安装失败】

    在我以为ClusterProfiler已经安装好的时候,又遇到了一些问题. 后遂记录一下这些问题和解决方法. 报错1: BiocManager::install("org.Hs.eg.db& ...

  6. Deb包安装如何解决依赖问题

    在 Unbuntu 系统上安装各种软件时,经常会遇到各种各样的依赖问题而导致安装无法进行.我作为一枚 Linux 小白正深受其苦,经常越弄越乱导致不得不重装系统(哭).通常来说,这类问题可以通过 更换 ...

  7. rpm安装mysql报错_【CentOS-65】通过rpm包安装mysql57解决了server报错和mysqld启动报错的问题...

    [CentOS-6.5]通过rpm包安装mysql5.7(解决了server包安装报错和mysqld启动报错的问题) 一.官网下载rpm包二.安装 wget三.检查是否已有数据库四.在linux在解压 ...

  8. s22服务器未响应,王者荣耀资源包升级失败怎么办_王者荣耀S22资源包升级失败解决办法_玩游戏网...

    <王者荣耀>资源包升级失败怎么办?应该如何解决呢?对此,很多小伙伴还不是很了解.那么接下来,就跟随玩游戏网的小编一起继续往下看,大家一定不要错过哦! 资源包升级失败怎么办: 1.更新卡住4 ...

  9. maven依赖包下载失败解决办法

    原文:https://www.cnblogs.com/shihaiming/p/6079924.html maven依赖包下载失败 比如:Missing artifact org.codehaus.j ...

最新文章

  1. RabbitMQ 入门系列(2)— 生产者、消费者、信道、代理、队列、交换器、路由键、绑定、交换器
  2. 在Ubuntu 14.04 64bit上安装Markdown编辑器Remarkble
  3. U盘容量显示错误修正
  4. 现代软件工程 第一章 四则运算的实现--栈实现
  5. 网页设计中的背景流行趋势是什么?
  6. 用Python显示灰度图像的灰度直方图
  7. 计算机睡眠断网,win7睡眠不断网设置方法汇总
  8. 230页10万字智慧城管系统整体建设方案
  9. 计算机专业自我简介50字,2021年个人简历自我评价50字
  10. matlab 用循环求和,matlab求和不用循环
  11. Leetcode 441. 排列硬币(Python)
  12. 电路设计中如何解决电压跌落
  13. vue3+ts+vite后台管理模板
  14. 用python爬取头条文章_AI第四课:Python爬取今日头条文章
  15. 蛋花花:人工智能写的诗版权到底算谁的
  16. 自动化测试之:猴子测试Windows端GUI-Monkey实现
  17. 湖南湘中计算机学校历任校长,2005学年度湖南省中等职业学校.doc
  18. 【bzoj4887】[Tjoi2017]可乐 矩阵乘法
  19. 金三银四铜五铁六,面试得做好这个准备
  20. 图解经典电路之OCL差分功放-三极管分立器件电路分析

热门文章

  1. python自动抽奖_「懒人必备」用Python自动抽奖
  2. 不知道如何做自媒体怎样学习?
  3. Java获取请求头、参数、路径、
  4. Nuvoton NK-980IOT开发板 u-boot 编译
  5. aBIOTECH | 中山大学徐锦课题组综述 scATAC-seq 数据分析方法
  6. C++第二阶段(跨平台通信)-卢嘉文-专题视频课程
  7. 安科瑞水电预付费云平台在大型连锁超市的应用
  8. 最佳实践-SQL语法校验
  9. 趣拍CEO王强宇演讲实录
  10. 微信公众平台对接C#-向微信服务器发送消息