我正在尝试在 Mac OS 10.12 上使用 libssl 安装Siege,但是当我针对https
url 使用该实用程序时,我收到以下错误。
[错误] HTTPS 需要 libssl:无法使用此协议访问https://example.com/ :套接字已连接
我正在使用此wiki中的以下命令进行安装:
./configure --with-ssl
make
make install
This is on macOS Mojave, with openssl installed using HomeBrew. You'll be using a brew
command to get the openssl install directory:
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
Now you can run siege with ./src/siege https://whatever.domain.invalid
. This was tested with Siege 4.0.4rc3 commit hash 05dcfac88ecdd57bd94276e4ce82477cba9129b6 and openssl 1.0.2s on macOS 10.14.5.
使用 brew 安装围攻。
它为我解决了这个问题。我唯一要做的就是链接围攻。
https://coderwall.com/p/qfrk1w/making-siege-work-with-https-on-os-x-mavericks。brew uninstall siege
brew install openssl
brew 链接 --force openssl
brew install siege
ti 必须做的额外步骤(Mac OS Sierra 低)。ln -s /usr/local/Cellar/siege/4.0.4/bin/siege /usr/local/bin/siege 。