[Rd] Failed to install imager

Dirk Eddelbuettel edd at debian.org
Thu Jan 21 13:31:01 CET 2016

On 21 January 2016 at 16:25, jupiter wrote:
| I failed to run install.packages("imager")  in CentOS 6, the R version is
| 3.2.2
| g++ -shared -L/usr/local/r/3.2.2/lib64/R/lib -L/usr/local/lib64 -o
| imager.so RcppExports.o colourspace.o display.o drawing.o filtering.o
| interpolation.o morphology.o transformations.o utils.o wrappers.o -lX11
| -lfftw3 -L/usr/local/r/3.2.2/lib64/R/lib -lR
| /usr/bin/ld: cannot find -lfftw3

That is your linker / your operating system telling you it does not have fftw3.
| I checked imager src/Makevars.win:
| PKG_LIBS += -L$(LIB_FFTW)/lib -lgdi32 -lfftw3-3 $(RCPP_LDFLAGS)

That only tells R to link against fftw3 _but does not install fftw3_.
| And I've already added LIB_FFTW to my fftw library, what I am still missing?

Presumably the yum installation of the fftw3 headers and library.


http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the R-devel mailing list