【发布时间】:2015-02-18 10:52:46
【问题描述】:
当我在 ubuntu 中使用“make”来 crunch-3.6 时,出现如下错误:
ubuntu@halflike:~/crunch-3.6$ sudo make
Building binary...
pthread -Wall -pedantic -std=c99 crunch.c -lm -o crunch
make: pthread: Command not found
make: [crunch] Error 127 (ignored)
如何解决这个问题?
【问题讨论】:
-
makefile
pthread有问题,几乎可以肯定是-lpthread并且是编译器的参数。可能有一个编译器变量未正确设置$(GCC)或其他东西。此外,您不想大部分时间都希望以 root 身份运行make。 -
我已经通过“sudo apt-get install build-essential”解决了这个问题。见stackoverflow.com/questions/11934997/…