[R] Help with "error: no acceptable C compiler found in $PATH"

R. Michael Weylandt michael.weylandt at gmail.com
Wed Nov 16 05:33:33 CET 2011


Yes, you probably need some sort of C compiler, but why can't you just
download the appropriate binary directly? I just did on OS X 10.5.8
(admittedly for R 2.13.2, not 2.14) with no problems. The output of

sessionInfo()
install.packages("RCurl")

if you don't mind please.

Thanks,

Michael

On Tue, Nov 15, 2011 at 2:12 PM, Hari Easwaran <hariharan.pe at gmail.com> wrote:
> Dear all,
> I am trying to install a package from bioconductor (biomaRt) for which I
> need the RCurl package. I get the following main error message when I try
> to install RCurl (and its dependencies).
>
> configure: error: no acceptable C compiler found in $PATH
> See `config.log' for more details.
> ERROR: configuration failed for package ‘RCurl’
>
> I searched for possible solutions and read in some online mailing list that
> I might have to install Xcode to install the gcc compiler. I am not sure if
> I should do this because I have installed RCurl in previous versions of R
> without any problems (on this same computer). I upgraded to the latest R (R
> version 2.14.0) and faced this problem. So I downgraded to R version 2.13.2
> and still cannot install RCurl. I think my last successful installation of
> RCurl was with R version 2.11.
>
> Following is the complete error message and my R version details.
> I really appreciate any help or suggestions.
>
> Sincerely,
> Hari
>
> trying URL '
> http://watson.nci.nih.gov/cran_mirror/src/contrib/XML_3.4-3.tar.gz'
> Content type 'application/octet-stream' length 906364 bytes (885 Kb)
> opened URL
> ==================================================
> downloaded 885 Kb
>
> trying URL '
> http://watson.nci.nih.gov/cran_mirror/src/contrib/RCurl_1.7-0.tar.gz'
> Content type 'application/octet-stream' length 813252 bytes (794 Kb)
> opened URL
> ==================================================
> downloaded 794 Kb
>
> * installing *source* package ‘XML’ ...
> 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 ‘XML’
> * removing
> ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/XML’
> * installing *source* package ‘RCurl’ ...
> checking for curl-config... /usr/bin/curl-config
> checking for gcc... no
> checking for cc... no
> checking for cc... no
> checking for cl... no
> configure: error: no acceptable C compiler found in $PATH
> See `config.log' for more details.
> ERROR: configuration failed for package ‘RCurl’
> * removing
> ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/RCurl’
> * restoring previous
> ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/RCurl’
>
> The downloaded packages are in
> ‘/private/var/folders/a6/a60JdPfrHC0ZAizZWyNM-E+++TI/-Tmp-/RtmpVjBcvX/downloaded_packages’
>
>        [[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.
>
>



More information about the R-help mailing list