Skip to content

Help with RGDAL

3 messages · Charlie Sharpsteen, Michael Denslow

#
Hi Charlie!
On Fri, Oct 30, 2009 at 5:16 PM, cls59 <chuck at sharpsteen.net> wrote:
Sorry to jump in here so late but I just gave this a try. I usually
install rgdal from CRAN on windows or download the binary from
http://www.kyngchaos.com for Mac. I wanted to try your method from
building from source since the directions were so clear and
understandable. This is the first time I have done this and I am not
very terminal savvy.

I ran the last command above and get this message:


* installing to library ?/Library/Frameworks/R.framework/Resources/library?
* installing *source* package ?rgdal? ...
gdal-config: /Library/Frameworks/GDAL.framework/unix/bin/gdal-config
/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 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 ?rgdal?
* removing ?/Library/Frameworks/R.framework/Resources/library/rgdal?


It seem to be looking for the C compiler among other things. Can you
provide any help on this?

Thanks in advance,
Michael
R version 2.10.0 Patched (2009-11-02 r50295)
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

other attached packages:
[1] sp_0.9-44

loaded via a namespace (and not attached):
[1] grid_2.10.0     lattice_0.17-26 tools_2.10.0

  
    
#
Michael D. wrote:
Hi Micheal,

It looks like the Configure script couldn't find the make command and the C
complier-- this most likely means you haven't installed the "Developer
Tools" from your OS X cd.  This installation adds programs such as make and
gcc to your system.

Try opening the "Optional Installs" folder on the OS X cd and look for a
installer that says "Xcode".  Run that installer and you should have
everything you need to build from source.

Good luck!

-Charlie

-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
#
Hi Charlie and Don!
On Wed, Nov 4, 2009 at 11:19 AM, cls59 <chuck at sharpsteen.net> wrote:
It worked! I just needed Xcode. Thanks for helping me install my first
package from source. I am now running rgdal version 0.6-20.

Don, I have used the kyngchaos binary build but wanted to see if I
could build my own and get the most recent version.

Thanks again,
Michael