Open kevinushey opened 1 month ago
Hi @kevinushey , if nc-config
is reporting bogus libraries on Homebrew, it may be important to report this issue to the Homebrew project.
As a workaround, please try the --with-nc-config-static=no
configure option when installing RNetCDF. For example:
install.packages("RNetCDF", type="source", configure.args="--with-nc-config-static=no")
Thanks! That does indeed resolve the issue; this at least gives me something to refer to if the issue comes up again on the renv
side.
This was originally seen with https://github.com/rstudio/renv/issues/2009, but I can reproduce when attempting to install the package from sources on macOS. For example:
The problem here is that
nc-config
appears to be giving bogus libraries Note the line:This leads to this failure:
Even though static libraries are being requested, HDF5 "shared" libraries appear to be requested in the invocation, and those libraries do not exist with that name in a Homebrew hdf5 installation. They also shouldn't be needed for this particular test, if I understand correctly?
Here's the lines of interest in
config.log
:For reference, with hdf5: