[R] synthax for R CMD INSTALL

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jul 5 09:12:21 CEST 2008


I do not know what 'the R Utils docs' are, but --configure-args is plural!

You are not using the correct shell syntax: you need to use quotes when 
arguments contain spaces.  E.g.

--configure-args='--args=val1 --arg2=val2'

(and note that quotes are used in error info you quote).

That said, the error you got suggests that the value of 
--with-proj-include is incorrect.

I think you would be better off asking questions about installing on Mac 
OS X on r-sig-mac.

On Fri, 4 Jul 2008, Naiara Pinto wrote:

> Dear all,
>
> I am trying to install rgdal from source on a Mac OS 10.4.11. I installed
> GDAL and PROJ as frameworks so the installation does not work unless I
> explicitly state where the GDAL and PROJ libraries are. I tried:
>
> R CMD INSTALL rgdal_0.5-25
> --configure-args=--with-proj-include=/Library/Frameworks/PROJ.framework/unix/include
> --with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib
>
> but I still get error messages saying it was not able to find the PROJ
> "include" file:
>
> 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'
>
> If I understood the R Utils docs correctly, --configure-args will accept one
> argument only (so the first statement is always dropped). What should I do
> if I need to specify the paths to several files?
>
> Thank you,
>
> Naiara.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at 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



More information about the R-help mailing list