deepin安装devtools
一波三折,装的脑壳疼
遇到的问题
准备用y叔的yyplot2,然后deepin中没有yyplot包,这个包又放在github,然后就
install.package("devtools")
## 报错
ERROR: configuration failed for package ‘curl’
* removing ‘/home/duke/R/x86_64-pc-linux-gnu-library/3.4/curl’
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/duke/R/x86_64-pc-linux-gnu-library/3.4/httr’
ERROR: dependency ‘httr’ is not available for package ‘gh’
* removing ‘/home/duke/R/x86_64-pc-linux-gnu-library/3.4/gh’
ERROR: dependencies ‘curl’, ‘gh’ are not available for package ‘usethis’
* removing ‘/home/duke/R/x86_64-pc-linux-gnu-library/3.4/usethis’
ERROR: dependencies ‘httr’, ‘usethis’ are not available for package ‘devtools’
* removing ‘/home/duke/R/x86_64-pc-linux-gnu-library/3.4/devtools’
然后一脸懵逼不知道为毛,就开始一顿百度,也没有啥结果,然后就又回去看原因
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
* deb: libssl-dev (Debian, Ubuntu, etc)
* rpm: openssl-devel (Fedora, CentOS, RHEL)
* csw: libssl_dev (Solaris)
* brew: openssl@1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
说OpenSSL有问题,看下OpenSSL是什么东西
在计算机网络上,OpenSSL是一个开放源代码的软件库包,应用程序可以使用这个包来进行安全通信,避免窃听,同时确认另一端连接者的身份。这个包广泛被应用在互联网的网页服务器上。
SSL是Secure Sockets Layer(安全套接层协议)的缩写,可以在Internet上提供秘密性传输。Netscape公司在推出第一个Web浏览器的同时,提出了SSL协议标准。其目标是保证两个应用间通信的保密性和可靠性,可在服务器端和用户端同时实现支持。已经成为Internet上保密通讯的工业标准。
SSL能使用户/服务器应用之间的通信不被攻击者窃听,并且始终对服务器进行认证,还可选择对用户进行认证。SSL协议要求建立在可靠的传输层协议(TCP)之上。SSL协议的优势在于它是与应用层协议独立无关的,高层的应用层协议(例如:HTTP,FTP,TELNET等)能透明地建立于SSL协议之上。SSL协议在应用层协议通信之前就已经完成加密算法、通信密钥的协商及服务器认证工作。在此之后应用层协议所传送的数据都会被加密,从而保证通信的私密性。
看了也不怎么明白...太专业了,不管了,他说debian和ubuntu下尝试安装libssl-dev, deepin基于ubuntu,所以按照这个逻辑就尝试安装一下
sudo apt-get install libssl-dev
sudo apt-get update
R
install.packages("devtools")
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
结果又特喵的报错了,这次是libcurl
,这次也懒得查libcurl是什么鬼了,反正没openssl和libcurl这俩哥们curl是装不上的,然后就是
sudo apt-get install libcur14-openssl-dev
sudo apt-get update
R
install.packages("devtools")
然后就成功了。然鹅,半个上午就这么木有了...
网友评论