How to build and install Valgrind on Mac?

后端 未结 5 1562
粉色の甜心
粉色の甜心 2021-02-03 22:14

I am on Mac OS X using codeblocks 10.05

I downloaded Valgrind, and extracted a folder. I am completely lost from there, and have no idea how to build it.

I do no

5条回答
  •  攒了一身酷
    2021-02-03 23:20

    You may find it easier to use something like macports. How to install that is probably beyond the scope of this question, but they have a page dedicated to it on their site.

    Once you have macports installed, you need to type:

    sudo port install valgrind +universal
    

    As you say you don't have any experience of command lines, let's just briefly go through the different parts of this command:

    • sudo means the rest of the command will run as root, and will ask for your password. This is needed for the installer to have the correct permissions
    • port is the command line tool for managing macports
    • install is a command for port. Try port help to see a list of commands.
    • valgrind tells macports what it should be installing
    • +universal is a variant. This tells macports to configure valgrind to support 32 bit and 64 bit support.

提交回复
热议问题