问题描述:安装GEOquery 这个R包过程中, 显示依赖的openssl 的R包安装不成功.环境中已经有安装openssl.
错误信息如下:
BiocManager::install(“GEOquery”)
trying URL ‘https://bioconductor.org/packages/3.10/bioc/src/contrib/GEOquery_2.54.1.tar.gz’
Content type ‘application/octet-stream’ length 13720128 bytes (13.1 MB)
==================================================
downloaded 13.1 MB
* installing *source* package ‘openssl’ …
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Using PKG_CFLAGS=
————————— [ANTICONF] ——————————–
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 (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 MESSAGE] —————————
tools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory
1 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
问题解决:
sudo apt install libssl-dev
install.packages(“openssl”)
BiocManager::install(“GEOquery”)
成功.
https://community.rstudio.com/t/i-cant-install-this-package-install-packages-openssl/114052/10