Paw*_*ata 6 r package r-plotly ubuntu-20.04
install.packages(\'plotly\')\nRun Code Online (Sandbox Code Playgroud)\n我尝试通过在RStudioplotly中运行上面的代码来安装该包。但是,它失败并返回以下内容。我是新手,无法正确阅读此内容。我应该怎么做才能解决这个问题?
我也尝试先手动安装curl、openssl安装httr,但没有什么区别。另外,如果相关的话,我正在使用Ubuntu 20.04 LTS。
Installing package into \xe2\x80\x98/home/ariel/R/x86_64-pc-linux-gnu-library/4.0\xe2\x80\x99\n(as \xe2\x80\x98lib\xe2\x80\x99 is unspecified)\nalso installing the dependencies \xe2\x80\x98curl\xe2\x80\x99, \xe2\x80\x98openssl\xe2\x80\x99, \xe2\x80\x98httr\xe2\x80\x99\n\ntrying URL \'https://cloud.r-project.org/src/contrib/curl_4.3.tar.gz\'\nContent type \'application/x-gzip\' length 673779 bytes (657 KB)\n==================================================\ndownloaded 657 KB\n\ntrying URL \'https://cloud.r-project.org/src/contrib/openssl_1.4.3.tar.gz\'\nContent type \'application/x-gzip\' length 1207708 bytes (1.2 MB)\n==================================================\ndownloaded 1.2 MB\n\ntrying URL \'https://cloud.r-project.org/src/contrib/httr_1.4.2.tar.gz\'\nContent type \'application/x-gzip\' length 159950 bytes (156 KB)\n==================================================\ndownloaded 156 KB\n\ntrying URL \'https://cloud.r-project.org/src/contrib/plotly_4.9.2.1.tar.gz\'\nContent type \'application/x-gzip\' length 3709741 bytes (3.5 MB)\n==================================================\ndownloaded 3.5 MB\n\n* installing *source* package \xe2\x80\x98curl\xe2\x80\x99 ...\n** package \xe2\x80\x98curl\xe2\x80\x99 successfully unpacked and MD5 sums checked\n** using staged installation\nPackage libcurl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libcurl.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'libcurl\' found\nPackage libcurl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libcurl.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'libcurl\' found\nUsing PKG_CFLAGS=\nUsing PKG_LIBS=-lcurl\n------------------------- ANTICONF ERROR ---------------------------\nConfiguration failed because libcurl was not found. Try installing:\n * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)\n * rpm: libcurl-devel (Fedora, CentOS, RHEL)\n * csw: libcurl_dev (Solaris)\nIf libcurl is already installed, check that \'pkg-config\' is in your\nPATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config\nis unavailable you can set INCLUDE_DIR and LIB_DIR manually via:\nR CMD INSTALL --configure-vars=\'INCLUDE_DIR=... LIB_DIR=...\'\n--------------------------------------------------------------------\nERROR: configuration failed for package \xe2\x80\x98curl\xe2\x80\x99\n* removing \xe2\x80\x98/home/ariel/R/x86_64-pc-linux-gnu-library/4.0/curl\xe2\x80\x99\nWarning in install.packages :\n installation of package \xe2\x80\x98curl\xe2\x80\x99 had non-zero exit status\n* installing *source* package \xe2\x80\x98openssl\xe2\x80\x99 ...\n** package \xe2\x80\x98openssl\xe2\x80\x99 successfully unpacked and MD5 sums checked\n** using staged installation\nUsing PKG_CFLAGS=\n--------------------------- [ANTICONF] --------------------------------\nConfiguration failed because openssl was not found. Try installing:\n * deb: libssl-dev (Debian, Ubuntu, etc)\n * rpm: openssl-devel (Fedora, CentOS, RHEL)\n * csw: libssl_dev (Solaris)\n * brew: openssl@1.1 (Mac OSX)\nIf openssl is already installed, check that \'pkg-config\' is in your\nPATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config\nis unavailable you can set INCLUDE_DIR and LIB_DIR manually via:\nR CMD INSTALL --configure-vars=\'INCLUDE_DIR=... LIB_DIR=...\'\n-------------------------- [ERROR MESSAGE] ---------------------------\ntools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory\n 1 | #include <openssl/opensslv.h>\n | ^~~~~~~~~~~~~~~~~~~~\ncompilation terminated.\n--------------------------------------------------------------------\nERROR: configuration failed for package \xe2\x80\x98openssl\xe2\x80\x99\n* removing \xe2\x80\x98/home/ariel/R/x86_64-pc-linux-gnu-library/4.0/openssl\xe2\x80\x99\nWarning in install.packages :\n installation of package \xe2\x80\x98openssl\xe2\x80\x99 had non-zero exit status\nERROR: dependencies \xe2\x80\x98curl\xe2\x80\x99, \xe2\x80\x98openssl\xe2\x80\x99 are not available for package \xe2\x80\x98httr\xe2\x80\x99\n* removing \xe2\x80\x98/home/ariel/R/x86_64-pc-linux-gnu-library/4.0/httr\xe2\x80\x99\nWarning in install.packages :\n installation of package \xe2\x80\x98httr\xe2\x80\x99 had non-zero exit status\nERROR: dependency \xe2\x80\x98httr\xe2\x80\x99 is not available for package \xe2\x80\x98plotly\xe2\x80\x99\n* removing \xe2\x80\x98/home/ariel/R/x86_64-pc-linux-gnu-library/4.0/plotly\xe2\x80\x99\nWarning in install.packages :\n installation of package \xe2\x80\x98plotly\xe2\x80\x99 had non-zero exit status\n\nThe downloaded source packages are in\n \xe2\x80\x98/tmp/RtmpJQIJ6f/downloaded_packages\xe2\x80\x99\nRun Code Online (Sandbox Code Playgroud)\n