2017-02-25 30 views
1

CentOS6にR 3.3.2をインストールしようとしていました。 しかし、何とか私はhttpsのlibcurlサポートを行うことができませんでした。 Here誰かがlibcurl:libcurl-devel(rpm)またはlibcurl4-openssl-dev(deb)をインストールするように提案しました。 libcurl4-openssl-dev(deb)が debianであることを後で認識したとしても、両方を試しましたが、どれもうまくいきませんでした。 "の.tcshrc" でhttpsのlibcurlサポートを作成するには? configure:error:libcurl> = 7.28.0 httpsをサポートするライブラリとヘッダが必要です

cd $HOME/Programme 
mkdir libcurl_devel 
cd libcurl_devel 
# download libcurl-devel-7.29.0-35.el7.centos.x86_64.rpm 
rpm2cpio libcurl-devel-7.29.0-35.el7.centos.x86_64.rpm|cpio -i -d 

setenv LD_LIBRARY_PATH /host/u32/myusername/directory_for_rpm/usr/lib64:/host/u32/myusername/Programme/libcurl_devel/usr/include/:/host/u32/myusername/Programme/libcurl_devel/usr/lib64 

source .tcshrc 

./configure --prefix=$HOME/Programme/R-3.3.2 --enable-R-shlib LDFLAGS="-L/$HOME/Programme/zlib-1.2.11/lib -L/$HOME/Programme/bzip2-1.0.6/lib -L/$HOME/Programme/xz-5.2.3/lib -L/$HOME/Programme/pcre-8.40/lib -L//host/u32/myusername/Programme/libcurl_devel/usr/lib64" CPPFLAGS="-I/$HOME/Programme/zlib-1.2.11/include -I/$HOME/Programme/bzip2-1.0.6/include -I/$HOME/Programme/xz-5.2.3/include -I/$HOME/Programme/pcre-8.40/include -I//host/u32/myusername/Programme/libcurl_devel/usr/include" 

... 
checking for curl-config... /host/u32/myusername/Programme/libcurl_devel/usr/bin//curl-config 
checking libcurl version ... 7.29.0 
checking curl/curl.h usability... yes 
checking curl/curl.h presence... yes 
checking for curl/curl.h... yes 
checking if libcurl is version 7 and >= 7.28.0... yes 
checking if libcurl supports https... no 
configure: error: libcurl >= 7.28.0 library and headers are required with support for https 
... 

here 任意の提案を参照してください?

答えて

2

私はそれがないとLDFLAGS

にhttpsのサポートはリンクしていないため、テストを-lcurlを追加することによってこの問題を解決することができました。私はconfig.logの中で見て、検索する場合:カールは、私は基本的なテストは、私は追加すると、それは「curl_version_info」機能

を参照することができなかったので、リンクに失敗したことを発見します。https

をサポートしているかどうかをチェック

-lcurlからLDFLAGSに移動すると、これがなくなり、テストがパスしました。

シース!

+0

ありがとうございます。 "skg"は私にとって特別な興味の名前です。それが偶然であるかどうか疑問です – Jun

+0

skgはちょうど私の頭文字です.... – skg

0

私は同じ問題があります。私のlibcurlは要件を満たす必要がありますが、失敗で構成する必要があります。私はconfigure.shの中で 'test "x $ {has_libcurl}"

関連する問題