[R] Trouble compiling igraph. . .

jim smith n0oct at sbcglobal.net
Wed Jun 23 13:29:41 CEST 2010

Been and R-user for about 5 years now in an industrial setting, and
always find the mailing list most helpful.  I have run into problem
compiling igraph on R.  I have contacted the maintainer of igraph, and
he has determined that it is not an igraph problem.

System is FreeBSD 7.2, R-2.10.1 [also have a sandbox machine running
FreeBSD 7.3, R-2.11].  Both machines fail the installation of igraph.
Here is the error:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library
'/usr/local/lib/R/library/igraph/libs/igraph.so': /usr/lib/libstdc+
+.so.6: version GLIBCXX_3.4.11 required
by /usr/local/lib/R/library/igraph/libs/igraph.so not found
Error : .onLoad failed in 'loadNamespace' for 'igraph'

I built the package, then ran the linker ldd to determine if libstdc+
+.so.6 were in the correct place [and found by igraph]:

libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x340e0000)
libz.so.4 => /lib/libz.so.4 (0x33d89000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x3420a000)
libR.so => /usr/local/lib/libR.so (0x34300000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x3455c000)
libm.so.5 => /lib/libm.so.5 (0x33d9b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x33db0000)
libc.so.7 => /lib/libc.so.7 (0x33c83000)
libblas.so.2 => /usr/local/lib/libblas.so.2 (0x33dbb000)
libgfortran.so.3 => /usr/local/lib/gcc44/libgfortran.so.3(0x34651000) 
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x34709000)
libreadline.so.7 => /lib/libreadline.so.7 (0x34712000)
libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x34744000)
liblzma.so.0 => /usr/local/lib/liblzma.so.0 (0x34778000)
libbz2.so.3 => /usr/lib/libbz2.so.3 (0x347a1000)
libicuuc.so.38 => /usr/local/lib/libicuuc.so.38 (0x347b2000)
libicui18n.so.38 => /usr/local/lib/libicui18n.so.38 (0x348d0000)
libncurses.so.7 => /lib/libncurses.so.7 (0x34a27000)
libthr.so.3 => /lib/libthr.so.3 (0x34a66000)
libicudata.so.38 => /usr/local/lib/libicudata.so.38 (0x34a7b000)

So it appears to be there, but still I get this error.  Any guidance?

jim smith <n0oct at sbcglobal.net>

More information about the R-help mailing list