How to build and install Valgrind on Mac?

后端 未结 5 1563
粉色の甜心
粉色の甜心 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:01

    Recommended:

    Use brew: brew install valgrind

    Manual Install:

    Here's what worked on my mac (10.6). Double-check you have the latest version (right now, 3.7.0), then change into the uncompressed directory

    cd /users/(insert username here)/downloads/valgrind-3.7.0
    

    I suggest you do as another posted and read the readme.

    nano README
    

    Commence the build; /usr/local is the place on the filesystem that the program will be installed to. There are many arguments like prefix that are available to customize the installation to your particular system if it doesn't work by default. Normally just using ./configure works perfectly well though.

    ./configure --prefix=/usr/local
    
    make
    
    sudo make install
    

    Or you could probably get it from fink or macports or homebrew.

提交回复
热议问题