当前位置: 首页 > 知识库问答 >
问题:

找不到文件:/usr/lib/system/libdnsinfo。用于体系结构i386的动态库

长孙鸿振
2023-03-14

我在MAC 10.9与XCode 4.6.3和命令行工具安装

我正在尝试编译pycrypto-2.1。0使用python安装程序。py构建和获取以下错误


-----------------------------------------------------------------------------
ld: warning: ignoring file build/temp.macosx-10.6-intel-2.7/src/MD2.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): build/temp.macosx-10.6-intel-2.7/src/MD2.o
ld: file not found: /usr/lib/system/libdnsinfo.dylib for architecture i386
collect2: ld returned 1 exit status
ld: file not found: /usr/lib/system/libdnsinfo.dylib for architecture x86_64
collect2: ld returned 1 exit status
------------------------------------------------------------------------------------

定位是给予

$ locate libdnsinfo.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/system/libdnsinfo.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/system/libdnsinfo.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system/libdnsinfo.dylib

这些路径也被添加到PATH。

以下是命令和错误

$pythonsetup.py构建运行构建运行build_py运行build_ext警告:未找到GMP库;未构建加密。公开密钥。_fastmath建设'加密。哈希。MD2'扩展gcc-4.2-我/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/-我/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/-我/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c /4.2.1/-O3-fomit-frame-指针-Isrc/-我/库/Fraframe/Python.framework/Versions/2.7/include/python2.7-c src/MD2. c-o build/temp.macosx-10.6-intel-2.7/src/MD2. o gcc-4.2-bundle-未定义dynamic_lookup-arch i386-archx86_64-g-L/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib-I/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/-I/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/-我/应用程序/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c /4.2.1/build/temp.macosx-10.6-intel-2.7/src/MD2. o build/lib.macosx-10.6-intel-2.7/Crypto/Hash/MD2.sold:警告:忽略文件构建/temp.macosx-10.6-intel-2.7/src/MD2. o,文件是为不支持的文件格式(0xcf 0xfa 0x0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 0x 0 0 0)构建的正在链接的架构(i386):build/temp.macosx-10.6-intel-2.7/src/MD2. o ld:文件未找到: /usr/lib/system/libdnsinfo.dylib的架构i386 Collect2:ld返回1退出状态ld:文件未找到: /usr/lib/system/<建筑x86_64

有办法解决这个问题吗?

共有3个答案

雍兴修
2023-03-14

使用libdns_服务代替libdnsinfo。最新sdk不再支持动态库。

卓嘉良
2023-03-14

在eclipse中遇到同样的问题,以下内容对我很有用:

1)查找lib的位置

 locate libdnsinfo.dynlib

2)复制粘贴位置到

 project > properties > C/C++ Build > Settings > MacOS X C Linker > Libraries > Library Search Path
郎仰岳
2023-03-14

在升级到osx 10.9之后,我在尝试将openssl库链接到一个简单的c应用程序时也遇到了这个问题。

对我有效的快速解决方案是将libdnsinfo文件之一链接到/usr/lib/system

前任:

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/system/libdnsinfo.dylib /usr/lib/system/libdnsinfo.dylib
 类似资料:
  • 问题内容: 我为util / extensions创建了一个Swift框架项目,该项目将文件编译并复制到系统上的专用位置。我希望能够将此文件包含到其他项目中(Build Phases / Link Binary with Libraries)。框架项目是Cocoa Touch Framework类型的项目(从Xcode 6.1项目模板浏览器中选择)。 但是,当我尝试编译链接框架文件的项目时,收到此

  • 找不到目标文件“lib/main.dart”。 为什么会发生这种情况,我如何解决这个问题?

  • Ceph 独一无二地用统一的系统提供了对象、块、和文件存储功能,它可靠性高、管理简便、并且是自由软件。 Ceph 的强大足以改变贵公司的 IT 基础架构、和管理海量数据的能力。Ceph 可提供极大的伸缩性——供成千用户访问 PB 乃至 EB 级的数据。 Ceph 节点以普通硬件和智能守护进程作为支撑点, Ceph 存储集群组织起了大量节点,它们之间靠相互通讯来复制数据、并动态地重分布数据。 Cep

  • 我是事件驱动微服务的新手,也是微服务本身的新手。我正在开发的系统并不大,它处理一堆文件,然后根据调用不同服务的数据。所以在我看来,一个好主意是,不要让服务调用其他服务来完成这项工作,而是将这些消息发送到发布/订阅队列,处理它们并将它们发送到相关主题,然后每个服务将订阅其中一个或几个主题,每隔几分钟,每个服务都会提取它们订阅的消息并发挥它们的魔力。这些服务也可以通过Rest来公开,以防您想强制执行它

  • 我们正在尝试将我们的单片核心拆分为微服务,并使用消息系统(如Kafka)添加一些相互连接的新服务。 下一阶段是创建APIendpoint,以便通过Api网关在移动应用程序和微服务之间进行通信。 开发API网关向微服务传输数据或从微服务传输数据的好解决方案是什么? 使用消息系统作为请求-应答系统(将API网关上的请求转换为消息命令,等待消息系统的响应,并提供状态或必要的数据) 在必要的微服务(例如使

  • 问题内容: 我最近寻求帮助,它被拒绝投票并关闭(我不知道为什么) 事实证明,“ make install”-安装的make目标并暗示目标“ install-target-libstdc ++v3”实际上并不意味着您已准备就绪。 我一直想知道自己在做什么错了,因为我以为这样的make target可以帮到我。 我希望这个答案至少可以帮助其他人。 问题答案: 对于所有遇到类似问题的人,请运行以下命令: