Articles

Affichage des articles du novembre, 2022

install sf et terra in MacOSX with ARM processor

In terminal: brew install proj brew install sqlite3 in R: install.packages("sf", type = "source", configure.args = c("--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib", "--with-proj-lib=/opt/homebrew/opt/proj/lib")) install.packages("terra", type = "source", configure.args = c("--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib", "--with-proj-lib=/opt/homebrew/opt/proj/lib")) or Check the last version here: https://CRAN.R-project.org/package=terra and do install.packages("http://cran.r-project.org/src/contrib/terra_1.7-71.tar.gz", repos=NULL, type="source", configure.args = c("--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib", "--with-proj-lib=/opt/homebrew/opt/proj/lib"))

After Homebrew installs

 To use the bundled libc++ please add the following LDFLAGS:   LDFLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++" llvm is keg-only, which means it was not symlinked into /opt/homebrew, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have llvm first in your PATH, run:   echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc For compilers to find llvm you may need to set:   export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"   export CPPFLAGS="-I/opt/homebrew/opt/llvm/include" poppler-qt5 is keg-only, which means it was not symlinked into /opt/homebrew, because it conflicts with poppler. If you need to have poppler-qt5 first in your PATH, run:   echo 'export PATH="/opt/homebrew/opt/poppler-qt5/bin:$PATH"' >> ~/.zshrc For compilers to find poppler-qt5 you may need to set:   export LDFLAGS