记录自己Ubuntu下R语言安装GEOquery失败以及解决办法
Rstudio输入:
BiocManager::install('GEOquery')
提示错误:
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/xl/R/x86_64-pc-linux-gnu-library/4.0/httr’
ERROR: dependencies ‘httr’, ‘xml2’ are not available for package ‘GEOquery’
* removing ‘/home/xl/R/x86_64-pc-linux-gnu-library/4.0/GEOquery’
The downloaded source packages are in
‘/tmp/RtmpJVhzoh/downloaded_packages’
Warning messages:
1: In install.packages(...) :
installation of package ‘curl’ had non-zero exit status
2: In install.packages(...) :
installation of package ‘xml2’ had non-zero exit status
3: In install.packages(...) :
installation of package ‘httr’ had non-zero exit status
4: In install.packages(...) :
installation of package ‘GEOquery’ had non-zero exit status
解决方法:
终端输入
sudo apt-get install libxml2 libxml2-dev libcurl4-gnutls-dev