我真的很喜欢mosh( http://mosh.mit.edu/),但经过brew升级后它停止工作,产生以下错误. mosh example.comdyld: Library not loaded: /usr/local/lib/libprotobuf.7.dylib Referenced from: /usr/local/bin/mosh-client Reason: image n
> 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.经过一番挖掘,我意识到这是因为protobuf已经升级,并且mosh被硬编码以使用protobuf 2.4.1.
所以我所要做的就是从protobuf 2.5.0恢复到2.4.1.在使用自制软件的Mac上,可通过以下步骤完成:
> 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