RCurl安装错误

时间:2015-06-24 19:58:34

标签: r

我在redhat中有R 3.2.0。 我正在尝试安装RCurl,但收到以下错误

myUTF8.c: In function \u2018StringValue\u2019:
myUTF8.c:284: warning: passing argument 1 of \u2018Rf_mkCharLenCE\u2019 from incompatible pointer type
gcc -std=gnu99 -shared -L/home/gowthan/Downloads/R-3.2.0/lib -L/usr/local/lib64 -o RCurl.so base64.o curl.o curlInit.o curl_base64.o enums.o json.o memoryManagement.o myUTF8.o -L/local/p4clients/pkgbuild-5R4zB/workspace/build/Curl/Curl-7.18.1.155.6782/RHEL5_64/DEV.STD.PTHREAD/build/private/curl/install/lib -lcurl -L/opt/brazil-pkg-cache/packages/Fbopenssl/Fbopenssl-0.0.4.504.7765/RHEL5_64/DEV.STD.PTHREAD/build/lib -lfbopenssl -L/local/p4clients/pkgbuild-5R4zB/workspace/build/Curl/Curl-7.18.1.155.6782/RHEL5_64/DEV.STD.PTHREAD/build/private/tmp/brazil-path/[Openssl]lib.libfarm/lib -L/local/p4clients/pkgbuild-k5Vrj/workspace/build/Libxml2/Libxml2-2.7.8.334.176/RHEL5_64/DEV.STD.PTHREAD/build/private/libxml2/install/lib -lxml2 -lz -lm -L/home/gowthan/Downloads/R-3.2.0/lib -lR
/usr/bin/ld: cannot find -lfbopenssl
collect2: ld returned 1 exit status
make: *** [RCurl.so] Error 1
ERROR: compilation failed for package \u2018RCurl\u2019
* removing \u2018/home/gowthan/Downloads/R-3.2.0/library/RCurl\u2019

The downloaded source packages are in
        \u2018/tmp/RtmpLXPsKI/downloaded_packages\u2019
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("RCurl", dep = TRUE) :
  installation of package \u2018XML\u2019 had non-zero exit status
2: In install.packages("RCurl", dep = TRUE) :
  installation of package \u2018RCurl\u2019 had non-zero exit status

构建失败,但找不到lfbopenssl。我该如何安装?

编辑:

I already tried : yum -y install libcurl libcurl-devel
Loaded plugins: security
Setting up Install Process
No package libcurl available.
No package libcurl-devel available.
Nothing to do

我已经安装了curl,curl-devl和openssl。

1 个答案:

答案 0 :(得分:0)

警告:#[xpath3('//itemMessage/requestId/text()', payload, 'STRING')] ,因此您需要先安装openssl:https://www.openssl.org/and然后尝试再次安装cannot find -lfbopenssl

试试这段代码:

RCurl

如上所述:https://github.com/sagemath/cloud/issues/114

修改

关于红帽试试这个:

sudo apt-get install aptitude

sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libxml2-dev

还要记住openssl和curl的配置。 这里描述了openssl的配置: http://dev.antoinesolutions.com/openssl