In case you have already a newer version of gdb, you first need to unlink the other version before installing the old one. The pinning operation makes sure that brew doesn't upgrade gdb to newer versions. Should you decide to do so, you can install gdb version 8.0.1 in this way. Take note of the version: you'll need it later. Verify that the operation was successfull by running: gdb -version To install the latest version of gdb, run this command: brew install gdb In this tutorial, I'm going to use gdb 8.3. You can either use gdb 8.0.1 or one of the latest versions, starting from 8.3. If you're using High Sierra (macOS 10.13) or later, be aware that gdb 8.1 and 8.2 are not compatible. Once you have Homebrew, you can install gdb. If you don't have it installed, open your Terminal prompt and write this command: /usr/bin/ruby -e "$(curl -fsSL )" The easiest way to install gdb is by using Homebrew: "the missing package manager for macOS".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |