-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi @dickoa
Thanks so much for this package!
I am having some trouble installing prepr on an M1 Max Mac. I am trying to use it with the wdpar package (https://github.com/prioritizr/wdpar). The main error seems to be: checking for __gmpz_init in -lgmp... no configure: error: GNU MP not found!
I have installed all the prepr dependencies successfully via homebrew
brew install pkg-config
brew install gmp
brew install mpfr
brew install gdal
and checked homebrew is on the $PATH
/opt/homebrew/bin:/opt/homebrew/sbin
When running remotes::install_github("dickoa/prepr") I get the output:
Downloading GitLab repo dickoa/prepr@HEAD
from URL https://gitlab.com/api/v4/projects/18598906/repository/archive.tar.gz?sha=HEAD
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/_r/mcmw_qtn0m7cd23cbdqfszl40000gp/T/Rtmp9tM69Z/remotes786e211d1c5e/prepr-HEAD-5eae64f2b6b2f37970318a351fbb2d3050752212/DESCRIPTION’ ...
─ preparing ‘prepr’: (497ms)
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ running ‘cleanup’
─ checking for LF line-endings in source and make files and shell scripts (486ms)
─ checking for empty or unneeded directories (511ms)
─ building ‘prepr_0.1.9000.tar.gz’
- installing source package ‘prepr’ ...
** using staged installation
configure: CC: clang -arch arm64
configure: CXX: clang++ -arch arm64 -std=gnu++14
checking for gdal-config... /opt/homebrew/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 3.6.3
checking GDAL version >= 2.0.1... yes
checking for gcc... clang -arch arm64
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang -arch arm64 accepts -g... yes
checking for clang -arch arm64 option to enable C11 features... none needed
checking for __gmpz_init in -lgmp... no
configure: error: GNU MP not found!
ERROR: configuration failed for package ‘prepr’- removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/prepr’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/_r/mcmw_qtn0m7cd23cbdqfszl40000gp/T//Rtmp9tM69Z/file786e59b0e0bb/prepr_0.1.9000.tar.gz’ had non-zero exit status
The output of R.version is
R.version
_
platform aarch64-apple-darwin20
arch aarch64
os darwin20
system aarch64, darwin20
status
major 4
minor 2.3
year 2023
month 03
day 15
svn rev 83980
language R
version.string R version 4.2.3 (2023-03-15)
nickname Shortstop Beagle
I have spoken to two other colleagues, also on an M1 Mac, and they have the exact same install error. I wonder if you can help with this?
Many thanks in advance