rimage doesn't install on Mac OS X 10.4
Thanks, Scott. That shows that my guess was wrong :).
Please make sure you're using Apple's gcc: run "which g++" and make
sure it's showing /usr/bin/g++ (in fact it's worth running
system("which g++") in R to make sure R doesn't add anything). If
that's not the case, please fix your PATH to /usr/bin before any other
paths and/or move any rogue compilers aside. If that is not the issue,
let me know.
Cheers,
S
PS: There is no need to use sudo if you are admin already. Using sudo
is tricky as it makes it impossible for admins to update packages
later without running as root which should be avoided in general. The
problem is that using sudo just once is enough to lock you in that.
On Nov 12, 2008, at 15:33 , Waichler, Scott R wrote:
can you, please, include sessionInfo() in your output? Without knowing what machine you're running on (and incomplete output you sent) I can only guess that you simply don't have universal binary of your dependent libraries so you cannot build a universal package (somewhat likely given that you're pulling in fink directories).
Here is the sessionInfo() output from my ssh session on the Mac:
sessionInfo()
R version 2.8.0 (2008-10-20) powerpc-apple-darwin8.11.1 locale: C attached base packages: [1] stats graphics grDevices utils datasets methods base And here's the complete output from my install attempt: ice.pnl.gov:/home/waichler<952>sudo R CMD INSTALL --configure-vars='LDFLAGS=-L/sw/lib CPPFLAGS=-I/sw/include' /Users/ladmin/rimage_0.5-7.tar.gz Password: * Installing to library '/Library/Frameworks/R.framework/Resources/library' * 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 - ppc g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include -I/usr/local/include -fPIC -g -O2 -c equalize.cpp -o equalize.o gcc -arch ppc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include-I/usr/local/include -fPIC -g -O2 -c fftw_access_func.c -o fftw_access_func.o g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include -I/usr/local/include -fPIC -g -O2 -c freqfilters.cpp -o freqfilters.o g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include -I/usr/local/include -fPIC -g -O2 -c interface.cpp -o interface.o gcc -arch ppc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include-I/usr/local/include -fPIC -g -O2 -c jpegio.c -o jpegio.o jpegio.c: In function 'read_JPEG_file': jpegio.c:108: warning: pointer targets in assignment differ in signedness gcc -arch ppc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include-I/usr/local/include -fPIC -g -O2 -c laplacian.c -o laplacian.o laplacian.c: In function 'laplacian': laplacian.c:14: warning: implicit declaration of function 'clearFrame' g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include -I/usr/local/include -fPIC -g -O2 -c matrix.cpp -o matrix.o gcc -arch ppc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include-I/usr/local/include -fPIC -g -O2 -c smooth.c -o smooth.o gcc -arch ppc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2 -I/sw/include-I/usr/local/include -fPIC -g -O2 -c sobel.c -o sobel.o g++ -arch ppc -dynamiclib -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o rimage.so equalize.o fftw_access_func.o freqfilters.o interface.o jpegio.o laplacian.o matrix.o smooth.o sobel.o -L/sw/lib -ljpeg -lfftw -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation ld: /Library/Frameworks/R.framework/../R.framework/R load command 14 unknown cmd field /usr/bin/libtool: internal link edit command failed make: *** [rimage.so] Error 1 chmod: /Library/Frameworks/R.framework/Versions/2.8/Resources/library/ rimage/li bs/ppc/*: No such file or directory ERROR: compilation failed for package 'rimage' ** Removing '/Library/Frameworks/R.framework/Versions/2.8/Resources/library/ rimage' ice.pnl.gov:/home/waichler<953> Scott