aoles / EBImage

:art: Image processing toolbox for R
71 stars 28 forks source link

Package fftw3 was not found in the pkg-config search path. #69

Open natyfp opened 9 months ago

natyfp commented 9 months ago

I'm trying to deploy on Posit an app using this library, but I'm getting the error: Package fftw3 was not found in the pkg-config search path.

natyfp commented 9 months ago

This is the whole error:

curl: HTTP 200 https://cran.rstudio.com/src/contrib/fftwtools_0.9-11.tar.gz 01/18 18:15:24.580 (GMT) [1] "Command failed (1)\n\nFailed to run system command:\n\n\t'/opt/R/4.2.1/lib/R/bin/R' --vanilla CMD INSTALL --preclean '/opt/rstudio-connect/mnt/tmp/Rtmpr8s227/packrat-install-6ea0f5060f6c8/fftwtools' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.2.1' --install-tests --no-docs --no-multiarch --no-demo \n\nThe command failed with output:\n installing source package ‘fftwtools’ ...\n package ‘fftwtools’ successfully unpacked and MD5 sums checked\n using staged installation\nchecking for gcc... gcc\nchecking whether the C compiler works... yes\nchecking for C compiler default output file name... a.out\nchecking for suffix of executables... \nchecking whether we are cross compiling... no\nchecking for suffix of object files... o\nchecking whether we are using the GNU C compiler... yes\nchecking whether gcc accepts -g... yes\nchecking for gcc option to accept ISO C89... none needed\nchecking how to run the C preprocessor... gcc -E\ncheckin g for gcc... (cached) gcc\nchecking whether we are using the GNU C compiler... (cached) yes\nchecking whether gcc accepts -g... (cached) yes\nchecking for gcc option to accept ISO C89... (cached) none needed\nchecking for pkg-config... yes\nPackage fftw3 was not found in the pkg-config search path.\nPerhaps you should add the directory containing fftw3.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'fftw3' found\nPackage fftw3 was not found in the pkg-config search path.\nPerhaps you should add the directory containingfftw3.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'fftw3' found\nconfigure: creating ./config.status\nconfig.status: creating src/Makevars\n\nfftwtools 0.9-10\n================\n\ncompiler flags: \nlink argument: \n\n libs\ngcc -I\"/opt/R/4.2.1/lib/R/include\" -DNDEBUG -I/usr/local/include -fpic -g -O2 -c fftwtools.c -o fftwtools.o\nfftwtools.c:28:9: fatal error: fftw3.h: No such file or directory\n 28 | #include\n | ^~~~~\ ncompilation terminated.\nmake: [/opt/R/4.2.1/lib/R/etc/Makeconf:168: fftwtools.o] Error 1\nERROR: compilation failed for package ‘fftwtools’\n* removing ‘/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.2.1/fftwtools’" 01/18 18:15:24.582 (GMT) Error: Command failed (1) 01/18 18:15:24.582 (GMT) 01/18 18:15:24.582 (GMT) Failed to run system command: 01/18 18:15:24.582 (GMT) 01/18 18:15:24.582 (GMT) '/opt/R/4.2.1/lib/R/bin/R' --vanilla CMD INSTALL --preclean '/opt/rstudio-connect/mnt/tmp/Rtmpr8s227/packrat-install-6ea0f5060f6c8/fftwtools' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.2.1' --install-tests --no-docs --no-multiarch --no-demo 01/18 18:15:24.582 (GMT) 01/18 18:15:24.582 (GMT) The command failed with output: 01/18 18:15:24.582 (GMT)