Mosh: dyld: library not loaded: /usr/local/lib/libprotobuf.7.dylib

I really like mosh ( http://mosh.mit.edu/ ), but after brew upgrade it stops working, getting the following error.

 > mosh example.com dyld: Library not loaded: /usr/local/lib/libprotobuf.7.dylib Referenced from: /usr/local/bin/mosh-client Reason: image not found Died at /usr/local/bin/mosh line 201. 
+6
source share
3 answers

After some digging, I realized that this was due to protobuf , was updated and that mosh hard-coded to use protobuf 2.4.1 .

So, all I had to do was return from protobuf 2.5.0 to 2.4.1 . On a homegrown Mac, this is done using the following steps:

 > brew versions protobuf 2.5.0 git checkout 019364d /usr/local/Library/Formula/protobuf.rb 2.4.1 git checkout 544209f /usr/local/Library/Formula/protobuf.rb > git checkout 544209f /usr/local/Library/Formula/protobuf.rb > brew unlink protobuf > brew link protobuf 
+6
source

You will reinstall usage: https://mosh.mit.edu/#getting

DO NOT use brew , it works for me on MAC OSX 10.9.5

+5
source

You can also upgrade brew and then upgrade mosh to version 1.2.4:

 $ brew update 

...

 $ brew upgrade mobile-shell ==> Upgrading 1 outdated package, with result: mobile-shell 1.2.4 ==> Upgrading mobile-shell ==> Downloading http://mosh.mit.edu/mosh-1.2.4.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/mobile-shell/1.2.4 ==> make install 🍺 /usr/local/Cellar/mobile-shell/1.2.4: 12 files, 1004K, built in 41 seconds 
0
source

All Articles