Cannot install RPostgreSQL from source but I have gcc
On Fri, 25 Nov 2011, Simon Urbanek wrote:
On Nov 25, 2011, at 2:52 AM, christiaan pauw wrote:
Hi Everybody Im on Mac OS X 10.6.6 $ sw_vers ProductName: Mac OS X ProductVersion: 10.6.6 BuildVersion: 10J3210 I am trying to install the latest version of JavaGD from source using the GUI Package & Data > Package Installer >CRAN (Sources) but get the following error.
You'll need to install Xcode (see the Mac FAQ).
trying URL ' http://cran.za.r-project.org/src/contrib/RPostgreSQL_0.2-1.tar.gz' Content type 'application/x-gzip' length 428050 bytes (418 Kb) opened URL ================================================== downloaded 418 Kb * installing *source* package ?RPostgreSQL? ... ** package ?RPostgreSQL? successfully unpacked and MD5 sums checked 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 ?RPostgreSQL? * removing ?/Library/Frameworks/R.framework/Versions/2.14/Resources/library/RPostgreSQL? The message says "checking for gcc... no" but I have gcc installed: (from terminal) $ which gcc /Developer/usr/bin/gcc
It means you didn't install Xcode unix system tools. In that case you have to make sure they are on the PATH in the shell that you are using R CMD INSTALL on (again, see the FAQ)
A possible extra point: if R CMD INSTALL is being run from install.packages() and that is being run from R.app, it is the PATH setting of the R.app process that is most relevant. I set mine in the ~/.Renviron file to get consistency between different R invocations. If you want to set an environment variable for all applications (Windows-style!) then http://developer.apple.com/library/mac/#qa/qa1067/_index.html might be helpful.
BTW: is there any reason why you're not using the binaries? JavaGD is available as binary and PostgreSQL is not a dependency thereof ... Cheers, Simon
How do I tell R where gcc is? Can anyone guide me on how to resolve this. sessionInfo below thanks in advance Christiaan
sessionInfo()
R version 2.14.0 (2011-10-31) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/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.14.0 [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
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