Проблема в установке зависимости "дайджест" для RStudio - PullRequest
0 голосов
/ 24 января 2020

Я пытался установить tidyverse, но во многих других пакетах, таких как прогноз, и у меня продолжает возникать та же проблема, связанная с «дайджестом» зависимости.

С тех пор, когда я сталкиваюсь с ошибкой, все другие пакеты не устанавливайте правильно.

Основная проблема, кажется, здесь g cc: ошибка: aes.o: Нет такого файла или каталога , но я не понимаю, что это такое. о

if(!require("tidyverse"))install.packages("tidyverse")
Loading required package: tidyverse
there is no package called ‘tidyverse’Installing package into ‘/home/LU/fmarchioro001/R/MRO/3.4.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘htmltools’, ‘digest’, ‘knitr’, ‘rmarkdown’, ‘ggplot2’, ‘reprex’

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45408  100 45408    0     0  36462      0  0:00:01  0:00:01 --:--:-- 36472
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  118k  100  118k    0     0  84112      0  0:00:01  0:00:01 --:--:-- 84168
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  634k  100  634k    0     0   142k      0  0:00:04  0:00:04 --:--:--  150k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2044k  100 2044k    0     0   246k      0  0:00:08  0:00:08 --:--:--  289k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2161k  100 2161k    0     0   369k      0  0:00:05  0:00:05 --:--:--  458k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22776  100 22776    0     0  20019      0  0:00:01  0:00:01 --:--:-- 20031
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 61647  100 61647    0     0  49020      0  0:00:01  0:00:01 --:--:-- 49042
* installing *source* package ‘digest’ ...
** package ‘digest’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c aes.c -o aes.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c crc32.c -o crc32.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c digest.c -o digest.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c init.c -o init.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c md5.c -o md5.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c pmurhash.c -o pmurhash.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c raes.c -o raes.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c sha1.c -o sha1.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c sha2.c -o sha2.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c sha256.c -o sha256.o
gcc -std=gnu99 -I/opt/microsoft/rclient/3.4.3/runtime/R/include -DNDEBUG   -I/usr/local/include -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -g -O2  -c xxhash.c -o xxhash.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o digest.so aes.o crc32.o digest.o init.o md5.o pmurhash.o raes.o sha1.o sha2.o sha256.o xxhash.o
**gcc: error: aes.o: No such file or directory
make: *** [digest.so] Error 1
ERROR: compilation failed for package ‘digest’
* removing ‘/home/LU/fmarchioro001/R/MRO/3.4.3/digest’
Warning in install.packages/opt/microsoft/rclient/3.4.3/runtime/R/share/make/shlib.mk:6: recipe for target 'digest.so' failed**
 :
  installation of package ‘digest’ had non-zero exit status

Кроме того, я использую версию R 3.4.3 на онлайн-платформе. Может ли это быть проблема совместимости?

sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS

Matrix products: default
BLAS: /opt/microsoft/rclient/3.4.3/runtime/R/lib/libRblas.so
LAPACK: /opt/microsoft/rclient/3.4.3/runtime/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        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               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] RevoUtilsMath_10.0.1 RevoUtils_10.0.7     RevoMods_11.0.0      MicrosoftML_9.3.0    RevoScaleR_9.3.0     lattice_0.20-35      rpart_4.1-11        

loaded via a namespace (and not attached):
 [1] compiler_3.4.3         R6_2.2.2               tools_3.4.3            CompatibilityAPI_1.1.0 codetools_0.2-15       grid_3.4.3             mrupdate_1.0.1        
 [8] iterators_1.0.9        foreach_1.4.5          jsonlite_1.5          

Спасибо

1 Ответ

0 голосов
/ 24 января 2020

Вы пытались вручную установить пакет "дайджест"?

install.packages("digest")

Установите пакет дайджеста и повторите попытку, потому что у меня была похожая проблема, и она была решена, когда я вручную установил пакет "дайджест".

...