-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sf installation problem under Mac OS 11 - Big Sur #1542
Comments
I managed to get "sf" to run on MacOS 11.0.1 (BigSur) by recompiling most of the required packages. Here's the recipe:
"brew install wget".
(a) sqlite-autoconf-3330000.tar.gz from "https://www.sqlite.org/download.html".
% sudo ./configure
|
Important update from Simon Urbanek: |
Thank you for the detailed explanation, I'll try and get back with the results. |
Hi Duccio
The problem has been solved by the R lead developer Simon Urbanek
https://stat.ethz.ch/pipermail/r-sig-mac/2020-November/013783.html <https://stat.ethz.ch/pipermail/r-sig-mac/2020-November/013783.html>
Best
Gilberto
===========================
Prof Dr Gilberto Camara
Secretariat Director
GEO - Group on Earth Observations
7 bis, Avenue de La Paix
CH-1211 Geneva - Switzerland
Tel: +41227308480
Web: www.earthobservations.org
… On 20 Nov 2020, at 10:20, Duccio Aiazzi ***@***.***> wrote:
Thank you for the detailed explanation, I'll try and get back with the results.
One thing, I have installed Xcode beta but the previous version is still there and now I have two versions on my system. Shall I remove the old one?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#1542 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABOHEDKQJJJHJ473OC7FH7TSQYYETANCNFSM4TYNYFEQ>.
|
Great, I managed to install everything I need. Thank you! |
The problem has been solved and |
** R
The downloaded source packages are in I am not able to compile sf. Any ideas? |
Hi
From your link, it appears that you are using an old version of gcc installed by HomeBrew. I recommend that you use the latest Apple C/C++ compiler (Apple clang version 11.0.3), which can be downloaded from Apple.
Best
Gilberto
===========================
Prof Dr Gilberto Camara
Secretariat Director
GEO - Group on Earth Observations
Web: www.earthobservations.org
Personal:www.gilbertocamara.org
… On 11.01.2021, at 21:29 , anirbanmajumdar ***@***.***> wrote:
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
• DONE (rgdal)
• installing source package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: /usr/local/Cellar/gcc/9.1.0/bin/gcc-7
configure: CXX: /usr/local/bin/ccache /usr/local/opt/llvm/bin/clang++ -std=c++11
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 3.2.0
checking GDAL version >= 2.0.1... yes
checking for gcc... /usr/local/Cellar/gcc/9.1.0/bin/gcc-7
checking whether the C compiler works... no
configure: error: in /private/var/folders/y2/2_2brn6x4871ymtyc7dx8wyr0000gn/T/RtmpoMThLf/R.INSTALL7d5011572784/sf': configure: error: C compiler cannot create executables See config.log' for more details
ERROR: configuration failed for package ‘sf’
• removing ‘/Users/xxxx/Rlibs/sf’
• restoring previous ‘/Users/xxxx/Rlibs/sf’
The downloaded source packages are in
‘/private/var/folders/y2/2_2brn6x4871ymtyc7dx8wyr0000gn/T/RtmpHJuiwy/downloaded_packages’
Warning message:
In install.packages(c("rgdal", "sf"), , "https://mac.R-project.org") :
installation of package ‘sf’ had non-zero exit status
I am not able to compile sf. Any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Has anyone gotten this to work on an M1 (Apple Silicon) machine with R-devel? Using:
I get:
For the
for Interestingly, I had these compiling properly with an earlier version of R-devel and the homebrew libraries, I'm not sure what change broke the installation. |
This indicates that you are trying to link against a GDAL version that was not compiled against PROJ; |
My
And when installing
|
And this?
|
A quick note about Big Sur: for each version that is installed/upgraded, one has to download a new version of MacOS Command Line tools. I upgraded to Big Sur 11.2.1 yesterday and today nothing worked until I installed a new version of the command line tools.
===========================
Prof Dr Gilberto Camara
Secretariat Director
GEO - Group on Earth Observations
www.earthobservations.org
… On 24 Feb 2021, at 17:28, Edzer Pebesma ***@***.***> wrote:
And this?
configure: error: cannot run C++ compiled programs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I just confirmed that the command line tools are installed and up to date. (Everything else is also able to compile and install properly.) |
Update: I was able to get |
Hello,
After the update to Big Sur, the installation of
sf
broke.The installation with brew as suggested by @abuabara in #1536 gives the following warning:
rgeos
If I install
rgeos
from source:If I install it from binary it works:
rgdal
If I install
rgdal
from source I get this error:If I install it from binary, I get this error:
sf
If I install directly
sf
, I get the same error as ingdal
Thank you
The text was updated successfully, but these errors were encountered: