Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Compiling and running mosh on Dreamhost
# Install Protocol Buffers
tar -xf protobuf-2.4.1.tar.bz2
cd protobuf-2.4.1
./configure --prefix=$PREFIX
make install
cd ..
# You'll need this setting to have mosh find the Protocol Buffer lib
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
# Install mosh
tar -xf mosh-$VERSION.tar.gz
cd mosh-$VERSION
./configure --prefix=$PREFIX
make install
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)
Copy link

slambert commented Jan 10, 2013

Hi, Just tried to run this on my Dreamhost shared hosting account (perhaps my first mistake?) and got this error after mosh was downloaded and a set of other checks ran successfully:

checking for protoc... no configure: error: cannot find protoc, the Protocol Buffers compiler make: **\* No targets specified and no makefile found. Stop. make: **\* No rule to make target `install'. Stop.

Any ideas?

Copy link

chozabu commented Nov 14, 2014

slambert, this script seems to assume ~/bin is in your path, so you could perhaps add something like this as line 2:

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