[英]Installing igraph on OS X Mavericks
I'm having trouble installing igraph on R 3.1.0 on OS X Mavericks with XCode 5.1.1. 我在使用XCode 5.1.1的OS X Mavericks的R 3.1.0上安装igraph时遇到问题。 The error message I get is:
我收到的错误消息是:
ld: illegal text-relocation to '___gmp_binvert_limb_table' in /usr/local/lib/libgmp.a(mp_minv_tab.o) from '___gmpn_divexact_1' in /usr/local/lib/libgmp.a(dive_1.o) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [igraph.so] Error 1
ERROR: compilation failed for package ‘igraph’
Looking around, I found that I'm not the only one to have this issue and it's not limited to igraph ( here and here ), but adding CXXFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
to ~/.R/Makevars
didn't help. 环顾四周,我发现我不是唯一一个遇到此问题的人,它不仅限于igraph( 在这里和这里 ),而是添加了
CXXFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
~/.R/Makevars
并没有帮助。 From the error message, it looks like R found the system installation of GMP and not the Macports version, which could conceivably have been built for a different architecture. 从错误消息看来,R似乎找到了GMP的系统安装版本,而不是Macports版本,可以想象它是为不同的体系结构构建的。 (Installing from binaries also didn't work for me, with an error message of
image not found
, but it looks like this is a separate issue .) Has anyone else encountered similar issues? (从二进制文件安装对我也不起作用,
image not found
错误消息,但看起来这是一个单独的问题 。)其他人是否遇到过类似的问题?
sessionInfo()
gives: sessionInfo()
给出:
R version 3.1.0 (2014-04-10)
Platform: x86_64-apple-darwin13.0.2 (64-bit)
Thanks in advance! 提前致谢!
如果这对其他人有帮助,请使用Gabor Csardi的解决方案:R的二进制发行版。我是从源代码构建R的,而该版本不适用于从源代码或其他版本安装igraph二进制文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.