Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mosh: dyld: Library not loaded: /usr/local/lib/libprotobuf.7.dylib

I really like mosh (http://mosh.mit.edu/) but after a brew upgrade it stopped working, yielding the below 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. 
like image 729
peralmq Avatar asked Apr 01 '13 18:04

peralmq


2 Answers

After some digging around I realised that this was due to protobuf had been upgraded and that mosh is hardcoded to use protobuf 2.4.1.

So all I had to do was revert from protobuf 2.5.0 to 2.4.1. On Mac with homebrew this is done by 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
like image 50
peralmq Avatar answered Jan 04 '23 04:01

peralmq


You shoud reinstall use: https://mosh.mit.edu/#getting

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

like image 33
CK.Nguyen Avatar answered Jan 04 '23 04:01

CK.Nguyen