Closed englianhu closed 8 years ago
Thank you for your detailed report!
EBImage depends on a number of third-party packages, including tiff and fftwtools. In order to install these packages from sources you need development versions of the libtiff and fftw system libraries which contain the header files necessary for compilation, i.e., tiff.h
and fftw3.h
, respectively. On redhat linux distributions these are libtiff-devel and fftw-devel. To install them use
sudo yum install libtiff-devel fftw-devel
Once the libraries are installed you should be able to install EBImage along with its dependencies by typing in the R console
source("https://bioconductor.org/biocLite.R")
biocLite("EBImage")
finally successfullly installed. Thx alot @aoles
I would like to add that in Ubuntu 16.04 LTS, packages for tiff and fftw are: libtiff5-dev and libfftw3-dev, so:
sudo apt-get install libfftw3-dev libtiff5-dev
should do the trick.
installed libtiff-devel fftw-devel but error it:
> source("https://bioconductor.org/biocLite.R")
Bioconductor version 3.5 (BiocInstaller 1.26.1), ?biocLite for help
> biocLite("EBImage")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.5 (BiocInstaller 1.26.1), R 3.4.1 (2017-06-30).
Installing package(s) ‘EBImage’
trying URL 'https://bioconductor.org/packages/3.5/bioc/src/contrib/EBImage_4.18.1.tar.gz'
Content type 'application/x-gzip' length 5340965 bytes (5.1 MB)
==================================================
downloaded 5.1 MB
* installing *source* package ‘EBImage’ ...
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC -c EBImage.c -o EBImage.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC -c clahe.c -o clahe.o
clahe.c:132: error: redefinition of typedef ‘kz_pixel_t’
clahe.h:16: note: previous declaration of ‘kz_pixel_t’ was here
make: *** [clahe.o] Error 1
ERROR: compilation failed for package ‘EBImage’
* removing ‘/home/dsg/R/x86_64-redhat-linux-gnu-library/3.4/EBImage’
The downloaded source packages are in
‘/tmp/RtmpGhplkB/downloaded_packages’
Warning message:
In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘EBImage’ had non-zero exit status
Do you need to install opencv?
Thanks for your report @meteorwen , this is now fixed in version 4.18.2 which should be available from Bioconductor within the next 48 hours. You can also install directly from here by running
devtools::install_github("aoles/EBImage", ref="RELEASE_3_5")
I would like to add that in Ubuntu 16.04 LTS, packages for tiff and fftw are: libtiff5-dev and libfftw3-dev, so:
sudo apt-get install libfftw3-dev libtiff5-dev
should do the trick.
Thanks :) This worked for me as well.
Was stuck on 'EBImage' installation in debian 10 with error:
"/usr/bin/ld: /usr/local/lib/libfftw3.a(hc2hc-direct.o): relocation R_X86_64_PC32 against symbol fftw_mksolver_hc2hc_hook' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status make: *** [/usr/share/R/share/make/shlib.mk:10: fftwtools.so] Error 1 ERROR: compilation failed for package ‘fftwtools’ removing ‘/usr/local/lib/R/site-library/fftwtools’
Found solution in https://github.com/sgaure/chebpol/issues/1 "must build fftw3 library with '--enable-shared' flag to install"
I tried to install but failed ##issue:https://gist.github.com/alstat/3bec32e1ad17515d7b3a#gistcomment-1570124 https://stat.ethz.ch/pipermail/r-sig-debian/2012-November/002012.html
install libtiff
install
tiff
after check that libtiff-4 has been installed.