简体   繁体   English

如何修复 R 中的“gcc:错误:“/usr/lib64/R/library/Rhdf5lib/lib/libhdf5.a”:没有这样的文件或目录

[英]How to fix 'gcc: error: “/usr/lib64/R/library/Rhdf5lib/lib/libhdf5.a”: No such file or directory' in R

I am trying to install minfi in R:我正在尝试在 R 中安装 minfi:

BiocManager::install("minfi")

but the installation stops during the compiling of HDF5Array with the following errors:但是在编译 HDF5Array 期间安装停止,并出现以下错误:

gcc: error: "/usr/lib64/R/library/Rhdf5lib/lib/libhdf5.a": No such file or 
directory
gcc: error: "/usr/lib64/R/library/Rhdf5lib/lib/libsz.a": No such file or 
directory
make: *** [HDF5Array.so] Error 1
ERROR: compilation failed for package ‘HDF5Array’

I've already installed rhdf5 and Rhdf5lib package plus the files R "can't see" actually exist in the exact directory (/usr/lib64/R/library/Rhdf5lib/lib/) where it supposedly "searches" for them.我已经安装了rhdf5Rhdf5lib package 以及文件 R “看不到”实际上存在于它应该“搜索”的确切目录中(/usr/lib64/R/library/Rhdf5lib/lib/)

ls /usr/lib64/R/library/Rhdf5lib/lib/
libhdf5.a  libhdf5_cpp.a  libsz.a

My R version is 3.6.0, my GCC version is 4.8.5 20150623 (Red Hat 4.8.5-39) and my CentOS distribution is 7.6.1810我的ZE1E1D3D40573127EE9EE0480CAF1283D6Z版本是3.6.0,我的Z32D8B233E3C58A262A0B75872297D8D8D55Z版本是4.8.5 20150623(RED HAT 4.8.5-5-39)

I would appreciate any suggestions.我将不胜感激任何建议。

Thank you.谢谢你。

I met the same problem.我遇到了同样的问题。 http://bioconductor.org/checkResults/release/bioc-LATEST/HDF5Array/ mentions that "HDF5Array(1.12.2)" failed to be installed. http://bioconductor.org/checkResults/release/bioc-LATEST/HDF5Array/提到“HDF5Array(1.12.2)”安装失败。 So wait for improvements.所以等待改进。

There is a way: installing an older version of "HDF5Array".有一种方法:安装旧版本的“HDF5Array”。

url<-"https://bioconductor.org/packages/3.8/bioc/src/contrib/HDF5Array_1.10.1.tar.gz"
install.packages(url,repos=NULL,type="source")
BiocManager::install("minfi")

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编译 Cairo R 包 - /usr/lib64/libcairo.a:添加符号时出错:值错误 - Compile Cairo R package - /usr/lib64/libcairo.a: error adding symbols: Bad value /usr/lib64/libstdc++.so.6:加载R软件包时找不到版本“ CXXABI_1.3.8” - /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found when loading R packages 在库“/usr/lib/R/lib/libR.so”中找不到 rpy2 错误符号“R_tryCatchError” - rpy2 error symbol 'R_tryCatchError' not found in library '/usr/lib/R/lib/libR.so' 将R库从/ usr / lib / R /库迁移到自定义库 - Migrating R library from /usr/lib/R/library to a custom library 安装 R Bioconductor package 时,'lib = "/usr/lib/R/library"' is not writable" - 'lib = "/usr/lib/R/library"' is not writable" while installing R Bioconductor package 错误:/lib64/libstdc++.so.6:安装 R devtools 时在 Centos Linux 7.7 上找不到版本“GLIBCXX_3.4.20” - ERROR: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found on Centos Linux 7.7 while installing R devtools 带有 RCurl 的 sftp 协议 - 最后一步,如何将 libcurl 的 R 路径从 usr/lib 更改为 usr/local/lib - sftp protocol with RCurl - last step, how to change R path to libcurl from usr/lib to usr/local/lib 闪亮的错误:“ / usr / bin / R:第238行:/ usr / lib / R / etc / ldpaths:权限被拒绝” - Shiny error: “/usr/bin/R: line 238: /usr/lib/R/etc/ldpaths: Permission denied” R package 安装:ld:警告:找不到选项“-L/usr/local/gfortran/lib”的目录 - R package installation: ld: warning: directory not found for option '-L/usr/local/gfortran/lib' dyld:库未加载:/usr/local/opt/openblas/lib/libopenblasp-r0.2.20.dylib - dyld: Library not loaded: /usr/local/opt/openblas/lib/libopenblasp-r0.2.20.dylib
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM