sneumann / mzR

This is the git repository matching the Bioconductor package mzR: parser for netCDF, mzXML, mzData and mzML files (mass spectrometry data)
40 stars 26 forks source link

Fails to install in lib path with space #199

Open stanstrup opened 5 years ago

stanstrup commented 5 years ago

Installing from source fails when there are space in the lib path. It looks like there are missing brackets somewhere causing this. If I remove the space in the lib path the it works.

The output is a bit jumpled but below is the last before it fails. Note the "QC4Metabolomics/Shiny App" in the path is in many places cut at the space.

abolomics/Shiny App/packrat/lib/x86_64-pc-linux-gnu/3.6.0/Rhdf5lib/lib/libsz.a -lz -L/usr/local/lib/R/lib -lR\ng++: error: /srv/shiny-server/QC4Metabolomics/Shiny: No such file or directory\ng++: error: App/packrat/lib/x86_64-pc-linux-gnu/3.6.0/Rhdf5lib/lib/libhdf5_cpp.a: No such file or directory\ng++: error: /srv/shiny-server/QC4Metabolomics/Shiny: No such file or directory\ng++: error: App/packrat/lib/x86_64-pc-linux-gnu/3.6.0/Rhdf5lib/lib/libhdf5.a: No such file or directory\ng++: error: /srv/shiny-server/QC4Metabolomics/Shiny: No such file or directory\ng++: error: App/packrat/lib/x86_64-pc-linux-gnu/3.6.0/Rhdf5lib/lib/libsz.a: No such file or directory\n/usr/local/lib/R/share/make/shlib.mk:6: recipe for target 'mzR.so' failed\nmake: *** [mzR.so] Error 1\nERROR: compilation failed for package 'mzR'\n* removing '/srv/shiny-server/QC4Metabolomics/Shiny App/packrat/lib/x86_64-pc-linux-gnu/3.6.0/mzR'"
The command '/bin/sh -c Rscript "dummy.R" --bootstrap-packrat' returned a non-zero code: 1

Rhdf5lib had the same issue and a fix was made here: https://github.com/grimbough/Rhdf5lib/commit/6f458fe913147ef42b79ac91133bb856c12c9129