我使用 Ubuntu 18.04 已经一周了,刚刚安装了 R 和 R Studio。按照这里的指南操作;https://cran.r-project.org/bin/linux/ubuntu/README.html
我尝试安装所需的软件包,但出现了以下错误;
ERROR: failed to lock directory ‘/home/usr/R/x86_64-pc-linux-gnu-library/3.6’ for modifying
Try removing ‘/home/usr/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-dplyr’
我确实尝试删除上述内容,但没有效果。
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I"/home/serkan/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-t3diwe/r-base-3.6.2=. -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. -I"/home/serkan/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-t3diwe/r-base-3.6.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c feather-read.cpp -o feather-read.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I"/home/usr/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-t3diwe/r-base-3.6.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c feather-types.cpp -o feather-types.o
/usr/lib/R/etc/Makeconf:177: recipe for target 'feather-types.o' failed
我不知道这是什么。将部分代码复制粘贴到 Google 中确实没有找到任何结果。
我的 R-session 信息:
R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu(64-bit)
Running under: Ubuntu 18.04.3 LTS
矩阵产品:默认
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
区域设置:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=da_DK.UTF-8 LC_COLLATE=en_GB.UTF-8 LC_MONETARY=da_DK.UTF-8 LC_MESSAGES=en_GB.UTF-8 LC_PAPER=da_DK.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=da_DK.UTF-8 LC_IDENTIFICATION=C
> attached base packages:
[1] stats graphics grDevices utils datasets methods base
> other attached packages:
[1] devtools_2.2.1 usethis_1.5.1
> loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 rstudioapi_0.10 magrittr_1.5 pkgload_1.0.2 R6_2.4.1 rlang_0.4.3 fansi_0.4.1 tools_3.6.2 pkgbuild_1.0.6 sessioninfo_1.1.1 cli_2.0.1 withr_2.1.2
[13] ellipsis_0.3.0 remotes_2.1.0 assertthat_0.2.1 digest_0.6.23 rprojroot_1.3-2 crayon_1.3.4 processx_3.4.1 callr_3.4.1 fs_1.3.1 ps_1.3.0 testthat_2.3.1 memoise_1.1.0
[25] glue_1.3.1 compiler_3.6.2 desc_1.2.0 backports_1.1.5 prettyunits_1.1.1