gpt4 book ai didi

c++ - 问题 : No package 'libcrypto' found

转载 作者:行者123 更新时间:2023-12-01 14:43:12 27 4
gpt4 key购买 nike

我看到了这个问题“找不到包‘libcrypto’”。我几个月前修复的相同错误是遵循以下解决方案:https://github.com/scipr-lab/libsnark/issues/99
我今天尝试了这个解决方案,但它不再起作用了。 (我也试过“brew install openssl,brew info openssl”)没有运气。
你以前见过这个吗?你能帮忙看看吗?

-- Checking for module 'libcrypto'
-- No package 'libcrypto' found
CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:458 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
PlaylistParser/src/CMakeLists.txt:2 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

最佳答案

brew info openssl说如下:(对我来说,如果你的版本不同,对你来说可能会有所不同)

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because openssl/libressl is provided by macOS so don't link an incompatible version.

If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

由于您的 CMake 脚本似乎使用了 pkg-config,因此您只需要在运行 cmake 之前执行最后一条语句即可。 .

关于c++ - 问题 : No package 'libcrypto' found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60925326/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com