首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在R版本3.4.1 32位Debian中安装swirl时出错

在R版本3.4.1 32位Debian中安装swirl时出错
EN

Stack Overflow用户
提问于 2017-08-08 00:26:57
回答 1查看 129关注 0票数 1

我试图在Debian wheezyx上安装RV3.4.1 32位中的swirl,但得到了错误。如下所示:

代码语言:javascript
复制
 ------------------------- 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=...'
 --------------------------------------------------------------------
 ERROR: configuration failed for package 'curl'
 * removing '/usr/local/lib/R/site-library/curl'
 * installing *source* package 'openssl' ...
 ** package 'openssl' successfully unpacked and MD5 sums 
 checked
 Found pkg-config cflags and libs!
 Using PKG_CFLAGS=
 Using PKG_LIBS=-lssl -lcrypto
 ------------------------- 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=...'
 --------------------------------------------------------------------

然后我尝试安装libcurl4-openssl-dev,但得到以下错误。我不知道下一步该怎么做。

代码语言:javascript
复制
 > install.packages("libcurl4-openssl-dev")
 Installing package into '/usr/local/lib/R/site-library'
 (as 'lib' is unspecified)
 Warning message:
 package 'libcurl4-openssl-dev' is not available (for R version 3.4.1)
 >

我尝试以Debian包的形式安装libcurl4-openssl-dev,这是我收到的输出。

代码语言:javascript
复制
 Setting up dropbear (2014.65-1+deb8u2) ...
Restarting Dropbear SSH server: invoke-rc.d: initscript 
dropbear, action "restart" failed.
dpkg: error processing package dropbear (--
configure):
 subprocess installed post-installation script returned 
error exit status 1
Errors were encountered while processing:
 dropbear
E: Sub-process /usr/bin/dpkg returned an error code 
(1)

在我运行包之后,这个问题仍然存在。

EN

回答 1

Stack Overflow用户

发布于 2018-01-17 05:17:47

从终端第一次尝试:

sudo apt-get install libcurl4-openssl-dev libssl-dev

稍后,返回到Rstudio并再次安装swirl包。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45551611

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档