php - 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
解决方案
推荐阅读
- python - 使用 Python 将参数传递给 AutoIt 程序
- html - 带有 #anchor 标记和查询参数的 URL
- mysql - 需要在 sql 表中查找与某组订单 ID 相对应的发货 ID 计数,但查询有问题
- math - 圆曲线角度
- javascript - 将咖啡脚本转换为 js -> 修改类以避免 initClass
- c# - 一台机器上的多个登录 - ASP.NET Core Identity & Identity Server 4
- java - Tomcat CORS 策略本地主机
- extjs - 回答:如何仅通过 panelheader 拖动 ExtJS 面板?
- intellij-idea - 我的 Intellij idea 场景构建器突然停止工作
- docker - !错误:docker push 退出并出现错误:1