i've problem with rgdal and spproj, i'm on mac-osx-10.4.5
i've installed grass6.1.dmg
when i try to install rgdal R give me this error:

* Installing *source* package 'rgdal' ...
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
checking for pj_init_plus in -lproj... no
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 proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
libproj.a and proj_api.h not found in standard search locations,
edit src/Makevars manually, adding -I<directory with proj_api.h>
to PKG_CPPFLAGS = , and -L<directory with libproj.a> to PKG_LIBS =
** Removing '/Library/Frameworks/R.framework/Versions/2.2/Resources/ 
library/rgdal'
ERROR: configuration failed for package 'rgdal'

the same forr spproj :
* Installing *source* package 'spproj' ...
creating cache ./config.cache
checking for pj_init_plus in -lproj... no
checking how to run the C preprocessor... cc -E
checking for proj_api.h... no
libproj.a and proj_api.h not found in standard search locations,
edit src/Makevars manually, adding -I<directory with proj_api.h>
to PKG_CPPFLAGS = , and -L<directory with libproj.a> to PKG_LIBS =
** Removing '/Lirbrary/Frameworks/R.framework/Versions/2.2/Resources/ 
library/spproj'
ERROR: configuration failed for package 'spproj'

the path for file libproj.a is :
/usr/local/grasslib/lib/libproj.a

and proj_api.h
/usr/local/grasslib/include/proj_api.h

how can i do?
i must opent the rgdal package and in :
rgdal/src
i have two file:

1)Makevars.in:
PKG_CPPFLAGS=@PKG_CPPFLAGS@ -g -DRGDALDEBUG
PKG_LIBS=@PKG_LIBS@ -lproj

2) Makevars.win

GDAL_INC_DIR=${GDAL_HOME}/include
GDAL_LIB_DIR=${GDAL_HOME}/lib

PKG_CPPFLAGS=-I${GDAL_INC_DIR} -g -DRGDALDEBUG
PKG_LIBS=-L${GDAL_LIB_DIR} -lgdal -lproj

wath can i do?
please halpe-me!!!


	[[alternative HTML version deleted]]

