configure: error:
---------------------------------------------
OpenSSL library required
Please install:
libssl-dev (deb) or openssl-devel (rpm)
---------------------------------------------
See `config.log' for more details
ERROR: configuration failed for package ‘git2r’
* removing ‘/home/udi/R/x86_64-pc-linux-gnu-library/3.2/git2r’
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/home/udi/R/x86_64-pc-linux-gnu-library/3.2/httr’
ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’
* removing ‘/home/udi/R/x86_64-pc-linux-gnu-library/3.2/devtools’
然而,当我尝试安装libssl-dev(我有Ubuntu 14.04.3)时,我收到消息“'libssl-dev'不可用(对于R版本3.2.2)”。
知道该怎么办?下载新的R版本还是有其他解决方案吗?
答案 0 :(得分:23)
这是一个系统包 - 而不是R包。从命令行,您可以运行
/(\w).*\1.*\1/
答案 1 :(得分:1)
我的Ubuntu中的问题是什么解决了这个问题:
sudo apt-get install zlib1g-dev
除非你这样做,否则不会立即显现:
install.packages("git2r")
会抛出此错误:
The zlib library that is required to build
git2r was not found.
Please install:
zlib1g-dev (package on e.g. Debian and Ubuntu)
zlib-devel (package on e.g. Fedora, CentOS and RHEL)
and try again.