sigh
Yes. As I've made clear, ( twice), I know that it's trying to compile a source file.
Given that the netcdf4 libraries exist on my computer, and the configuration messages (which I haven't provided, but which I can, if you want) show that it's looking in the correct place for the include files and the libraries, the mystery is why it's not succeeding.
But, if you know of where I can get a binary for this library, I'll happily entertain installing that. Being a newbie, I don't know how to install anything except through the method which is failing, namely, via the command
install.packages("ncdf4")
I'd like to point out that this command has succeeded in installing packages from source for other libraries, so I'm a bit at a loss as to how to proceed.
Perhaps you can answer this question.
It says
See `config.log' for more details
Where is that file? The directories it mentions don't have it, or they've been deleted by the build process.