R:无法安装ncdf4,错误nc-config… no|解决

无法安装ncdf4,错误nc-config… no:

‘getOption(“repos”)’ replaces Bioconductor standard repositories, see ‘help(“repositories”, package = “BiocManager”)’ for details. Replacement repositories: CRAN: https://cloud.r-project.org
Bioconductor version 3.21 (BiocManager 1.30.25), R 4.5.0 (2025-04-11) Installing package(s) ‘ncdf4’
试开URL’https://cloud.r-project.org/src/contrib/ncdf4_1.24.tar.gz’ Content type ‘application/x-gzip’ length 126032 bytes (123 KB) ================================================== downloaded 123 KB * installing *source* package ‘ncdf4’ … ** this is package ‘ncdf4’ version ‘1.24’ ** 成功将‘ncdf4’程序包解包并MD5和检查 ** using staged installation configure.ac: starting user specified nc-config is /home/joe/path/to/nc-config checking for nc-config… no ———————————————————————————– Error, nc-config not found or not executable. This is a script that comes with the netcdf library, version 4.1-beta2 or later, and must be present for configuration to succeed. If you installed the netcdf library (and nc-config) in a standard location, nc-config should be found automatically. Otherwise, you can specify the full path and name of the nc-config script by passing the –with-nc-config=/full/path/nc-config argument flag to the configure script. For example: ./configure –with-nc-config=/sw/dist/netcdf4/bin/nc-config Special note for R users: ————————- To pass the configure flag to R, use something like this: R CMD INSTALL –configure-args=”–with-nc-config=/home/joe/bin/nc-config” ncdf4 where you should replace /home/joe/bin etc. with the location where you have installed the nc-config script that came with the netcdf 4 distribution.

警告信息:
In install.packages(…) : 安装程序包‘ncdf4’时退出狀態的值不是0

解决:

sudo apt-get update -y

sudo apt-get install -y libnetcdf-dev

本站原创,如若转载,请注明出处:https://www.ouq.net/3807.html

(0)
打赏 微信打赏,为服务器增加50M流量 微信打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量
上一篇 3天前
下一篇 05/25/2024 10:19

相关推荐

  • Rstudio/Rstudio Server enable Copilot-Rstudio Server打开Copilot

    Rstudio Server 默认是关闭Copilot Copilot is turned off by default. Copilot is turned off with copilot-enabled=0 in /etc/rstud…

    R 06/05/2025
    136
  • R_Code: KEGG analysis

    library(clusterProfiler) library(org.Hs.eg.db) # 读取输入数据文件 file_path <- “C:/Users/Lamarck/Desktop/UP_genes_ENSEMBL_ENT…

    R 06/02/2025
    164
  • R_Code:GO and Functional GO

    GO analysis: library(AnnotationDbi) library(org.Hs.eg.db) #基因注释包 library(clusterProfiler) #富集包 # 读取CSV文件 file_path <-…

    R 06/02/2025
    158
  • R_Code:WGCNA and WGCNA_Get_Gene_Length

    library(WGCNA) library(DESeq2) # enableWGCNAThreads(nThreads = 10) # 在处理数据框(data.frame)时,不会自动给将String类型转换成factor类型 optio…

    R 06/02/2025
    159
  • R_Code:RNAseq_GSEA_analysis

    library(clusterProfiler) # GSEA 和富集分析主力包 library(org.Hs.eg.db) # 人类注释数据库(ENTREZID 与 SYMBOL 等 ID 转换) library(enrichplot) …

    R 06/02/2025
    152