首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >xhost:"libXmuu.1.dylib“库未加载

xhost:"libXmuu.1.dylib“库未加载
EN

Stack Overflow用户
提问于 2019-07-21 22:50:11
回答 1查看 212关注 0票数 2

我试图将本地IP地址添加到xhost中,并得到以下错误:

代码语言:javascript
复制
dyld: Library not loaded: /opt/X11/lib/libXmuu.1.dylib
  Referenced from: /usr/bin/xhost
  Reason: no suitable image found.  Did find:
    /opt/X11/lib/libXmuu.1.dylib: code signature in (/opt/X11/lib/libXmuu.1.dylib) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not
    /opt/X11/lib/libXmuu.1.dylib: stat() failed with errno=1
Abort trap: 6

即使只是从命令行调用xhost,也会发生错误。然而,我似乎把它安装在正确的地方。which xhost的输出在/usr/bin/xhost中产生

我正在重新安装XQuartz和CommandLineTools。我已经尝试过降低XQuartz的级别,在每次重新安装之后登录和重新启动。还是没有运气。

这似乎是一个有记录的问题,虽然我找不到任何修复的答案。

操作系统:OSX10.14.5 on MacBook Pro,2018年

XQuartz版本:2.7.11

编辑

codesign -vvv -d /usr/bin/xhost输出

代码语言:javascript
复制
Executable=/usr/bin/xhost
Identifier=xhost
Format=Mach-O universal (i386 x86_64)
CodeDirectory v=20200 size=261 flags=0x0(none) hashes=4+2 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=ddd40d822185d02bc484aae27ab8a2a832490c9f
CandidateCDHash sha256=5c76bf6e89fc30926f3d38559f9cf813bcf63349
Hash choices=sha1,sha256
CDHash=5c76bf6e89fc30926f3d38559f9cf813bcf63349
Signature size=8928
Authority=Developer ID Application: Apple Inc. - XQuartz (NA574AWV7E)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=Oct 7, 2016 at 1:26:16 PM
Info.plist=not bound
TeamIdentifier=NA574AWV7E
Sealed Resources=none
Internal requirements count=1 size=168
EN

回答 1

Stack Overflow用户

发布于 2021-03-17 23:16:39

对我来说,有效的是为xhost指定正确的路径:

代码语言:javascript
复制
/usr/X11/bin/xhost + 127.0.0.1

(macOS)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57137529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档