make:**没有指定的目标,也没有找到makefile。停止

时间:2014-05-19 15:09:18

标签: c makefile valgrind

我跟随"学习C艰难的方式"并按照以下确切说明进入了安装Valgrind的章节:

# 1) Download it (use wget if you don't have curl)
curl -O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2

# use md5sum to make sure it matches the one on the site
md5sum valgrind-3.6.1.tar.bz2

# 2) Unpack it.
tar -xjvf valgrind-3.6.1.tar.bz2

# cd into the newly created directory
cd valgrind-3.6.1

# 3) configure it
./configure

# 4) make it
make

# 5) install it (need root)
sudo make install

在步骤#4我得到标题中的错误:

make: ** NO targets specififed and no makefile found. Stop.

发生了什么事?

由于

3 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,这取决于你的计算机可能是由旧版本的valgrind中的一个错误引起的,该书要求你安装我的建议是使用

  

sudo apt-get install valgrind

希望在没有该bug的情况下获得最新最好的版本。

答案 1 :(得分:0)

那里有makefile吗?当当前文件夹中没有makefile时,通常会报告此错误。

答案 2 :(得分:0)

仅适用于Mac:

我正在按照相同的教程运行./configure

时看到了这个错误
 configure: error: Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)

Valgrind 3.10.1(我写的最新内容)并不支持Mac OS Yosemite。

现在您可以使用以下命令安装Valgrind的开发版本:

brew install --HEAD valgrind

或者也许只是继续黑客攻击,因为我确信"学习C的作者很难"也会想要你:))

相关问题