我使用Laravel 5.4版本使用
link实现mongodb CRUD操作.我正在使用Mac OS El Captain 10.11.我已经安装了PHP版本7.1.16的mongodb.so扩展
当我尝试获得雄辩的连接时,它会抛出ERR_EMPTY_RESPONSE
我在重启MAMP服务器期间详细了解Apache中发现的以下错误日志
Mon Aug 28 10:22:14 2017] [notice] Graceful restart requested,doing restart [Mon Aug 28 10:22:15 2017] [notice] Digest: generating secret for digest authentication ... [Mon Aug 28 10:22:15 2017] [notice] Digest: done [Mon Aug 28 10:22:15 2017] [notice] Apache/2.2.31 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.1.1 mod_ssl/2.2.31 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0 configured -- resuming normal operations [Mon Aug 28 10:22:15 2017] [notice] FastCGI: process manager initialized (pid 4233) dyld: lazy symbol binding Failed: Symbol not found: _clock_gettime Referenced from: /Applications/MAMP/bin/PHP/PHP7.1.1/lib/PHP/extensions/no-debug-non-zts-20160303/mongodb.so Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: _clock_gettime Referenced from: /Applications/MAMP/bin/PHP/PHP7.1.1/lib/PHP/extensions/no-debug-non-zts-20160303/mongodb.so Expected in: /usr/lib/libSystem.B.dylib dyld: lazy symbol binding Failed: Symbol not found: _clock_gettime Referenced from: /Applications/MAMP/bin/PHP/PHP7.1.1/lib/PHP/extensions/no-debug-non-zts-20160303/mongodb.so Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: _clock_gettime Referenced from: /Applications/MAMP/bin/PHP/PHP7.1.1/lib/PHP/extensions/no-debug-non-zts-20160303/mongodb.so Expected in: /usr/lib/libSystem.B.dylib
此屏幕截图显示了mongodb扩展的详细信息
我在网上搜索错误dyld:懒符号绑定失败:未找到符号:_clock_gettime并找到了这个answer.我已经应用了我提到的所有步骤,但无法解决问题.
请有人帮我摆脱这个.