6

我真的很喜欢moshhttp://mosh.mit.edu/)但是在brew upgrade它停止工作之后,产生了以下错误。

> 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. 
4

3 回答 3

6

经过一番挖掘后,我意识到这是由于protobuf已经升级并且mosh是硬编码的protobuf 2.4.1

所以我所要做的就是从protobuf 2.5.0to恢复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
于 2013-04-01T18:58:15.043 回答
5

你应该重新安装使用: https ://mosh.mit.edu/#getting

不要使用brew,它适用于我的 MAC OSX 10.9.5

于 2015-07-27T04:36:39.797 回答
1

您还可以更新brew然后升级mosh到 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   
于 2013-04-09T09:51:31.183 回答