make fails while installing Valgrind

后端 未结 4 452
鱼传尺愫
鱼传尺愫 2020-12-06 00:02

I\'m trying to install Valgrind on a Mac with Snow Leopard but am getting an error. This is what I\'m typing into Terminal.

$ curl -O http://valgrind.org/do         


        
4条回答
  •  有刺的猬
    2020-12-06 00:38

    The best way to get valgrind compiled properly is to use the 'xcode-select --install' command as mentioned in the above answer. However, as sub-optimal hack, you can get it compiled by downloading the following files from OSX /mach source into /usr/include/mach (create this directory):

    mach_vm.defs    
    task.defs
    thread_act.defs
    vm_map.defs
    

    It's a slightly dirty hack, but it should get you going if you really don't want to download/install the large Xcode original files.

提交回复
热议问题