Skip to content
Prev 33758 / 398513 Next

Can't load e1071

On Tue, 24 Jun 2003, Dirk Eddelbuettel wrote:

            
Sorry for any impoliteness. I was trying to ask the whole list, since I
suspect the two issues are different.
No, I don't misunderstand. R 1.7.0 is in debian-stable, which is why it's
what I'm running. I appreciate that information. e1071 is an add-on
package that used to load without any issues, but it does not do so on
either of my debian-stable machines. They both fail with the same message:
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library
"/usr/local/lib/R/site-library/e1071/libs/e1071.so":
  /usr/local/lib/R/site-library/e1071/libs/e1071.so: cannot dynamically
load executable
Error in library(e1071) : .First.lib failed


...even though /usr/local/lib/R/site-library/e1071/libs/e1071.so exists
and is readable.


That was the reason for the original post; someone else noted that my
installation of R was old, which led to this thread.

The first problem I had is that R apparently assumes that g++-3.0 will be
the compiler, since:

aperrin at joehill:/usr/local/lib/R/site-library/e1071/libs$ R CMD config CXX
g++-3.0


...even if g++-3.0 isn't installed on the machine:
joehill:/usr/src/e1071# dpkg -l | grep g++
ii  g++            2.95.4-14      The GNU C++ compiler.
ii  g++-2.95       2.95.4-11woody The GNU C++ compiler.


If I install g++-3.0, then install e1071 from the net, the installation
works fine, but using the library gives the error above.

Thanks for your interest and help.



----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists at perrin.socsci.unc.edu * andrew_perrin (at) unc.edu