[mosh-users] building from source on RHEL 6
Zachary Miller
zmiller at cs.wisc.edu
Wed Aug 8 20:29:58 EDT 2012
hi all,
below is a script which builds mosh on a RHEL6 machine that has all of the
dependencies EXCEPT for protoc and libprotobuf installed. this was my only
hurdle to building and running it from scratch in userspace, so just thought
i would share.
using this build, i was then able to do cross-platform mosh from a Mac OS X
client to my RHEL6 workstation. it works great!
cheers,
-zach
#!/bin/sh
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers, zmiller at cs.wisc.edu
mkdir mosh
cd mosh
ROOT=`pwd`
echo "==================================="
echo "about to set up everything in $ROOT"
echo "==================================="
mkdir build
mkdir install
cd build
curl -O http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
curl -O http://cloud.github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz
tar zxvf protobuf-2.4.1.tar.gz
tar zxvf mosh-1.2.2.tar.gz
echo "================="
echo "building protobuf"
echo "================="
cd $ROOT/build/protobuf-2.4.1
./configure --prefix=$ROOT/install/protobuf
make install
echo "============="
echo "building mosh"
echo "============="
cd $ROOT/build/mosh-1.2.2
export PROTOC=$ROOT/install/protobuf/bin/protoc
export protobuf_CFLAGS=-I$ROOT/install/protobuf/include
export protobuf_LIBS=$ROOT/install/protobuf/lib/libprotobuf.so
./configure --prefix=$ROOT/install/mosh
make install
echo "==="
echo "if all was successful, binaries are now in $ROOT/install/mosh/bin"
echo "==="
More information about the mosh-users
mailing list