GenericMappingTools / gmt-for-geodesy

Material for the annual GMT for EarthScope short course
35 stars 16 forks source link

How to update to gmt 6.4 on MacOS #14

Closed Elise-J10 closed 1 year ago

Elise-J10 commented 2 years ago

I am borrowing a Mac13 and it currently has gmt version 6.3.0. I need version 6.4.0 but am having trouble updating it. I use XQuartz. I have tried typing "brew upgrade gmt" and "sudo brew upgrade gmt" but this is not working. I get these errors. How can I fix this and upgrade?

Screen Shot 2022-07-01 at 7 12 09 AM Screen Shot 2022-07-01 at 7 11 47 AM
joa-quim commented 2 years ago

What the errors are saying is that you should not run homebrew as root. i.e. do not run the command under `sudo ...``

Elise-J10 commented 2 years ago

I have also tried without sudo. That is what gave me the very long results beginning with "/usr/local/Homebrew is not writable

joa-quim commented 2 years ago

Ah, the Unix beauties. What about installing a Boot Camp Windows on your Mac to have a troubless OS?

Ok, joke aside (is it :) ?), perhaps the better is to install the GMT bundle. Pick the appropriate .dmg (the x86_64 if it's not an M1 Mac) from https://github.com/GenericMappingTools/gmt/releases/tag/6.4.0

Elise-J10 commented 2 years ago

Okay, I will try downloading the .dmg. How do I install it? (I am verrryy new to coding. I don't know how to command an install)

PaulWessel commented 2 years ago

Double-clicking on the installer icon is not exactly coding - it is just installing software like anything else on a Mac.