This is not an appropriate topic for R-help (see the posting guide), and
it is what R-sig-mac is there for.
'on Mac' is not specific enough: they will need to know your exact OS.
But it looks like a path problem. Those tools are part of Xcode, and
tools in its path is not being found *when the package installation is
being run*. And as the comment inline below shows, you didn't tell us
how you did this.
BTW, your R is very old, and the posting guide asked you to update
before posting. I don't think that would solve the immediate problem
here, but it might avoid subsequent ones.
On 24/11/2011 09:34, christiaan pauw wrote:> Hi Everybody
>
>
> I am trying to install the latest version of JavaGD from source but get the
> following error.
>
You omitted what you did here.
> trying URL
'http://cran.za.r-project.org/src/contrib/JavaGD_0.5-4.tar.gz'
>
> Content type 'application/x-gzip' length 102242 bytes (99 Kb)
>
> opened URL
>
> =================================================>
> downloaded 99 Kb
>
>
> * installing *source* package ?JavaGD? ...
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 143: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 144: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 220: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 143: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 144: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 220: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 143: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 144: make:
> command not found
>
> /Library/Frameworks/R.framework/Resources/bin/config: line 220: make:
> command not found
>
> checking for gcc... no
>
> checking for cc... no
>
> checking for cl.exe... no
>
> configure: error: no acceptable C compiler found in $PATH
>
> See `config.log' for more details.
>
> ERROR: configuration failed for package ?JavaGD?
>
>
> line 143, 144 and 220 reads as follows:
>
> 143: LIBR=`eval $query VAR=LIBR`
>
> 144: STATIC_LIBR=`eval $query VAR=STATIC_LIBR`
>
>
> 220: eval "${query} VAR=${var}"
>
>
> I do have gcc installed:
> (from terminal)
> $ which gcc
> /Developer/usr/bin/gcc
>
> Can anyone guide me on how to resolve this. sessionInfo below
>
> thanks in advance
> Christiaan
>
>> sessionInfo()
> R version 2.11.1 (2010-05-31)
> x86_64-apple-darwin9.8.0
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> loaded via a namespace (and not attached):
> [1] tools_2.11.1
> Warning messages:
>
> [[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