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="-L/opt/homebrew/opt/poppler-qt5/lib"

  export CPPFLAGS="-I/opt/homebrew/opt/poppler-qt5/include"


For pkg-config to find poppler-qt5 you may need to set:

  export PKG_CONFIG_PATH="/opt/homebrew/opt/poppler-qt5/lib/pkgconfig"

  export PKG_CONFIG_PATH="/opt/homebrew/opt/poppler-qt5/share/pkgconfig"



_______
ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1'
This is due to no Fortran compiler and it can be solved with an experimental build given that the R is installed at /opt/R/arm64/ via Homebrew

# for R>=4.2.0
curl -O https://mac.r-project.org/tools/gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz

# unpack
sudo tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /

# /opt/R/arm64/gfortran/SDK has to point to your macOS SDK
# sudo gfortran-update-sdk

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04