2017-08-07 27 views
0

我想在Debian wheezyx上的R版本3.4.1 32位上安装swirl,并且出现错误。请看下面:在R ver 3.4.1中安装swirl错误32位Debian

------------------------- 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: [email protected] (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但是得到以下错误。我不知道下一步该怎么做......

> 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) 
> 

我试图安装libcurl4-openssl-dev为Debian软件包,这是我收到的输出。

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) 

我运行包后问题仍然存在。

+0

运行包后问题仍然存在。 – JBlaze

回答

0

首先尝试从终端:
sudo apt-get install libcurl4-openssl-dev libssl-dev

后来回去Rstudio并重新安装漩涡包。