安装velocyto.R报错,找不到boost_filesystem lboost_system
install_github("velocyto-team/velocyto.R")
Downloading GitHub repo velocyto-team/velocyto.R@HEAD
Skipping 1 packages not available: pcaMethods
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/tmp/RtmpeYSBpL/remotes275f14f74b714/velocyto-team-velocyto.R-83e6ed9/DESCRIPTION’ (360ms)
─ preparing ‘velocyto.R’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘velocyto.R_0.6.tar.gz’
* installing *source* package ‘velocyto.R’ ...
** using staged installation
** libs
using C++ compiler: ‘x86_64-conda-linux-gnu-c++ (conda-forge gcc 13.2.0-3) 13.2.0’
using C++11
x86_64-conda-linux-gnu-c++ -std=gnu++11 -I"/public/home/HeShuai/miniconda3/lib/R/include" -DNDEBUG -I'/public/home/HeShuai/miniconda3/lib/R/library/Rcpp/include' -I'/public/home/HeShuai/miniconda3/lib/R/library/RcppArmadillo/include' -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /public/home/HeShuai/miniconda3/include -I/public/home/HeShuai/miniconda3/include -Wl,-rpath-link,/public/home/HeShuai/miniconda3/lib -fopenmp -fpic -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /public/home/HeShuai/miniconda3/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1700316003380/work=/usr/local/src/conda/r-base-4.3.2 -fdebug-prefix-map=/public/home/HeShuai/miniconda3=/usr/local/src/conda-prefix -c RcppExports.cpp -o RcppExports.o
x86_64-conda-linux-gnu-c++ -std=gnu++11 -I"/public/home/HeShuai/miniconda3/lib/R/include" -DNDEBUG -I'/public/home/HeShuai/miniconda3/lib/R/library/Rcpp/include' -I'/public/home/HeShuai/miniconda3/lib/R/library/RcppArmadillo/include' -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /public/home/HeShuai/miniconda3/include -I/public/home/HeShuai/miniconda3/include -Wl,-rpath-link,/public/home/HeShuai/miniconda3/lib -fopenmp -fpic -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /public/home/HeShuai/miniconda3/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1700316003380/work=/usr/local/src/conda/r-base-4.3.2 -fdebug-prefix-map=/public/home/HeShuai/miniconda3=/usr/local/src/conda-prefix -c points_within.cpp -o points_within.o
x86_64-conda-linux-gnu-c++ -std=gnu++11 -I"/public/home/HeShuai/miniconda3/lib/R/include" -DNDEBUG -I'/public/home/HeShuai/miniconda3/lib/R/library/Rcpp/include' -I'/public/home/HeShuai/miniconda3/lib/R/library/RcppArmadillo/include' -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /public/home/HeShuai/miniconda3/include -I/public/home/HeShuai/miniconda3/include -Wl,-rpath-link,/public/home/HeShuai/miniconda3/lib -fopenmp -fpic -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /public/home/HeShuai/miniconda3/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1700316003380/work=/usr/local/src/conda/r-base-4.3.2 -fdebug-prefix-map=/public/home/HeShuai/miniconda3=/usr/local/src/conda-prefix -c routines.cpp -o routines.o
x86_64-conda-linux-gnu-c++ -std=gnu++11 -shared -L/public/home/HeShuai/miniconda3/lib/R/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/public/home/HeShuai/miniconda3/lib -Wl,-rpath-link,/public/home/HeShuai/miniconda3/lib -L/public/home/HeShuai/miniconda3/lib -o velocyto.R.so RcppExports.o points_within.o routines.o -lboost_filesystem -lboost_system -lstdc++ -llapack -lblas -fopenmp -lgfortran -lm -lquadmath -L/public/home/HeShuai/miniconda3/lib/R/lib -lR
/public/home/HeShuai/miniconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/13.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lboost_filesystem: No such file or directory
/public/home/HeShuai/miniconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/13.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lboost_system: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [/public/home/HeShuai/miniconda3/lib/R/share/make/shlib.mk:10: velocyto.R.so] Error 1
ERROR: compilation failed for package ‘velocyto.R’
* removing ‘/public/home/HeShuai/miniconda3/lib/R/library/velocyto.R’
Warning message:
In i.p(...) :
installation of package ‘/tmp/RtmpeYSBpL/file275f14fd9bfc9/velocyto.R_0.6.tar.gz’ had non-zero exit status
###-----------------------------------------解决方法-----------------------------------------------###
conda install anaconda::libboost
即可结局上述报错
标签:lboost,lib,miniconda3,system,HeShuai,conda,filesystem,home,public From: https://www.cnblogs.com/shuaihe/p/17948201