Question about install nlmixr #591
Replies: 3 comments
-
Also My laptop is macbook M1 |
Beta Was this translation helpful? Give feedback.
-
And I already download the fortran tool-chain from https://github.com/fxcoudert/gfortran-for-macOS/releases |
Beta Was this translation helpful? Give feedback.
-
Thanks for your patience, I do not have any mac computers, but I have a mac runner. The runner script is here: https://github.com/nlmixr2/nlmixr2/blob/main/.github/workflows/R-CMD-check.yaml For this build you have to:
From homebrew you should install some tools: brew install --cask xquartz
brew install cairo
brew install libgit2
brew install udunits Then since you have the fortran tool-chain installed, you will need to install the links to it: sudo ln -s /usr/local/bin/gfortran-10 /usr/local/bin/gfortran
sudo mkdir /usr/local/gfortran
sudo ln -s /usr/local/gfortran-10 /usr/local/gfortran Then you will have to modify your try(dir.create("~/.R"))
writeLines(c("GCCBASE:=$(shell brew --prefix gcc)","FLIBS=-L$(GCCBASE)/lib/gcc/10/lib -lm",""),"~/.R/Makevars") Depending on your architecture, you may need to reinstall install.packages("symengine", type="source") After that you should be able to install Since this is a bit complicated, it is easier to use the docker image on the mac. @RichardHooijmaijers knows more about the docker image. |
Beta Was this translation helpful? Give feedback.
-
Hi,officer
Could you please help me? I can't use library(nlmixr). it says
ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [nlmixr.so] Error 1
ERROR: compilation failed for package ‘nlmixr’
Warning in install.packages :
installation of package ‘nlmixr’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/74/vpcrzbw13p119hdy0yclqzgh0000gn/T/RtmpYSmegO/downloaded_packages’
Beta Was this translation helpful? Give feedback.
All reactions