Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 在linux中安装包时出现非零退出状态错误_R_Linux - Fatal编程技术网

R 在linux中安装包时出现非零退出状态错误

R 在linux中安装包时出现非零退出状态错误,r,linux,R,Linux,我刚刚在linux上安装了R。现在我尝试在上面安装一些软件包。当我试着安装 RCurl包使用: install.packages("RCurl") 然而,我得到以下信息: * installing *source* package ‘bitops’ ... ** package ‘bitops’ successfully unpacked and MD5 sums checked ** libs gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG

我刚刚在linux上安装了R。现在我尝试在上面安装一些软件包。当我试着安装 RCurl包使用:

install.packages("RCurl")
然而,我得到以下信息:

* installing *source* package ‘bitops’ ...
** package ‘bitops’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c bit-ops.c -o bit-ops.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c cksum.c -o cksum.o
gcc -std=gnu99 -shared -o bitops.so bit-ops.o cksum.o -L/usr/lib/R/lib -lR
installing to /home/marc/R/x86_64-pc-linux-gnu-library/3.0/bitops/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (bitops)
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked 
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/marc/R/x86_64-pc-linux-gnu-library/3.0/RCurl’

The downloaded source packages are in
    ‘/tmp/RtmpAXtKXQ/downloaded_packages’
 Warning message:
In install.packages("RCurl") :
installation of package ‘RCurl’ had non-zero exit status
开始时,一切似乎都很顺利,但随后我出现了一个非零退出状态错误。有什么想法吗
这里出了什么问题?

请参阅
RCurl
()说明的
SystemRequirements
部分。您需要安装所需的系统库才能安装RCurl。如果您在Ubuntu上,那么从命令行
sudo获得install libcurl4 gnutls dev
将安装
libcurl
,然后再次尝试安装
RCurl
。请参阅
RCurl
()说明的
SystemRequirements
部分。您需要安装所需的系统库才能安装RCurl。如果您在Ubuntu上,那么从命令行
sudo apt get install libcurl4 gnutls dev
将安装
libcurl
,然后再次尝试安装
RCurl