我试图在RHEL6上安装R-3.3.1
,但是我没有su
权限。 不幸的是,该机器有zlib
, bzip2
,readline, xz
, pcre
, curl
旧版本。 我无法访问yum repo
,pipe理员也不会帮助。 所以,我也编译了这些库,并将它们安装在其中
<my home dir>/libs bzip2-1.0.6 curl-7.48.0 pcre-8.38 readline-6.3 xz-5.2.2 zlib-1.2.8
当我在.so文件上运行ldd
时,我没有得到任何缺失的库。 唯一的小问题是
lib> ldd libcurl.so.4.4.0 linux-vdso.so.1 => (0x00007ffec49ff000) libidn.so.11 => /lib64/libidn.so.11 (0x00007f2371b4b000) libz.so.1 => /lib64/libz.so.1 (0x00007f2371934000) <== this does not point to the version I have compiled librt.so.1 => /lib64/librt.so.1 (0x00007f237172c000) libc.so.6 => /lib64/libc.so.6 (0x00007f2371398000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f237117a000) /lib64/ld-linux-x86-64.so.2 (0x0000003e79000000)
虽然我已经设置了CPPFLAGS
, LDFLAGS
和LIBS
,并使用--with-zlib=<zlib dir>
编译。
现在当我设置CPPFLAGS
和LDFLAGS
运行./configure --without-x
,以便使用上述版本的库时,出现以下错误。
checking libcurl version ... 7.19.7 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
有什么办法让R
编译不支持https
?
你说你有没有脱节
卷曲7.48.0
和配置输出
检查libcurl版本… 7.19.7
您可能需要尝试覆盖configure
所使用的自动检测,以便找到您的curl版本。 有交换机,它也监听环境变量,你可能会创建一个本地的~/lib/
并让ld.conf
知道它。 但现在这是一个configure
/ autoconf
问题,而不是一个R问题。