Skip to content

Instantly share code, notes, and snippets.

@Yannik
Forked from eerohele/mosh-cygwin.md
Last active August 29, 2015 14:22
Show Gist options
  • Save Yannik/767f217c1f26feee9719 to your computer and use it in GitHub Desktop.
Save Yannik/767f217c1f26feee9719 to your computer and use it in GitHub Desktop.
  1. Download Cygwin.

  2. Run setup.exe and install the following packages in addition to the default ones:

    • make
    • boost
    • libncurses-devel
    • pkg-config
    • perl
    • automake
    • autoconf
    • gcc
    • libtool
    • gcc-g++
    • zlib-devel
    • openssl-devel
  3. Download and compile Protocol Buffers (make sure there are no spaces in the working directory when compiling Protocol Buffers, make will fail if there are):

     $ wget https://github.com/google/protobuf/archive/master.zip
     $ unzip master.zip
     $ cd protobuf-master
     $ ./autogen.sh
     $ ./configure
     $ make
     $ make install
    
  4. Download and compile Mosh:

     $ git clone https://github.com/keithw/mosh.git
     $ cd mosh
     $ ./autogen.sh
     $ ./configure CPPFLAGS="-I/usr/include/ncurses" PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
     $ #comment version.h block in Makefile or ignore version.h errors
     $ make
     $ make install
    
  5. Install the IO::Pty Perl module:

     $ perl -MCPAN -e shell
     cpan> install IO::Pty
    
  6. Rock’n’roll.

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