首页 > 解决方案 > ld:找不到符号 dyld_stub_binding_helper,通常在 crt1.o/dylib1.o/bundle1.o 中,用于架构 i386

问题描述

我正在从源代码安装 php 的 mongo 驱动程序,但运行时遇到错误make

这就是我得到的:

ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS) ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/bundle1.o, building for macOS-i386 but attempting to link with file built for macOS-x86_64 ld: warning: ignoring file /usr/local/ssl/lib/libssl.a, building for macOS-i386 but attempting to link with file built for macOS-x86_64 ld: warning: ignoring file /usr/local/ssl/lib/libcrypto.a, building for macOS-i386 but attempting to link with file built for macOS-x86_64 ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [mongo.la] Error 1

我正在使用 php 5.6,因为我正在处理的项目仅php5支持mongo@3.4. 请提供有关如何安装驱动程序的任何建议。

蒙哥司机:http://pecl.php.net/get/mongo-1.6.16.tgz

操作系统:Mac OS Catalina

标签: phpmongodbmacosmakefilepecl

解决方案


推荐阅读