Thanks for the tip, Kurt!!
I guess this is probably a painfully obvious solution to anyone who knows what they’re doing, but it turns out I was missing the link to GDAL in my install_makefiles script. There’s a line in there that looks like this:
$LFLAGS = "-L$NETCDFLIBDIR -lm -lnetcdf";
It should have had a link to GDAL like this:
$LFLAGS = "-L$NETCDFLIBDIR -lm -lnetcdf -lgdal";
So it worked! It ran with no errors, and seemed to build correctly. So one step closer! I then continued along the instructions to setting the .bashrc file. I had left out one line before, so I added it, and then ran:
$ source .bashrc
To test my GMT and MBSystem installs, I tried:
$ psxy
$ man psxy
$ mbgrid
$ man mbgrid
Since I don’t know how to use GMT and MBSystem yet, I don’t know if these did what they were supposed to. But it seemed like they did, except for mbgrid, which came up with an error: “Unable to open data list file: datalist.mb-1“. But at least it recognized mbgrid as a command and tried to do something!
Ah, finally, I’m getting somewhere!