Download mosh and libprotobuf:
wget http://mosh.mit.edu/mosh-1.2.4.tar.gz
wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2
Build and install protobuf:
tar xfvj protobuf-2.5.0.tar.bz2
cd protobuf-2.5.0
./configure --prefix=$HOME
make
make install
Build and install mosh:
tar xfvz mosh-1.2.4.tar.gz
cd mosh-1.2.4
PKG_CONFIG_PATH=$HOME/lib/pkgconfig ./configure --prefix=$HOME
make
make install
Add these to ~/.bashrc
:
export PATH=${PATH}:${HOME}/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/lib
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${HOME}/lib/pkgconfig
Adding PKG_CONFIG_PATH is completely optional, but will save setting an additional environmental variable next time you build something that depends in libprotobuf.