Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue: No package 'libcrypto' found

I saw this issue "No package 'libcrypto' found". 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. (I also tried"brew install openssl, brew info openssl") No luck. 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!
like image 524
reactnative Avatar asked Mar 30 '20 06:03

reactnative


2 Answers

brew info openssl says the following: (for me, might be different for you if your version is different)

[email protected] 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 [email protected] first in your PATH run:
  echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

For compilers to find [email protected] you may need to set:
  export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
  export CPPFLAGS="-I/usr/local/opt/[email protected]/include"

For pkg-config to find [email protected] you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"

Since your CMake script seems to use pkg-config, you only need to execute the last statement before you run cmake.

like image 111
Botje Avatar answered Nov 01 '22 05:11

Botje


When I run ./install_prereq install-unpackaged command, I'd got the following error.

configure: error: Package requirements (libcrypto >= 1.0.1) were not met:

No package 'libcrypto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables crypto_CFLAGS and crypto_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

Then I run the following command and the problem was solved;

yum install openssl-devel
like image 1
Ibrahim Ates Avatar answered Nov 01 '22 03:11

Ibrahim Ates