【问题标题】:How to install Siege with libssl?如何使用 libssl 安装 Siege?
【发布时间】:2017-08-20 12:50:43
【问题描述】:

我正在尝试在 Mac OS 10.12 上使用 libssl 安装 Siege,但是当我针对 https url 使用该实用程序时,我收到以下错误。

[错误] HTTPS 需要 libssl:无法访问 https://example.com/ 使用此协议:套接字已连接

我正在使用来自此wiki 的以下命令进行安装:

./configure --with-ssl
make
make install

【问题讨论】:

标签: macos openssl siege


【解决方案1】:

这是在 macOS Mojave 上,使用 HomeBrew 安装了 openssl。您将使用 brew 命令获取 openssl 安装目录:

git clone https://github.com/JoeDog/siege.git
cd siege

./utils/bootstrap

# here's what you're looking for:
./configure --with-ssl=$(brew --prefix openssl)

make

现在您可以使用./src/siege https://whatever.domain.invalid 进行围攻。这是在 macOS 10.14.5 上使用 Siege 4.0.4rc3 commit hash 05dcfac88ecdd57bd94276e4ce82477cba9129b6 和 openssl 1.0.2s 测试的。

【讨论】:

    【解决方案2】:

    使用 brew 安装 siege。
    它为我解决了这个问题。我唯一要做的就是链接围攻。

    https://coderwall.com/p/qfrk1w/making-siege-work-with-https-on-os-x-mavericks 。 brew卸载围攻
    冲泡安装 openssl
    酿造链接--force openssl
    冲泡安装围攻

    必须做的额外步骤(Mac OS Sierra 低)。 ln -s /usr/local/Cellar/siege/4.0.4/bin/siege /usr/local/bin/siege 。

    【讨论】:

    • 不再工作了:brew link --force opensslWarning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.: -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-01
    • 1970-01-01
    • 2014-07-26
    • 2013-08-02
    • 2018-02-17
    • 1970-01-01
    • 2022-10-04
    相关资源
    最近更新 更多