From edd at debian.org  Thu Jan 21 13:31:01 2016
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 21 Jan 2016 06:31:01 -0600
Subject: [Rd] Failed to install imager
In-Reply-To: <CAA=hcWQ7JNPwBNKCxYyn00nHtyZzs9a-hNBGZBdeWJ6NGU103Q@mail.gmail.com>
References: <CAA=hcWQ7JNPwBNKCxYyn00nHtyZzs9a-hNBGZBdeWJ6NGU103Q@mail.gmail.com>
Message-ID: <22176.53125.818874.433936@max.nulle.part>


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.

Dirk

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



[Rd] Failed to install imager
Dirk Eddelbuettel