[R] Can't load e1071

Andrew Perrin clists at perrin.socsci.unc.edu
Wed Jun 25 02:44:57 CEST 2003


On Tue, 24 Jun 2003, Dirk Eddelbuettel wrote:

>
> On Tue, Jun 24, 2003 at 07:47:19PM -0400, Andrew Perrin wrote:
> > OK, thanks. Is that the problem with e1071? Any advice on getting it
> > loaded?
>
> [ It is considered impolite to reply to private messages via the list. ]

Sorry for any impoliteness. I was trying to ask the whole list, since I
suspect the two issues are different.

>
> You misunderstand:  R in Debian is in unstable. e1071 is an add-on package
> that always loaded without any issues.
>

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:

> library(e1071)
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




More information about the R-help mailing list