在ubuntu 15.04中为John the Ripper运行make命令

时间:2015-09-23 04:38:08

标签: linux ubuntu makefile

我是Linux和ubuntu的新手,但我正在尝试在运行ubuntu 15.04的新服务器上安装John the Ripper。我使用以下方式下载了它:

wget http://www.openwall.com/john/j/john-1.8.0.tar.xz

然后我用:

解压缩它
tar -xzvf john-1.8.0.tar.gz

然后,按照说明进入src目录并运行:

sudo make clean linux-x86-64

并且正在返回此错误(我正在尝试弄清楚它的含义/如何修复它)

rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique
../run/john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com 
../run/unique.com ../run/john.exe ../run/unshadow.exe ../run/unafs.exe 
../run/unique.exe
rm -f ../run/john.exe john-macosx-* *.o *.bak core
rm -f detect bench generic.h arch.h tmp.s
cp /dev/null Makefile.dep
ln -sf x86-64.h arch.h
make ../run/john ../run/unshadow ../run/unafs ../run/unique \
JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o BSDI_fmt.o MD5_fmt.o 
MD5_std.o BF_fmt.o BF_std.o AFS_fmt.o LM_fmt.o trip_fmt.o dummy.o  
batch.o bench.o charset.o common.o compiler.o config.o cracker.o 
crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o 
loader.o logger.o math.o memory.o misc.o options.o params.o path.o 
recovery.o rpp.o rules.o signals.o single.o status.o tty.o wordlist.o 
unshadow.o unafs.o unique.o c3_fmt.o x86-64.o" \
CFLAGS="-c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer  
-DHAVE_CRYPT" \
LDFLAGS="-s  -lcrypt"
make[1]: Entering directory '/home/mike/john-1.8.0/src'
gcc -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer  -  
DHAVE_CRYPT -funroll-loops DES_fmt.c
make[1]: gcc: Command not found
Makefile:896: recipe for target 'DES_fmt.o' failed
make[1]: *** [DES_fmt.o] Error 127
make[1]: Leaving directory '/home/mike/john-1.8.0/src'
Makefile:183: recipe for target 'linux-x86-64' failed
make: *** [linux-x86-64] Error 2

1 个答案:

答案 0 :(得分:1)

您需要安装C编译器GCC。

sudo apt-get install gcc

接下来你可能会遇到丢失的库。阅读tarball中的文档,了解您还需要什么。 (可能至少libcrypt-dev。)