我正在尝试在MACOSX 10.14.3上的MAMP上启动服务器。
我已经跑步
sudo /Applications/MAMP/Library/bin/apachectl start
出现错误
httpd:/Applications/MAMP/conf/apache/httpd.conf的第135行的语法错误:无法将/Applications/MAMP/bin/php/php7.2.10/modules/libphp7.so加载到服务器中:dlopen(/ Applications / MAMP / bin / php / php7.2.10 / modules / libphp7.so,10):库未加载:/Applications/MAMP/Library/lib/libcurl.4.dylib\n引用自:/ Applications / MAMP / bin /php/php7.2.10/modules/libphp7.so\n原因:库版本不兼容:libphp7.so需要版本10.0.0或更高版本,但libcurl.4.dylib提供版本9.0.0
我一直试图将envvars文件更改为_envvars,重新安装Curl,重新安装PHP并更改Curl的路径。
我对otool -L libcurl.4.dylib
的输出:
libcurl.4.dylib:
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 9.0.0)
/usr/lib/libcrypto.42.dylib (compatibility version 43.0.0, current version 43.0.0)
/usr/lib/libssl.44.dylib (compatibility version 45.0.0, current version 45.1.0)
/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)
/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 6.0.0)
/usr/lib/libapple_nghttp2.dylib (compatibility version 1.0.0, current version 1.24.1)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
我只是无法将libcurl.4.dylib更新到版本10.0.0。 我的哪个curl输出是:
/usr/local/opt/curl/bin/curl