Ubuntu17.10 Miniconda环境下安装DESeq2报错求助(已装依赖)
Hey there, let's work through this DESeq2 installation snag you're hitting. Since you've already got libxml2-dev and libcurl4-openssl-dev installed, and you've located the libcurl.pc file, here are some focused fixes to try:
Point R directly to your system's libcurl config file
Miniconda environments sometimes prioritize their own libraries over system-installed ones, which might be why R isn't picking up your existing libcurl setup. In your R session, set thePKG_CONFIG_PATHto the directory containinglibcurl.pcfirst (replace the path below with your actual directory if it's different):Sys.setenv(PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig/") # Then use BiocManager (the replacement for biocLite) to install if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("DESeq2")Skip source compilation entirely with Conda's pre-built package
Compiling from source is often where dependency issues pop up. Instead, install the Conda-maintained version of DESeq2 directly in your environment—this handles all dependencies automatically:conda install -c bioconda bioconductor-deseq2Ensure your Conda environment has proper compilation tools
If you still want to install via BiocManager, make sure your Conda environment has the GCC/G++ compilers needed to build R packages from source:conda install gcc_linux-64 gxx_linux-64After installing these, restart your R session and try the DESeq2 installation again.
Check R version compatibility
Ubuntu 17.10 ships with an older R version, and DESeq2 has strict R version requirements (e.g., newer DESeq2 versions need R ≥ 4.0). Try upgrading R in your Conda environment to a compatible version first:conda install r-base=4.1 # Adjust version based on DESeq2's requirementsThen proceed with the BiocManager installation.
内容的提问来源于stack exchange,提问作者cpat

