Skip to content

Instantly share code, notes, and snippets.

@dlundquist
Last active December 26, 2015 02:19
Show Gist options
  • Save dlundquist/7078020 to your computer and use it in GitHub Desktop.
Save dlundquist/7078020 to your computer and use it in GitHub Desktop.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment