Resolving missing link to libcrypto openssl on OSX from: http://stackoverflow.com/questions/38670295/brew-refusing-to-link-openssl
brew update
brew install openssl
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
hi,i have a problem, i need to install mongo in macos catalina,but it not work my code is this
sudo pecl install mongo
WARNING: "pecl/mongo" is deprecated in favor of "channel:///mongodb"
downloading mongo-1.6.16.tgz ...
Starting to download mongo-1.6.16.tgz (210,341 bytes)
.............................................done: 210,341 bytes
118 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
Build with Cyrus SASL (MongoDB Enterprise Authentication) support? [no] :
building in /private/tmp/pear/temp/pear-build-rootpBkTQl/mongo-1.6.16
running: /private/tmp/pear/temp/mongo/configure --with-php-config=/usr/local/opt/[email protected]/bin/php-config --with-mongo-sasl=no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin19.4.0
checking host system type... x86_64-apple-darwin19.4.0
checking target system type... x86_64-apple-darwin19.4.0
checking for PHP prefix... /usr/local/Cellar/[email protected]/5.6.40
checking for PHP includes... -I/usr/local/Cellar/[email protected]/5.6.40/include/php -I/usr/local/Cellar/[email protected]/5.6.40/include/php/main -I/usr/local/Cellar/[email protected]/5.6.40/include/php/TSRM -I/usr/local/Cellar/[email protected]/5.6.40/include/php/Zend -I/usr/local/Cellar/[email protected]/5.6.40/include/php/ext -I/usr/local/Cellar/[email protected]/5.6.40/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/[email protected]/5.6.40/pecl/20131226
checking for PHP installed headers prefix... /usr/local/Cellar/[email protected]/5.6.40/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable Mongo extension... yes, shared
checking Build with OpenSSL support... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
ERROR: `/private/tmp/pear/temp/mongo/configure --with-php-config=/usr/local/opt/[email protected]/bin/php-config --with-mongo-sasl=no' failed
help me pleace!