io_stream.lo Error 1 when installing php extension io_stream.lo Error 1 when installing php extension mongodb mongodb

io_stream.lo Error 1 when installing php extension


  1. brew install openssl
  2. 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:

  1. Boot with Cmd-R
  2. Open Terminal
  3. Type csrutil disable
  4. 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:

  1. Boot with Cmd-R
  2. Open Terminal
  3. Type csrutil enable
  4. 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