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
The core process is pretty simple:
Make sure you are in the correct directory.
First run:
./configure
when that is finished, run:
make
at this point you will need to su
into root (this is relatively tricky to do, see the note at the end). As root, run:
make install
When this is finished you will have a working valgrind installation. Test it by running
valgrind ls -l
To su
into root, you will need to have set up a root account. If you have not done this in the past, see the instructions from apple here.
To perform the actual su
, you will first have to be running an account with administrator privileges. If you are not already doing so, you can switch users with the following:
su admin
where admin
is the name of an user with administrator privileges (you will need to enter the password for this account). From there, you can then run su
to go into root:
su
You will need to enter the root password that you set up earlier.