【问题标题】:sslscan.c:94:25: fatal error: openssl/err.h: No such file or directory compilation terminated. #163sslscan.c:94:25:致命错误:openssl/err.h:没有此类文件或目录编译终止。 #163
【发布时间】:2018-10-10 10:34:21
【问题描述】:

我需要在 ubuntu 虚拟机(virtualbox)中安装sslscan 用于 ssl 扫描的工具(from here)。

按照他们提供的here 安装说明,我从here 安装了openssl-chacha。请注意,我知道 openssl 的这个分支包含弱密码(我使用该工具和 openssl 用于测试扫描目的,而不是真正的应用程序)。

然后,安装完上面的openssl之后,我做的第一件事就是执行:make。请注意,我不清楚何时使用他 sslscan 提到的这些命令here(我没有执行它们)。但是我想用恰恰版的openssl:

apt-get install build-essential git zlib1g-dev
apt-get build-dep openssl
make static

当我尝试运行命令时:make 我收到此错误:

make: git: Command not found
cc -o sslscan -Wall -Wformat=2 -Wformat-security -pie -z relro -z now -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/local/opt/openssl/lib -L/opt/local/lib -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -I/usr/local/opt/openssl/include -I/opt/local/include -I/opt/local/include/openssl  -DVERSION=\"1.11.11\" sslscan.c -lssl -lcrypto -ldl
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_clnt.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:91: recipe for target 'sslscan' failed
make: *** [sslscan] Error 1

我在这个目录:/home/myuser/Downloads/sslscan-master 我确保 openssl 在: /usr/local/ssl 你能指出我缺少什么吗?我不熟悉 Linux 系统(Windows 用户),但我更喜欢在 Linux 中使用该工具。因此,我将感谢您的帮助和耐心。

【问题讨论】:

    标签: sockets ssl openssl network-programming openssl-engine


    【解决方案1】:

    make: git: Command not found

    所以从安装git 命令开始:

     apt-get install git
    

    (或者git-core

    【讨论】:

      猜你喜欢
      • 2012-08-21
      • 2012-10-19
      • 2017-04-25
      • 1970-01-01
      • 1970-01-01
      • 2020-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多