简体   繁体   English

问题:未找到包“libcrypto”

[英]Issue: No package 'libcrypto' found

I saw this issue "No package 'libcrypto' found".我看到了这个问题“找不到包‘libcrypto’”。 The same error I fixed multiple months ago was to follow this solution: https://github.com/scipr-lab/libsnark/issues/99 I tried this solution today however it doesn't work anymore.我几个月前修复的相同错误是遵循这个解决方案: https : //github.com/scipr-lab/libsnark/issues/99我今天尝试了这个解决方案,但它不再起作用了。 (I also tried"brew install openssl, brew info openssl") No luck. (我也试过“brew install openssl,brew info openssl”)没有运气。 Have you seen this before?你以前见过这个吗? Would you help take a look?你能帮忙看看吗?

-- 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 says the following: (for me, might be different for you if your version is different) 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"

Since your CMake script seems to use pkg-config, you only need to execute the last statement before you run cmake .由于您的 CMake 脚本似乎使用 pkg-config,因此您只需要在运行cmake之前执行最后一条语句。

When I run ./install_prereq install-unpackaged command, I'd got the following error.当我运行./install_prereq install-unpackaged命令时,出现以下错误。

configure: error: Package requirements (libcrypto >= 1.0.1) were not met:配置:错误:未满足包要求(libcrypto >= 1.0.1):

No package 'libcrypto' found未找到包“libcrypto”

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.如果您在非标准前缀中安装了软件,请考虑调整 PKG_CONFIG_PATH 环境变量。

Alternatively, you may set the environment variables crypto_CFLAGS and crypto_LIBS to avoid the need to call pkg-config.或者,您可以设置环境变量 crypto_CFLAGS 和 crypto_LIBS 以避免调用 pkg-config。 See the pkg-config man page for more details.有关更多详细信息,请参阅 pkg-config 手册页。

Then I run the following command and the problem was solved;然后我运行下面的命令,问题就解决了;

yum install openssl-devel

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

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