[R-pkg-devel] Problems with devtools::build() in R
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Tue May 16 18:27:47 CEST 2023
В Tue, 16 May 2023 12:07:05 -0400
Jarrett Phillips <phillipsjarrett1 using gmail.com> пишет:
> ld: warning: directory not found for option
> '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1'
> ld: warning: directory not found for option
> '-L/opt/R/arm64/gfortran/lib'
> ld: library not found for -lgfortran
> I've also installed `Homebrew` and `gfortran`, verifying via typing
> in the Terminal.
Was it the Homebrew build of gfortran, or the one from
<https://mac.r-project.org/tools/>? Does this happen if you run R CMD
build <path> in the Terminal instead of devtools::build()?
It might be that you need this specific R.home('etc')build, or you
might have to adjust some paths in file.path(R.home('etc'),
'Makeconf'). A different build of gfortran may be not compatible with
the one used to compile R.
If you don't get a useful answer here, consider asking at
R-SIG-Mac using r-project.org, because this seems to be a Mac-specific
problem.
--
Best regards,
Ivan
More information about the R-package-devel
mailing list