igraph 0.7.1无法在R 3.1.0上安装

时间:2014-06-02 16:47:15

标签: r osx-mavericks igraph

我正在尝试使用mavericks在Macbook Pro上安装igraph 0.7.1。我使用macports安装了R 3.1.0,并在使用install.packages(" igraph")安装igraph时不断收到以下警告/错误:

/usr/bin/clang -I/opt/local/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/opt/local/include   -DUSING_R -I. -Ics -Iglpk -Iglpk/amd -Iglpk/colamd -Iplfit -pipe -Os -flax-vector-conversions -arch x86_64 -I/opt/local/include/libxml2 -pipe -Os -flax-vector-conversions -arch x86_64 -I/opt/local/include/libxml2 -DNDEBUG -DPACKAGE_VERSION=\"@VERSION@\" -DINTERNAL_ARPACK -DIGRAPH_THREAD_LOCAL=/**/ -fPIC  -pipe -Os -flax-vector-conversions -arch x86_64  -c colamd.c -o colamd.o

colamd.c:1979:27: warning: implicitly declaring library function 'sqrt' with type 'double (double)'
        dense_row_count = DENSE_DEGREE (knobs [COLAMD_DENSE_ROW], n_col) ;
                          ^
colamd.c:792:33: note: expanded from macro 'DENSE_DEGREE'
        ((Int) MAX (16.0, (alpha) * sqrt ((double) (n))))
                                    ^
colamd.c:794:27: note: expanded from macro 'MAX'
         #define MAX(a,b) (((a) > (b)) ? (a) : (b))
                                   ^
colamd.c:1979:27: note: please include the header <math.h> or explicitly provide a declaration for 'sqrt'
colamd.c:792:33: note: expanded from macro 'DENSE_DEGREE'
         ((Int) MAX (16.0, (alpha) * sqrt ((double) (n))))
                                     ^
colamd.c:794:27: note: expanded from macro 'MAX'
          #define MAX(a,b) (((a) > (b)) ? (a) : (b))
                                    ^

1 warning generated.

然后安装完成,出现以下错误:

Error : .onLoad failed in loadNamespace() for 'igraph', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library/igraph/libs/igraph.so':
  dlopen(/opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library/igraph/libs/igraph.so, 10): Symbol not found: _colamd_printf
  Referenced from: /opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library/igraph/libs/igraph.so
  Expected in: flat namespace
 in /opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library/igraph/libs/igraph.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library/igraph’ 

我的计算机上安装了Apple LLVM 5.1版(clang-503.0.40)(基于LLVM 3.4svn)。我会非常感谢你的帮助。

提前致谢。

0 个答案:

没有答案