io_stream.lo Error 1 when installing php extension
brew install openssl
ln -s /usr/local/Cellar/openssl/1.0.2d_1/include/openssl /usr/local/include/openssl
You need to disable the Mac OSX El Capitán rootless mechanism:
- Boot with Cmd-R
- Open Terminal
- Type
csrutil disable
- Reboot
On the Mac, You need to install Xcode, and build the symlink for the openssl comes with Xcode,i.e.
cd /usr/include;sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk/usr/include/openssl .
i.e. /usr/include/openssl
points to Xcode library.
Build your mongo php library.
Once it is done, you should have to enable the rootless security protection:
- Boot with Cmd-R
- Open Terminal
- Type
csrutil enable
- Reboot
evp is high-level cryptographic functions.
Try to install development libraries:
Ubuntu: sudo apt-get install libssl-dev
CentOS: yum install openssl-devel
Source: Error while installing mongo driver for PHP on amazon linux