2012-04-25 2 views
0

나는 Rgraphviz에 관해 질문이있다. GraphvizRgraphviz을 올바르게 설치 한 후에 Rgraphviz 라이브러리를로드 할 수 없습니다. 이 오류는 다음과 같습니다 : 당신은 graphviz를이 R가 찾고있는 같은 경로에 설치되어 있는지 확인해야Rgraphviz 라이브러리 로딩 오류

Error : .onLoad failed in loadNamespace() for 'Rgraphviz', details: 
    call: value[[3L]](cond) 
    error: unable to load shared object  '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rgraphviz/libs/x86_64/Rgraphviz.so': 

dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rgraphviz/libs/x86_64 
    /Rgraphviz.so, 6): Library not loaded: /usr/local/lib/libgvc.5.dylib 

    Referenced from:   
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rgraphviz/libs/x86_64/Rgraph viz.so 

Reason: image not found 

Check that (1) graphviz is installed on your system; (2) the 
installed version of graphviz matches '2.26.3'; this is the version 
used to build this Rgraphviz package; (3) graphviz is accessible to 
R, e.g., the path to the graphviz 'bin' directory is in the system 
'PATH' variable. See additional instructions in the 'README' file of 
the Rgraphviz 'source' distribution, available at 

http://bioconductor.org/packages/release/bioc/html/Rgraphviz.html 

Ask further questions on the Bioconductor mailing list 

http://bioconductor.org/docs/mailList.html 

답변

2

. 그렇지 않다면, 당신은해야만합니다

$ export LD_LIBRARY_PATH = path_to_graphviz 

R을 호출하기 전에 또는 자동으로 실행하기 위해이 줄을 bash 프로필에 추가하십시오.