well, That didnt work.

I upgraded to  R 2.12  and sure enough GDAL is broken.  I downloaded the
latest framework
from KngChaos and did a standard install.

I tried the code provided here and Got the following

> install.packages("rgdal",
configure.args='--with-gdal-config=/Library/Frameworks/GDAL.Framework/Unix/bin/gdal-config
--with-proj-include=/Library/Frameworks/PROJ.framework/unix/include-with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib/',dependencies=TRUE,
type="source")
Installing package(s) into ‘/Users/mosher/Library/R/2.12/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgdal_0.6-30.tar.gz'
Content type 'application/x-gzip' length 1431492 bytes (1.4 Mb)
opened URL
==================================================
downloaded 1.4 Mb

* installing *source* package ‘rgdal’ ...
gdal-config: /Library/Frameworks/GDAL.Framework/Unix/bin/gdal-config
checking for gcc... gcc -arch x86_64 -std=gnu99
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 -arch x86_64 -std=gnu99 accepts -g... yes
checking for gcc -arch x86_64 -std=gnu99 option to accept ANSI C... none
needed
checking how to run the C preprocessor... gcc -arch x86_64 -std=gnu99 -E
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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
Error: proj_api.h not found.
If the PROJ.4 library is installed in a non-standard location,
use --configure-args='--with-proj-include=/opt/local/include'
for example, replacing /opt/local/* with appropriate values
for your installation. If PROJ.4 is not installed, install it.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/Users/mosher/Library/R/2.12/library/rgdal’

The downloaded packages are in

‘/private/var/folders/ea/eaXeR9KIEZSbgaDPdoLSwU+++TI/-Tmp-/Rtmpt5Nycy/downloaded_packages’
Warning messages:
1: In install.packages(c("rgdal"), lib =
"/Users/mosher/Library/R/2.12/library",  :
  installation of package 'rgdal' had non-zero exit status
2: In install.packages(c("rgdal"), lib =
"/Users/mosher/Library/R/2.12/library",  :
  installation of package 'rgdal' had non-zero exit status
3: In install.packages(c("rgdal"), lib =
"/Users/mosher/Library/R/2.12/library",  :
  installation of package 'rgdal' had non-zero exit status
4: In install.packages("rgdal", configure.args =
"--with-gdal-config=/Library/Frameworks/GDAL.Framework/Unix/bin/gdal-config
--with-proj-include=/Library/Frameworks/PROJ.framework/unix/include-with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib/",
 :
  installation of package 'rgdal' had non-zero exit status

2010/10/27 Ralf Schäfer <sena...@ecotoxicology.de>

> Hello,
>
> don`t know if this issue is already fixed given that Roger posted an
> answer.
> However, I just installed from source with the command:
>
> install.packages("rgdal",
> configure.args='--with-gdal-config=/Library/Frameworks/GDAL.Framework/Unix/bin/gdal-config
> --with-proj-include=/Library/Frameworks/PROJ.framework/unix/include-with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib/',dependencies=TRUE,
> type="source")
>
> R version 2.12.0 (2010-10-15)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> The frameworks provided on Kyngchaos do not work for me under 2.12.
>
> Regards,
> Ralf
>
> ------------------------------------------------------------
>
> Prof. Dr. rer. nat. Ralf Bernhard Schäfer
> Juniorprofessor Quantitative Landscape Ecology
> Environmental Scientist (M.Sc.)
> Institute for Environmental Sciences
> University Koblenz-Landau
> Forststrasse 7
> 76829 Landau
> Germany
> Mail: schaefer-r...@uni-landau.de
> Phone: ++49 (0) 6341 280-31536
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to