简体   繁体   English

dyld[8243]:找不到符号:(_nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation) 尝试 php -v 时。 PHP 在 mac intel 中不工作

[英]dyld[8243]: Symbol not found: (_nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation) while trying php -v. PHP not working in mac intel

My php is not wokring in mac intel.我的 php 在 mac intel 中不工作。 This is what I get when I run php -v这是我运行 php -v 时得到的结果

➜  ~ php -v
dyld[8243]: Symbol not found: (_nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation)
  Referenced from: '/usr/local/Cellar/curl/7.87.0/lib/libcurl.4.dylib'
  Expected in: '/usr/local/Cellar/libnghttp2/1.47.0/lib/libnghttp2.14.dylib'
[1]    8243 abort      php -v

My first problem was My icu4c was 71 version and my php was looking for icu4c 70.1 version.我的第一个问题是我的 icu4c 是 71 版本,而我的 php 正在寻找 icu4c 70.1 版本。 So I have manually uninstall icu4c 71 and installed icu4c 70. Now I am getting this error.所以我手动卸载了 icu4c 71 并安装了 icu4c 70。现在我收到了这个错误。

The version of libcurl you have is looking for libnghttp2 but you don't have it on your system, reinstall both libnghttp2 and libcurl after making sure they're compatible with each other您拥有的 libcurl 版本正在寻找 libnghttp2 但您的系统上没有它,请在确保它们彼此兼容后重新安装 libnghttp2 和 libcurl

Try (in a terminal near you)试试(在你附近的终端)

brew install libnghttp2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM