大能们,Ubuntu16.04安装devtools:install.packages('devtools')时出现如下报错,该怎么解决呀:
将程序包安装入‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4’
(因为‘lib’没有被指定)
还安装依赖关系‘credentials’, ‘curl’, ‘gert’, ‘gh’, ‘httr2’, ‘openssl’, ‘usethis’, ‘pkgdown’, ‘rcmdcheck’, ‘rversions’, ‘urlchecker’
试开URL’https://cloud.r-project.org/src/contrib/credentials_2.0.2.tar.gz'
Content type 'application/x-gzip' length 283111 bytes (276 KB)
==================================================
downloaded 276 KB
试开URL’https://cloud.r-project.org/src/contrib/curl_6.3.0.tar.gz'
Content type 'application/x-gzip' length 934046 bytes (912 KB)
==================================================
downloaded 912 KB
试开URL’https://cloud.r-project.org/src/contrib/gert_2.1.5.tar.gz'
Content type 'application/x-gzip' length 122678 bytes (119 KB)
==================================================
downloaded 119 KB
试开URL’https://cloud.r-project.org/src/contrib/gh_1.5.0.tar.gz'
Content type 'application/x-gzip' length 46366 bytes (45 KB)
==================================================
downloaded 45 KB
试开URL’https://cloud.r-project.org/src/contrib/httr2_1.1.2.tar.gz'
Content type 'application/x-gzip' length 261794 bytes (255 KB)
==================================================
downloaded 255 KB
试开URL’https://cloud.r-project.org/src/contrib/openssl_2.3.3.tar.gz'
Content type 'application/x-gzip' length 1206720 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
试开URL’https://cloud.r-project.org/src/contrib/usethis_3.1.0.tar.gz'
Content type 'application/x-gzip' length 384582 bytes (375 KB)
==================================================
downloaded 375 KB
试开URL’https://cloud.r-project.org/src/contrib/pkgdown_2.1.3.tar.gz'
Content type 'application/x-gzip' length 1269470 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
试开URL’https://cloud.r-project.org/src/contrib/rcmdcheck_1.4.0.tar.gz'
Content type 'application/x-gzip' length 73522 bytes (71 KB)
==================================================
downloaded 71 KB
试开URL’https://cloud.r-project.org/src/contrib/rversions_2.1.2.tar.gz'
Content type 'application/x-gzip' length 42135 bytes (41 KB)
==================================================
downloaded 41 KB
试开URL’https://cloud.r-project.org/src/contrib/urlchecker_1.0.1.tar.gz'
Content type 'application/x-gzip' length 13340 bytes (13 KB)
==================================================
downloaded 13 KB
试开URL’https://cloud.r-project.org/src/contrib/devtools_2.4.5.tar.gz'
Content type 'application/x-gzip' length 374718 bytes (365 KB)
==================================================
downloaded 365 KB
* installing *source* package ‘curl’ ...
** 成功将‘curl’程序包解包并MD5和检查
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
Curl runtime version 7.47.0
** libs
错误: C++17 standard requested but CXX17 is not defined
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/curl’
* installing *source* package ‘openssl’ ...
** 成功将‘openssl’程序包解包并MD5和检查
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0
** libs
using C compiler: ‘gcc (Ubuntu 7.5.0-3ubuntu1~16.04) 7.5.0’
rm -f aes.o base64.o bignum.o cert.o compatibility.o diffie.o envelope.o error.o hash.o info.o keygen.o keys.o onload.o openssh.o password.o pbkdf.o pem.o pkcs12.o pkcs7.o rand.o rsa.o signing.o ssl.o stream.o write.o x25519.o openssl.so bcrypt/libstatbcrypt.a bcrypt/bcrypt_pbkdf.o bcrypt/blowfish.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c aes.c -o aes.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c base64.c -o base64.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c bignum.c -o bignum.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c cert.c -o cert.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c compatibility.c -o compatibility.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c diffie.c -o diffie.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c envelope.c -o envelope.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c error.c -o error.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c hash.c -o hash.o
gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c info.c -o info.o
info.c: In function ‘R_openssl_config’:
info.c:28:38: warning: implicit declaration of function ‘OpenSSL_version’; did you mean ‘OpenSSLDie’? [-Wimplicit-function-declaration]
SET_VECTOR_ELT(res, 0, Rf_mkString(OpenSSL_version(OPENSSL_VERSION)));
^~~~~~~~~~~~~~~
OpenSSLDie
info.c:28:54: error: ‘OPENSSL_VERSION’ undeclared (first use in this function); did you mean ‘OPENSSL_STRING’?
SET_VECTOR_ELT(res, 0, Rf_mkString(OpenSSL_version(OPENSSL_VERSION)));
^~~~~~~~~~~~~~~
OPENSSL_STRING
info.c:28:54: note: each undeclared identifier is reported only once for each function it appears in
/usr/lib/R/etc/Makeconf:195: recipe for target 'info.o' failed
make: *** [info.o] Error 1
ERROR: compilation failed for package ‘openssl’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/openssl’
ERROR: dependencies ‘openssl’, ‘curl’ are not available for package ‘credentials’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/credentials’
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr2’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/httr2’
ERROR: dependency ‘curl’ is not available for package ‘rcmdcheck’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/rcmdcheck’
ERROR: dependency ‘curl’ is not available for package ‘rversions’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/rversions’
ERROR: dependency ‘curl’ is not available for package ‘urlchecker’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/urlchecker’
ERROR: dependencies ‘credentials’, ‘openssl’ are not available for package ‘gert’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/gert’
ERROR: dependency ‘httr2’ is not available for package ‘gh’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/gh’
ERROR: dependencies ‘httr2’, ‘openssl’ are not available for package ‘pkgdown’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/pkgdown’
ERROR: dependencies ‘curl’, ‘gert’, ‘gh’ are not available for package ‘usethis’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/usethis’
ERROR: dependencies ‘usethis’, ‘pkgdown’, ‘rcmdcheck’, ‘rversions’, ‘urlchecker’ are not available for package ‘devtools’
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/4.4/devtools’
下载的程序包在
‘/tmp/RtmpDdKfQX/downloaded_packages’里
共有12个警告 (用warnings()来显示)