使用R脚本克隆了一个存储库,其中包括最初在Windows计算机上使用的包含库的目录:
sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Portugal.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.3 htmltools_0.5.0 tools_4.0.3 yaml_2.2.1 rmarkdown_2.5
[6] knitr_1.30 xfun_0.19 digest_0.6.27 rlang_0.4.8 evaluate_0.14 然后,面临着几个问题,比如有一个版本3或一些包执行失败。管理Debian设置和重新安装这些包解决了这些问题。
最后,当其中一个脚本正在运行时,会出现当前的情况:
install.packages(pkgs = 'TSdist', lib = .libPaths()[1], dependencies = T)
trying URL 'https://cloud.r-project.org/src/contrib/TSdist_3.7.tar.gz'
Content type 'application/x-gzip' length 182707 bytes (178 KB)
==================================================
downloaded 178 KB
* installing *source* package ‘TSdist’ ...
** package ‘TSdist’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c EDR.c -o EDR.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c EDRnw.c -o EDRnw.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c ERP.c -o ERP.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c ERPnw.c -o ERPnw.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c LCSS.c -o LCSS.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c LCSSnw.c -o LCSSnw.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-fhxXXR/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c registerDynamicSymbol.c -o registerDynamicSymbol.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib
-Wl,-Bsymbolic-functions -Wl,-z,relro -o TSdist.so EDR.o EDRnw.o ERP.o ERPnw.o LCSS.o LCSSnw.o registerDynamicSymbol.o -L/usr/lib/R/lib -lR
installing to /home/nmorais/deployment/euniversal-clustering/libraries/00LOCK-TSdist/00new/TSdist/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: object ‘getWindowsHandle’ is not exported by 'namespace:utils'
Execution halted
ERROR: lazy loading failed for package ‘TSdist’
* removing ‘/home/nmorais/deployment/euniversal-clustering/libraries/TSdist’
The downloaded source packages are in
‘/tmp/RtmpwJbt3F/downloaded_packages’
Warning message: In install.packages(pkgs = "TSdist", lib = .libPaths()[1], dependencies = T) :
installation of package ‘TSdist’ had non-zero exit status伪装的机器给了我们:
sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
>
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] 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] compiler_4.0.4 tools_4.0.4 提前感谢!
发布于 2021-05-28 04:12:56
听起来您似乎做了一些几乎肯定会导致问题的事情:您将一个包库从Windows机器转移到了Ubuntu机器上。这些系统太不同了,不能正常工作。
你应该做的是在Windows机器上记录所有安装的软件包的名称,然后在Ubuntu上安装这些软件包,不要复制它们。
我不知道你在Ubuntu上有哪些包是乱七八糟的,所以我建议你卸载所有贡献的包,然后重新安装所有的包。它不只是TSdist:它不使用getWindowsHandle。这是TSdist正在使用的其他包。
https://stackoverflow.com/questions/67727418
复制相似问题