31

i try to install valgrind on my mac but when I execute ./autogen.sh get this error:

running: aclocal
./autogen.sh: line 6: aclocal: command not found
error: while running 'aclocal'

does anybody know how to solve this?

DRINK
  • 452
  • 1
  • 6
  • 15
  • I spent some time trying to install valgrind on Yosemite earlier this week and gave up. I tried the Homebrew and MacPorts installs (latest development versions) and both failed for various reasons. Search StackOverflow for this topic though, as there are already a lot of relevant questions/answers (e.g. http://stackoverflow.com/questions/26564125/yosemite-and-valgrind/27408219#27408219) and at least one SO contributor (@RhysKidd) works on valgrind. – Paul R Apr 29 '15 at 08:46

4 Answers4

68
brew install automake 

Then you can use aclocal

庄景鹏
  • 960
  • 9
  • 7
8

Two third party tools (autoconf and automake) are required on your system to build and install a development version of Valgrind. These tools are no longer packaged with Apple's Xcode development environment and must be installed manually.

To install these tools, enter the following commands in the Terminal:

curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
tar -xzf autoconf-latest.tar.gz 
cd autoconf-[x.xx]
./configure && make && sudo make install

curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
tar -xzf automake-1.15.tar.gz
cd automake-1.15
./configure && make && sudo make install

You will then be able to continue following the steps per: http://valgrind.org/downloads/repository.html

If you are on OS X, you will want to use a development version of Valgrind at present whilst that platform's support is brought back up to standard.

e76d587d9
  • 994
  • 5
  • 14
6

If you install brew , then use brew install automake and brew install autoconf

user6063240
  • 61
  • 1
  • 1
5

You don't have autotools installed. If you want to run autogen.sh you will have to install it first.

But if you just want to install valgrind you don't need to run autogen.sh. Download latest source package from valgrind.org, extract it and run ./configure script.

$ ./configure
$ make
$ sudo make install

However, if your system is Yosemite, you will probably need latest development version from svn and you will have to install autotools first.

Paul R
  • 208,748
  • 37
  • 389
  • 560
baf
  • 4,531
  • 1
  • 21
  • 24