【问题标题】:running a make command for John the Ripper in ubuntu 15.04在 ubuntu 15.04 中为 John the Ripper 运行 make 命令
【发布时间】:2015-09-23 04:38:08
【问题描述】:

我是 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

【问题讨论】:

  • sudo下应该不用编译了。事实上,这可能是个坏主意。当您想要进行系统范围的安装时,您需要sudo make install
  • 您不简单安装official package的任何特殊原因?
  • @tripleee 有几个原因,首先也是最重要的是它要花钱(不值得一个项目的成本)。其次,可以在安装之前进行一些自定义,从而加快过程。
  • 嗯?不,安装 Debian 软件包不需要花钱。
  • 有一个 Debian 软件包(我猜是免费下载的)所以你不需要自己编译它。点击我第二条评论中的链接会显示它的确切名称、版本和下载位置;但我认为你也可以在 Ubuntu 中简单地 aptitude install john

标签: linux ubuntu makefile


【解决方案1】:

您需要安装 C 编译器 GCC。

sudo apt-get install gcc

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

【讨论】:

    猜你喜欢
    • 2013-01-11
    • 1970-01-01
    • 1970-01-01
    • 2019-05-02
    • 2016-03-19
    • 1970-01-01
    • 2020-11-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多