|# Thanks to @samsonjs for the cleaned up version:|
|# Install Protocol Buffers|
|tar -xf protobuf-2.4.1.tar.bz2|
|# You'll need this setting to have mosh find the Protocol Buffer lib|
|# Install mosh|
|tar -xf mosh-$VERSION.tar.gz|
|echo You can run this to verify the install worked:|
|echo $ export LD_LIBRARY_PATH=$PREFIX/lib|
|echo $ mosh-server|
|echo (Running mosh-server should give you a pid and a key to use if you want to connect manually)|
|echo To connect to the server in the future, run this on your local machine:|
|echo $ mosh --server="LD_LIBRARY_PATH=$PREFIX/lib $PREFIX/bin/mosh-server" $USER@$(hostname -f)|
This is great- but I'm running into issues with mosh finding the protocol libs. The export of PKG_CONFIG_PATH doesn't seem to be helping at all, and I've used the same prefix for configuring both packages.
It seems that protocol buffers installed fine, for what it's worth.
edit: I'll note that I'm using zsh for my shell, but this happened when I put this in a shell script and ran it with bash, too.
Thanks so much for sharing this.
I've tweaked the code a bit more, fixing the broken links, updated the versions, and make the entire process a bit more automated and foolproof.
I hope it helps others out there!