Using rworldmap on mac, compilation of dependencies fails during install

33 views
Skip to first unread message

Breanne Kisselstein

unread,
Nov 13, 2020, 10:41:00 AM11/13/20
to rworldmap
Hi there,

When I try to install the 'rworldmap' package it says compilation fails for dependencies 'map tools' and 'fields.' Is this because I need to install 'rtools' which is a package developed for windows and not mac or for some other reason? I have no issue when installing the 'sp' package or 'rworldxtra' package needed to run this script.

I wanted to plot sampling locations in the Northeastern United States using longitude and latitude and then overlay the state maps, maybe there is another way to do this?

Thank you so much!


Copied and pasted my console for installing the 'rworldmap' package in case that is helpful:

> install.packages("rworldmap")
also installing the dependencies ‘maptools’, ‘fields’


  There are binary versions available but the source versions are later:
         binary source needs_compilation
maptools  0.9-9  1.0-2              TRUE
fields     10.3   11.6              TRUE

Do you want to install from sources the packages which need compilation? (Yes/no/cancel) yes
Content type 'application/x-gzip' length 2925754 bytes (2.8 MB)
==================================================
downloaded 2.8 MB


The downloaded binary packages are in
/var/folders/66/ljhnzljd2b9dppr32th5vx_w0000gn/T//RtmpJPgbD8/downloaded_packages
installing the source packages ‘maptools’, ‘fields’

Content type 'application/x-gzip' length 1585377 bytes (1.5 MB)
==================================================
downloaded 1.5 MB

Content type 'application/x-gzip' length 3279148 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

* installing *source* package ‘maptools’ ...
** package ‘maptools’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘maptools’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/maptools’
Warning in install.packages :
  installation of package ‘maptools’ had non-zero exit status
* installing *source* package ‘fields’ ...
** package ‘fields’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘fields’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/fields’
Warning in install.packages :
  installation of package ‘fields’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/66/ljhnzljd2b9dppr32th5vx_w0000gn/T/RtmpJPgbD8/downloaded_packages’
Reply all
Reply to author
Forward
0 new messages