[R-SIG-Mac] Problems installing igraph

Simon Urbanek simon.urbanek at r-project.org
Fri Oct 25 04:42:36 CEST 2013


we don't support macports so I cannot provide more than a general advice.

First, your output appears to deal with a dirty package - I don't see any compilation output and yet you have a dylib - that doesn't seem right. Make sure you're building from a clean tar ball (and *not* a directory!) - you have cut out the important part so we can't tell.

If you are sure that you're building off a clean tar ball then my guess would be that there is some problem with the linking flags used in igraph. R build process doesn't perform link-time symbol resolution, so errors in flags are not apparent at link time - they only show up at run-time. Typically, to trace issues like this, you'll search you libraries for the missing symbol and add that library to the link flags. nm is your friend when checking the symbols.


On Oct 24, 2013, at 10:12 PM, Michael Steeves wrote:

> I have an OS X 10.8.4 system, with R (3.0.2) installed and managed by macports. When I try to install the igraph package in R, I'm getting an error finding _colamd_printf
> installing to /Users/steevmi1/Library/R/3.0/library/igraph/libs
> ** R
> ** demo
> ** inst
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** testing if installed package can be loaded
> Error : .onLoad failed in loadNamespace() for 'igraph', details:
> call: dyn.load(file, DLLpath = DLLpath, ...)
> error: unable to load shared object '/Users/steevmi1/Library/R/3.0/library/igraph/libs/igraph.so':
> dlopen(/Users/steevmi1/Library/R/3.0/library/igraph/libs/igraph.so, 10): Symbol not found: _colamd_printf
> Referenced from: /Users/steevmi1/Library/R/3.0/library/igraph/libs/igraph.so
> Expected in: flat namespace
> in /Users/steevmi1/Library/R/3.0/library/igraph/libs/igraph.so
> Error: loading failed
> Execution halted
> ERROR: loading failed
> I haven't found anything on this in google, so I'm not really sure where to go trying to track this problem down.
>> sessionInfo()
> R version 3.0.2 (2013-09-25)
> Platform: x86_64-apple-darwin12.4.0 (64-bit)
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> loaded via a namespace (and not attached):
> [1] tcltk_3.0.2 tools_3.0.2
> -Mike
> -- 
> Michael Steeves
> steeves at raingods.net
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

More information about the R-SIG-Mac mailing list