我的系统配置
sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-redhat-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_IN.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_IN.UTF-8 LC_COLLATE=en_IN.UTF-8
[5] LC_MONETARY=en_IN.UTF-8 LC_MESSAGES=en_IN.UTF-8
[7] LC_PAPER=en_IN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_IN.UTF-8 LC_IDENTIFICATION=C
[1] stats graphics grDevices utils datasets methods base 我的Bioconductor版本
Bioconductor 3.0版(BiocInstaller 1.16.1)
我的问题
我想安装RforProteomics,我认为它有75个依赖项!根据作者的说明,我做了这个依赖(“RforProteomics”,biocLite =T)这是显示错误消息和安装无法完成。据我所知,只有少数依赖项无法安装,因此出现了错误。
错误消息
rnetCDF.h:1:20: fatal error: netcdf.h: No such file or directory
#include <netcdf.h>
^
compilation terminated.
make: *** [rnetCDF.o] Error 1
ERROR: compilation failed for package ‘mzR’
* removing ‘/usr/lib64/R/library/mzR’
ERROR: dependency ‘mzR’ is not available for package ‘MSnbase’
* removing ‘/usr/lib64/R/library/MSnbase’
ERROR: dependency ‘mzR’ is not available for package ‘xcms’
* removing ‘/usr/lib64/R/library/xcms’
ERROR: dependency ‘mzR’ is not available for package ‘MSGFgui’
* removing ‘/usr/lib64/R/library/MSGFgui’
ERROR: dependency ‘MSnbase’ is not available for package ‘synapter’
* removing ‘/usr/lib64/R/library/synapter’
ERROR: dependency ‘MSnbase’ is not available for package ‘pRoloc’
* removing ‘/usr/lib64/R/library/pRoloc’
ERROR: dependency ‘MSnbase’ is not available for package ‘pRolocdata’
* removing ‘/usr/lib64/R/library/pRolocdata’
ERROR: dependencies ‘MSnbase’, ‘mzR’ are not available for package ‘MSnID’
* removing ‘/usr/lib64/R/library/MSnID’
ERROR: dependency ‘MSnbase’ is not available for package ‘RforProteomics’
* removing ‘/usr/lib64/R/library/RforProteomics’
Error in untar2(tarfile, files, list, exdir, restore_times) :
incomplete block on file
The downloaded source packages are in
‘/tmp/Rtmpnro4j4/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done我在这之后做了什么
我发现rnetCDF是没有安装或者我的系统中没有安装的主要组件之一,我做了install.packages("RNetCDF"),它显示了另一组错误
RNetCDF安装错误
==================================================
downloaded 74 Kb
* installing *source* package ‘RNetCDF’ ...
** package ‘RNetCDF’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -m64 -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m64 -std=gnu99 accepts -g... yes
checking for gcc -m64 -std=gnu99 option to accept ISO C89... none needed
checking for nc_open in -lnetcdf... no
checking for nc_create in -lnetcdf... no
configure: error: netcdf library not found
ERROR: configuration failed for package ‘RNetCDF’
* removing ‘/usr/lib64/R/library/RNetCDF’
The downloaded source packages are in
‘/tmp/Rtmpnro4j4/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("RNetCDF") :
installation of package ‘RNetCDF’ had non-zero exit status我再一次做了install.pacakges("ncdf")。但这也不是安装。
我接下来该怎么办?
请帮帮我
发布于 2017-09-28 14:14:06
请退出R并通过键入libnetcdf-dev安装终端:
$ sudo apt-get install libnetcdf-dev (如果使用Ubuntu)
https://stackoverflow.com/questions/28123159
复制相似问题