Не удается установить пакет "vcd" на сервере RStudio - PullRequest
0 голосов
/ 28 мая 2018

Я пытаюсь установить "vcd" на RStudio Server с помощью Amazon VPC (тип istance - t2.micro) и получить следующее сообщение:

Installing package into ‘/home/gogamd/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘lmtest’

trying URL 'https://cran.rstudio.com/src/contrib/lmtest_0.9-36.tar.gz'
Content type 'application/x-gzip' length 184216 bytes (179 KB)
==================================================
downloaded 179 KB

trying URL 'https://cran.rstudio.com/src/contrib/vcd_1.4-4.tar.gz'
Content type 'application/x-gzip' length 968929 bytes (946 KB)
==================================================
downloaded 946 KB

* installing *source* package ‘lmtest’ ...
** package ‘lmtest’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG   -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c init.c -o init.o
gfortran -m64   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules  -c pan.f -o pan.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/gfortran/modules’ [-Wmissing-include-dirs]
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o lmtest.so init.o pan.o -lgfortran -lm -lquadmath -L/usr/lib64/R/lib -lR
/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: cannot find -lquadmath
collect2: error: ld returned 1 exit status
make: *** [lmtest.so] Error 1
ERROR: compilation failed for package ‘lmtest’
* removing ‘/home/gogamd/R/x86_64-redhat-linux-gnu-library/3.4/lmtest’
Warning in install.packages :
  installation of package ‘lmtest’ had non-zero exit status
ERROR: dependency ‘lmtest’ is not available for package ‘vcd’
* removing ‘/home/gogamd/R/x86_64-redhat-linux-gnu-library/3.4/vcd’
Warning in install.packages :
  installation of package ‘vcd’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmprKTvJq/downloaded_packages’

Я попытался установить "lmtest".Также проблема:

Installing package into ‘/home/gogamd/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/lmtest_0.9-36.tar.gz'
Content type 'application/x-gzip' length 184216 bytes (179 KB)
==================================================
downloaded 179 KB

* installing *source* package ‘lmtest’ ...
** package ‘lmtest’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG   -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c init.c -o init.o
gfortran -m64   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules  -c pan.f -o pan.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/gfortran/modules’ [-Wmissing-include-dirs]
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o lmtest.so init.o pan.o -lgfortran -lm -lquadmath -L/usr/lib64/R/lib -lR
/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: cannot find -lquadmath
collect2: error: ld returned 1 exit status
make: *** [lmtest.so] Error 1
ERROR: compilation failed for package ‘lmtest’
* removing ‘/home/gogamd/R/x86_64-redhat-linux-gnu-library/3.4/lmtest’
Warning in install.packages :
  installation of package ‘lmtest’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmprKTvJq/downloaded_packages’

Установка других пакетов, таких как "bench", не привела к этой ошибке.Есть ли решение?

1 Ответ

0 голосов
/ 05 июня 2018

Проблема здесь:

/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: cannot find -lquadmath

Вам необходимо установить пакеты libgfortran (GNU Fortran) и libquadmath на экземпляры VPC.

...