dyld:初始化函数0x10b7f89d0不在映射图像中

时间:2018-01-09 00:11:27

标签: macos-sierra gnupg memory-mapped-files dyld

为GnuPG执行$ sudo make install时收到以下错误:

Making check in scd
make[1]: Nothing to be done for `check'.
Making check in dirmngr
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
dyld: initializer function 0x10e4aa9d0 not in mapped image for /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib

/bin/sh: line 1: 54741 Abort trap: 6           ${dir}$tst
FAIL: t-ldap-parse-uri

Used this as reference for installation

$ sudo make install尽管有错误。

安装完成后,我尝试了:

$ dirmngr --version

dyld: initializer function 0x10c2199d0 not in mapped image for /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib`

所以我再次重新安装了libgpg-error:

$ ./configure 
$ make
$ make check   ( all 7 tests passed )
$ make install 

检查我安装的版本:

$gpg-error-config --version
1.27

一切似乎都没问题,所以我尝试了以下方法:gpg --keyserver pgp.mit.edu --recv-key 9741E8AC

gpg: connecting dirmngr at '/Users/Bubblemelon/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr

因此,要解决此问题gpg: keyserver receive failed: No dirmngr,我发现这样做forumsudo dirmngr </dev/null可以解决问题。

但又收到了同样的错误:

dyld: initializer function 0x10b7f89d0 not in mapped image for /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib

问题:

如何解决此问题

dyld: initializer function 0x10b7f89d0 not in mapped image for /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib

1 个答案:

答案 0 :(得分:0)

除非您有特定原因需要从源代码构建,在大多数情况下,在mac上安装依赖项等的最简单方法是使用自制程序。 Brew是一个包管理器,有点像apt或npm。

这是一篇文章的链接,使用Brew来完成您想要做的事。

http://blog.ghostinthemachines.com/2015/03/01/how-to-use-gpg-command-line/