Florencio Gonzalez Blazquez
2008-Nov-10 11:58 UTC
[R] rimage don't install on mac OS X 10.5.5 solved
Hello i resolve the installation of the package rimage following the indications by Andy Jacobson in the list osx@tazman.princeton.edu the trick is using R CMD INSTALL --configure-vars='LDFLAGS=-L/sw/lib CPPFLAGS=-I/sw/include' rimage_0.5-7.tar.gz the packages fftw2.1.5 and libjpeg were installed via Fink. Thanks for Prof. Brian Ripley for ththe response and hope this can help anyone. Regards, Florencio González Blázquez Message: 93 Date: Fri, 31 Oct 2008 11:40:23 +0100 From: Florencio Gonzalez Blazquez <florencio.gblazquez@gmail.com> Subject: Re: [R] rimage don't install on mac OS X 10.5.5 To: Prof Brian Ripley <ripley@stats.ox.ac.uk> Cc: r-help@r-project.org Message-ID: <51555760-5E0C-4828-B780-2B716AE7C5A6@gmail.com> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Thanks for your rapid response. I tried your sugerences and set C_INCLUDE_PATH=/usr/local/include. I also look in /usr/local/include and here it appears fftw.h and also fftw3.f, fftw3.h, fftw_threads.h and rfftw.h rfftw_threads.h but it don't work also. I will try to update to R 2.8.0 Thanks for your sugestions El 31/10/2008, a las 10:10, Prof Brian Ripley escribi?:> On Fri, 31 Oct 2008, Florencio Gonzalez Blazquez wrote: > >> Hello, i'm trying to install de rimage package form source. I have >> installed fftw2.1.5 and libjpeg, but during compilation appear this >> message: > > Where did you install the fftw headers? If in /usr/local/include, > this is apparently not in the C_INCLUDE_PATH for your system. (The > reason that configure finds ffw.h but the compile does not is most > likely that -isysroot has been set in the compile: the author of > rimage has not been careful to use the same compiler flags as R > uses. Cc:ing the author here -- please study 'Writing R Extensions' > about how to use a configure script in a package.) I suspect the > workaround is to set C_INCLUDE_PATH=/usr/local/include (or as > appropriate) in the environment used for the compile, or to install > ffw with --prefix=/usr. > > There is a list, R-sig-mac, for MacOS-specific questions and you > will get the ears of the MacOS experts there. > > Please note the advice of the posting guide to update your R *before > posting*: R 2.7.0 is rather old and many bugs have been fixed since. > >> >> * Installing *source* package 'rimage' ... >> checking for g++... g++ >> checking for C++ compiler default output... a.out >> checking whether the C++ compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking for gcc... gcc >> checking whether we are using the GNU C compiler... yes >> checking whether gcc accepts -g... yes >> checking for gcc option to accept ANSI C... none needed >> checking how to run the C preprocessor... gcc -E >> checking for egrep... grep -E >> checking for ANSI C header files... yes >> checking for sys/types.h... yes >> checking for sys/stat.h... yes >> checking for stdlib.h... yes >> checking for string.h... yes >> checking for memory.h... yes >> checking for strings.h... yes >> checking for inttypes.h... yes >> checking for stdint.h... yes >> checking for unistd.h... yes >> checking fftw.h usability... yes >> checking fftw.h presence... yes >> checking for fftw.h... yes >> checking jpeglib.h usability... yes >> checking jpeglib.h presence... yes >> checking for jpeglib.h... yes >> checking for inline... inline >> checking for stdlib.h... (cached) yes >> checking for GNU libc compatible malloc... yes >> configure: creating ./config.status >> config.status: creating src/Makevars >> ** libs >> ** arch - i386 >> g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx- >> version-min=10.4 -I/Library/Frameworks/R.framework/Resources/ >> include -I/Library/Frameworks/R.framework/Resources/include/i386 -g >> -O2 -msse3 -fPIC -g -O2 -march=nocona -c equalize.cpp -o >> equalize.o >> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx- >> version-min=10.4 -std=gnu99 -I/Library/Frameworks/R.framework/ >> Resources/include -I/Library/Frameworks/R.framework/Resources/ >> include/i386 -g -O2 -msse3 -fPIC -g -O2 -march=nocona -c >> fftw_access_func.c -o fftw_access_func.o >> fftw_access_func.c:10:18: error: fftw.h: No such file or directory >> fftw_access_func.c: In function ?fftw_access_func?: >> fftw_access_func.c:20: error: ?fftwnd_plan? undeclared (first use >> in this function) >> fftw_access_func.c:20: error: (Each undeclared identifier is >> reported only once >> fftw_access_func.c:20: error: for each function it appears in.) >> fftw_access_func.c:20: error: syntax error before ?plan? >> fftw_access_func.c:21: error: ?fftw_complex? undeclared (first use >> in this function) >> fftw_access_func.c:21: error: ?i? undeclared (first use in this >> function) >> fftw_access_func.c:21: error: ?s? undeclared (first use in this >> function) >> fftw_access_func.c:32: error: syntax error before ?)? token >> fftw_access_func.c:33: error: syntax error before ?)? token >> fftw_access_func.c:39: error: ?fftw_real? undeclared (first use in >> this function) >> fftw_access_func.c:39: error: syntax error before ?img? >> fftw_access_func.c:40: error: syntax error before ?img? >> fftw_access_func.c:43: error: ?plan? undeclared (first use in this >> function) >> fftw_access_func.c:43: warning: implicit declaration of function >> ?fftw2d_create_plan? >> fftw_access_func.c:43: error: ?FFTW_ESTIMATE? undeclared (first use >> in this function) >> fftw_access_func.c:45: warning: implicit declaration of function >> ?fftwnd_one? >> fftw_access_func.c:46: warning: implicit declaration of function >> ?fftwnd_destroy_plan? >> make: *** [fftw_access_func.o] Error 1 >> chmod: /Library/Frameworks/R.framework/Resources/library/rimage/ >> libs/i386/*: No such file or directory >> ** Removing '/Library/Frameworks/R.framework/Resources/library/ >> rimage' >> >> The downloaded packages are in >> /private/var/folders/qX/qXlI7THDG4OBxM62gqgvk++++TI/-Tmp-/ >> Rtmpr3rr50/downloaded_packages >> ERROR: compilation failed for package 'rimage' >> >> I'm using R 2.7.0 in a macBook Pro 2.5 GHz Intel Core Duo with Mac >> OS X version 10.5.5 >> I hope somene could explain me what I'm doing wrong >> Thanks in advance. >> >> Florencio Gonz?lez Bl?zquez > > -- > Brian D. Ripley, ripley@stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595[[alternative HTML version deleted]]