当前位置 : 首页 » 博文聚焦 » 正文

dyld: Library not loaded: /usr/local/opt/libevent/lib/libevent-2.1.6.dylib

分类 : 博文聚焦 | 发布时间 : 2018-03-16 09:05:15 | 浏览 : 69

MacBook-Pro:local $ tmux

dyld: Library not loaded: /usr/local/opt/libevent/lib/libevent-2.1.6.dylib

  Referenced from: /usr/local/bin/tmux

  Reason: image not found

Abort trap: 

分析发现,目录不对,应该是之前安装libevent写入/usr/local/opt写失败了,但是安装没有提示有问题

MacBook-Pro:local $ ls /usr/local/Cellar/libevent/2.1.8/lib/

libevent-2.1.6.dylib           libevent_core.a                libevent_extra.dylib           libevent_pthreads-2.1.6.dylib  

libevent.a                     libevent_core.dylib            libevent_openssl-2.1.6.dylib   libevent_pthreads.a            

libevent.dylib                 libevent_extra-2.1.6.dylib     libevent_openssl.a             libevent_pthreads.dylib        

libevent_core-2.1.6.dylib      libevent_extra.a               libevent_openssl.dylib         pkgconfig/ 

解决办法:

MacBook-Pro:local $ mkdir -p /usr/local/opt/libevent/lib/ 

MacBook-Pro:local $ cp  /usr/local/Cellar/libevent/2.1.8/lib/libevent-2.1.6.dylib /usr/local/opt/libevent/lib/


MacBook-Pro:local $ tmux

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

  Referenced from: /usr/local/opt/libevent/lib/libevent-2.1.6.dylib

  Reason: image not found

Abort trap: 6

MacBook-Pro:local $ mkdir -p  /usr/local/opt/openssl/lib/

MacBook-Pro:local $ ls /usr/local/Cellar/openssl/1.0.2n/lib/lib

libcrypto.1.0.0.dylib  libcrypto.a            libcrypto.dylib        libssl.1.0.0.dylib     libssl.a               libssl.dylib           

MacBook-Pro:local $ cp /usr/local/Cellar/openssl/1.0.2n/lib/libcrypto.1.0.0.dylib /usr/local/opt/openssl/lib/

MacBook-Pro:local $ tmux

[exited]

按照提示错误,成功解决

相关阅读:

如何设置tmux以便在打开指定窗口的情况下启动它?

如何在tmux中终止窗口?

将较小的显示器切换到较大的显示器时,有没有办法重新绘制tmux窗口?

tmux状态栏配置

适用于Microsoft Windows的终端多路复用器 - GNU Screen或tmux的安装程序

如何在tmux中增加回滚缓冲区大小?

在tmux模式下丢失vim colorscheme

如果不存在,如何创建新的tmux会话

Mac下Android开发环境搭建

Mac OS下关闭本地TimeMachine备份节省磁盘空间