我正在尝试使用PECL在我的新Mac(ElCapitan10.11.4)上安装PHPIntl扩展,但在make阶段出现链接错误。以下是我采取的步骤:安装PEAR以在Mac上运行编译并安装ICU库(51.2版)到/usr/local/lib运行此命令:sudopeclinstallintl出现错误(见下文)。我还尝试直接从PHP源代码(“ext”文件夹)编译扩展并收到相同的错误消息。我收到以下错误:ld:filenotfound:libicudata.51.dylibforarchitecturex86_64clang:error:linkercommandfailedwithexitc