简体   繁体   English

如何安装 Boost Asio?

[英]How to Install Boost Asio?

I have just found out that Boost Asio depends on openssl. I am trying to build openssl so I can add it as dep to boost but I am having a hard time doing so.我刚刚发现 Boost Asio 依赖于 openssl。我正在尝试构建 openssl,因此我可以将它作为 dep 添加到 boost,但我很难这样做。 Could please someone point me to how can I build the openssl library?请有人指点我如何构建 openssl 库?

Github openssl: https://github.com/openssl/openssl#build-and-install Github openssl: https://github.com/openssl/openssl#build-and-install

I have just insalled perl and when running perl Configure I get: Compilation failed in require at c:/Users/AppData/xxxxx/site/lib/IPC/Cmd.pm line 235.我刚刚安装了 perl,在运行 perl 配置时,我得到:编译失败,需要 c:/Users/AppData/xxxxx/site/lib/IPC/Cmd.pm 第 235 行。

Could please someone point out how to use Boost Asio "easily"?请有人指出如何“轻松”使用 Boost Asio?

I have just insalled perl and when running perl Configure I get: Compilation failed in require at c:/Users/AppData/xxxxx/site/lib/IPC/Cmd.pm line 235.我刚刚安装了 perl,在运行 perl 配置时,我得到:编译失败,需要 c:/Users/AppData/xxxxx/site/lib/IPC/Cmd.pm 第 235 行。

The following worked for me on Windows 11, using Strawberry Perl version 5.32.1, and "x64 Native Tools Command Prompt for VS 2022":以下为我在 Windows 11 上工作,使用 Strawberry Perl 版本 5.32.1 和“x64 Native Tools Command Prompt for VS 2022”:

  • I downloaded the openssl source:我下载的是openssl源:

     >git clone https://github.com/openssl/openssl.git
  • Then, I needed to install nasm.exe: I downloaded the installer for the latest release here: https://www.nasm.us/pub/nasm/releasebuilds/2.16rc9/win64/nasm-2.16rc9-installer-x64.exe .After installation, I updated PATH such that nasm.exe could be found from the command prompt.然后,我需要安装 nasm.exe:我在这里下载了最新版本的安装程序: https://www.nasm.us/pub/nasm/releasebuilds/2.16rc9/win64/nasm-2.16rc9-installer-x64。 exe 。安装后,我更新了PATH ,以便可以从命令提示符中找到nasm.exe

  • Then from the openssl source directory:然后从 openssl 源目录:

     >perl Configure Configuring OpenSSL version 3.2.0-dev for target VC-WIN64A Using os-specific seed configuration Created configdata.pm Running configdata.pm Created makefile.in Created makefile Created include\openssl\configuration.h ********************************************************************** *** *** *** OpenSSL has been successfully configured *** *** *** *** If you encounter a problem while building, please open an *** *** issue on GitHub <https://github.com/openssl/openssl/issues> *** *** and include the output from the following command: *** *** *** *** perl configdata.pm --dump *** *** *** *** (If you are new to OpenSSL, you might want to consult the *** *** 'Troubleshooting' section in the INSTALL.md file first) *** *** *** **********************************************************************

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM