Skip to content

Instantly share code, notes, and snippets.

@crazyhottommy
Last active November 20, 2016 16:27
Show Gist options
  • Save crazyhottommy/9e27d77b69edfb306adda62aff0a503c to your computer and use it in GitHub Desktop.
Save crazyhottommy/9e27d77b69edfb306adda62aff0a503c to your computer and use it in GitHub Desktop.
#!/bin/sh
## orginal from https://gist.github.com/lazywei/12bc1669dc7739dccef1
## author Ming Tang (Tommy)
## 2016-11-20
set -e
set -u
set -o pipefail
echo "================="
echo "building protobuf"
echo "================="
git clone https://github.com/google/protobuf
cd protobuf
./autogen.sh
./configure --prefix=$HOME/local --disable-shared
make
make check
make install
export PROTOC=$HOME/local/bin/protoc
export protobuf_CFLAGS=-I$HOME/local/include
export protobuf_LIBS=$HOME/local/lib/libprotobuf.a
echo "============="
echo "building mosh"
echo "============="
## build mosh from source https://github.com/mobile-shell/mosh/wiki/Build-Instructions
git clone https://github.com/mobile-shell/mosh.git
cd mosh
./autogen.sh
./configure --prefix=$HOME/local
make
make install
echo "==="
echo "if all was successful, mosh is ready to use"
echo "==="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment