簡體   English   中英

如何安裝 Boost Asio?

[英]How to Install Boost Asio?

我剛剛發現 Boost Asio 依賴於 openssl。我正在嘗試構建 openssl,因此我可以將它作為 dep 添加到 boost,但我很難這樣做。 請有人指點我如何構建 openssl 庫?

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

我剛剛安裝了 perl,在運行 perl 配置時,我得到:編譯失敗,需要 c:/Users/AppData/xxxxx/site/lib/IPC/Cmd.pm 第 235 行。

請有人指出如何“輕松”使用 Boost Asio?

我剛剛安裝了 perl,在運行 perl 配置時,我得到:編譯失敗,需要 c:/Users/AppData/xxxxx/site/lib/IPC/Cmd.pm 第 235 行。

以下為我在 Windows 11 上工作,使用 Strawberry Perl 版本 5.32.1 和“x64 Native Tools Command Prompt for VS 2022”:

  • 我下載的是openssl源:

     >git clone https://github.com/openssl/openssl.git
  • 然后,我需要安裝 nasm.exe:我在這里下載了最新版本的安裝程序: https://www.nasm.us/pub/nasm/releasebuilds/2.16rc9/win64/nasm-2.16rc9-installer-x64。 exe 。安裝后,我更新了PATH ,以便可以從命令提示符中找到nasm.exe

  • 然后從 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