Skip to content
Prev 10565 / 398502 Next

Can't install "e1071"

> I can't seem to get the "e1071" package to build. Here is a Linux log; the
  > Windows version behaves the same way:
  > --------------------------------------------------------------------------
  > # R CMD INSTALL e1071*.gz
  > Installing source package `e1071' ...
  > creating cache ./config.cache
  > checking for library containing pnm_readpnm... no
  > checking for library containing pbm_readpbm... -lpbm
  > checking for library containing pgm_readpgm... -lpgm
  > checking for library containing ppm_readppm... -lppm
  > checking for library containing pnm_writepnm... -lpnm
  > updating cache ./config.cache
  > creating ./config.status
  > creating R/pnm.R
  > creating src/Makevars
  >  libs
  > gcc -I/usr/lib/R/include -I. -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES
  >  -fPIC  -O2 -march=i386 -mcpu=i686 -c Rsvm.c -o Rsvm.o
  > gcc -I/usr/lib/R/include -I. -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES
  >  -fPIC  -O2 -march=i386 -mcpu=i686 -c cmeanscl.c -o cmeanscl.o
  > gcc -I/usr/lib/R/include -I. -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES
  >  -fPIC  -O2 -march=i386 -mcpu=i686 -c cshell.c -o cshell.o
  > gcc -I/usr/lib/R/include -I. -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES
  >  -fPIC  -O2 -march=i386 -mcpu=i686 -c pnm.c -o pnm.o
  > In file included from /usr/include/pbm.h:7,
  >                  from /usr/include/pgm.h:7,
  >                  from /usr/include/ppm.h:7,
  >                  from /usr/include/pnm.h:7,
  >                  from pnm.c:19:
  > /usr/include/pbmplus.h:305:20: shhopt.h: No such file or directory
  > make: *** [pnm.o] Error 1

which version of netpbm have you installed? the pbmplus.h contained in
the debian linux stable package with version 19940301.2 does not have
a reference to shhopt.h in pbmplus.h ...

but anyway, that is beyond R's domain and certainly a bug in your
netpbm installation.