安装R包ChemmineOB失败:找不到openbabel/obutil.h文件求助
安装ChemmineOB时遇到头文件找不到的问题
环境信息
- 已成功安装BiocManager和ChemmineR
- 通过brew安装OpenBabel 3.1.0,头文件路径:
~/local/include/openbabel-2.0/openbabel/ - R版本:4.4.0
- Bioconductor版本:3.19
执行的安装代码
if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("ChemmineOB")
报错信息
ChemmineOB.cpp:1569:10: fatal error: 'openbabel/obutil.h' file not found #include <openbabel/obutil.h> ^~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [ChemmineOB.o] Error 1
额外输出信息
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details. Replacement repositories: CRAN: https://cran.rstudio.com/ Bioconductor version 3.19 (BiocManager 1.30.23), R 4.4.0 (2024-04-24) Installing package(s) 'ChemmineOB' Warning: downloaded length 0 != reported length 11310Warning: cannot open URL 'https://bioconductor.org/packages/3.19/data/annotation/bin/macosx/big-sur-arm64/contrib/4.4/PACKAGES.rds': HTTP status was '404 Not Found'Warning: downloaded length 0 != reported length 11310Warning: cannot open URL 'https://bioconductor.org/packages/3.19/data/annotation/bin/macosx/big-sur-arm64/contrib/4.4/PACKAGES.gz': HTTP status was '404 Not Found'Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ChemmineOB’
疑问
明明obutil.h存在于指定路径中,但编译时系统无法识别该文件,该如何解决?
内容的提问来源于stack exchange,提问作者Jrbald
相关产品推荐
相关产品推荐

