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

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]

按照提示错误,成功解决

你可能感兴趣的:(mac,tmux,brew)