after I reinstalled fftw3 using
./configure --enable-shared as suggested by Duncan. Here is
the configure output, in case it would help:
* installing to library '/Library/Frameworks/R.framework/Resources/
library'
* installing *source* package 'Rcartogram' ...
checking for pkg-config... no
Looking for fftw3 files in /usr/local
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Can compile with fftw3.h
checking for fftw_malloc in -lfftw3... yes
Trying to link against libfftw3
Can link against libfftw3
configure: creating ./config.status
config.status: creating src/Makevars
** libs
** arch - x86_64
gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/
Resources/include -I/Library/Frameworks/R.framework/Resources/
include/x86_64 -I/usr/local/include/ -DNOPROGRESS -I/usr/local/
include -fPIC -g -O2 -c Rcart.c -o Rcart.o
gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/
Resources/include -I/Library/Frameworks/R.framework/Resources/
include/x86_64 -I/usr/local/include/ -DNOPROGRESS -I/usr/local/
include -fPIC -g -O2 -c cart.c -o cart.o
gcc -arch x86_64 -std=gnu99 -dynamiclib -Wl,-
headerpad_max_install_names -undefined dynamic_lookup -single_module
-multiply_defined suppress -L/usr/local/lib -o Rcartogram.so Rcart.o
cart.o -L/usr/local/lib -lfftw3 -lfftw3 -F/Library/Frameworks/
R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
url: www.econ.uiuc.edu/~roger Roger Koenker
email rkoenker at uiuc.edu Department of Economics
vox: 217-333-4558 University of Illinois
fax: 217-244-6678 Urbana, IL 61801
On Oct 20, 2009, at 10:44 PM, Mark Daniel Ward wrote:
I am trying to install the Rcartogram library. I've never had
trouble doing
this before, but I recently upgraded to Snow Leopard, which may be
causing a
problem. I do have FFTW3 installed on my machine, and I've never
had trouble
with it before either. I even tried installing FFTW3 again, but
this did not
seem to fix the problem.
Here is the error I get when trying to install the Rcartogram
library from
Omegahat. If anyone has any suggestions, I would really appreciate
it.
#######################################################################
type="source")
trying URL 'http://www.omegahat.org/R/src/contrib/Rcartogram_0.2-2.tar.gz'
Content type 'application/x-gzip' length 123576 bytes (120 Kb)
opened URL
==================================================
downloaded 120 Kb
* Installing *source* package ?Rcartogram? ...
checking for pkg-config... no
Looking for fftw3 files in /usr/local
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Can compile with fftw3.h
checking for fftw_malloc in -lfftw3... yes
Trying to link against libfftw3
Can link against libfftw3
configure: creating ./config.status
config.status: creating src/Makevars
** libs
** arch - i386
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/
Resources/include -
I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/
local/include/ -
DNOPROGRESS -I/usr/local/include -fPIC -g -O2 -c Rcart.c -o
Rcart.o
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/
Resources/include -
I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/
local/include/ -
DNOPROGRESS -I/usr/local/include -fPIC -g -O2 -c cart.c -o cart.o
gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-
headerpad_max_install_names -mmacosx-
version-min=10.4 -undefined dynamic_lookup -single_module -
multiply_defined
suppress -L/usr/local/lib -o Rcartogram.so Rcart.o cart.o -L/usr/
local/lib -
lfftw3 -lfftw3 -F/Library/Frameworks/R.framework/.. -framework R -
Wl,-framework
-Wl,CoreFoundation
ld: warning: in /usr/local/lib/libfftw3.a, file is not of required
architecture
ld: warning: duplicate dylib /usr/local/lib/libgcc_s.1.dylib
** R
** data
** demo
** preparing package for lazy loading
** help
*** installing help indices
Building/Updating help pages for package 'Rcartogram'
Formats: text html latex example
addBoundary text html latex example
cartogram text html latex example
uspop text html latex example
** building package indices ...
* DONE (Rcartogram)
The downloaded packages are in
?/private/var/folders/bP/bPCSLe+IHZab-XXPI9KflE+++TM/-Tmp-
/RtmpZhzOMh/downloaded_packages?
Updating HTML index of packages in '.Library'