我无法在R中安装任何软件包

时间:2020-04-05 11:21:37

标签: r installation ubuntu-18.04 bioconductor install.packages

我最近有一台新的Lenovo IdeaPad笔记本电脑,我叫dual-booting Windows 10 and Ubuntu 18.04。我仍在努力在新机器上配置evreything。我计划将用于bioinformatics的工作。

所以我的问题是使用R时,我无需等待3-4个小时以上就无法安装任何软件包。我跑了

``` install.packages("dplyr")```

,我看到了这样的输出块。

g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DRCPP_DEFAULT_INCLUDE_CALL=false -DCOMPILING_DPLYR -DRCPP_USING_UTF8_ERROR_STRING -DRCPP_USE_UNWIND_PROTECT -DBOOST_NO_AUTO_PTR  -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/BH/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/plogr/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-V28x5H/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DRCPP_DEFAULT_INCLUDE_CALL=false -DCOMPILING_DPLYR -DRCPP_USING_UTF8_ERROR_STRING -DRCPP_USE_UNWIND_PROTECT -DBOOST_NO_AUTO_PTR  -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/BH/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/plogr/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-V28x5H/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c address.cpp -o address.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DRCPP_DEFAULT_INCLUDE_CALL=false -DCOMPILING_DPLYR -DRCPP_USING_UTF8_ERROR_STRING -DRCPP_USE_UNWIND_PROTECT -DBOOST_NO_AUTO_PTR  -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/BH/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/plogr/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-V28x5H/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c api.cpp -o api.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DRCPP_DEFAULT_INCLUDE_CALL=false -DCOMPILING_DPLYR -DRCPP_USING_UTF8_ERROR_STRING -DRCPP_USE_UNWIND_PROTECT -DBOOST_NO_AUTO_PTR  -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/BH/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/plogr/include" -I"/home/dakarai19/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-V28x5H/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c arrange.cpp -o arrange.o

当我搜索它们时,看到它们是要编译的吗?但是我以前运行Windows 10的笔记本电脑上从未遇到过类似的问题,并且软件包安装绝对花了3分钟。有什么我可以解决的吗?

我还找到了一个与binary installation有关的答案。我通常使用来管理和安装软件包,因此对我来说可能会变得非常复杂。尝试使用BiocManager进行安装时,我遇到了同样的问题。

x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.4 LTS

Matrix products: default BLAS:  
/usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK:
/usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
LC_TIME=en_US.UTF-8         [4] LC_COLLATE=en_US.UTF-8    
LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8     [7]
LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C    
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=C       

attached base packages: [1] stats     graphics  grDevices utils    
datasets  methods   base     

loaded via a namespace (and not attached): [1] BiocManager_1.30.10
compiler_3.6.3      tools_3.6.3```

请帮助一位困惑的生物学家。 谢谢!

0 个答案:

没有答案