Open jz-stat opened 2 years ago
The easiest solution is to install again, and answer "no" to install from source. This will install the binary version of Hmisc for macOS, which is indeed an older version. If you need the newest version of Hmisc, you will have to compile it (which is what happens when you answer "yes"). In order to compile R packages, you will likely need gcc and gfortran. For reference, see https://mac.r-project.org/tools/.
You can install the Command Line Tools package by running the xcode-select --install
command. (https://developer.apple.com/library/archive/technotes/tn2339/_index.html)
This needs to be downloaded and installed - you can probably use https://mac.r-project.org/tools/gfortran-8.2-Mojave.dmg
I was able to compile on M1 mac after following the directions for Apple silicon Macs at: to unpack the tarball below. https://mac.r-project.org/tools/gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz
La solution la plus simple consiste à réinstaller et à répondre "non" pour installer à partir des sources. Cela installera la version binaire de Hmisc pour macOS, qui est en effet une version plus ancienne. Si vous avez besoin de la dernière version de Hmisc, vous devrez la compiler (c'est ce qui se passe lorsque vous répondez "oui"). Pour compiler les packages R, vous aurez probablement besoin de gcc et de gfortran. Pour référence, voir https://mac.r-project.org/tools/ .
gcc
Vous pouvez installer le package Outils de ligne de commande en exécutant la
xcode-select --install
commande. ( https://developer.apple.com/library/archive/technotes/tn2339/_index.html )gfortran
Cela doit être téléchargé et installé - vous pouvez probablement utiliser https://mac.r-project.org/tools/gfortran-8.2-Mojave.dmg
Thanks! it worked for me
Please advise how to fix this or let me know if you need any other info. Thanks!