Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding prereq install script to ease install from source

  • Loading branch information...
commit 2639ac2a2dc5d5121e38eee91f6979e11a590d34 1 parent 8bc7fa3
Eric authored
66 telex-client/INSTALL
View
@@ -1,59 +1,19 @@
-Building telex-client on Linux
-==============================
-# Tested on a 64-bit ubuntu 10.04 ec2-micro instance
-# non-root build; must already have build-essential installed.
+Installing telex-client
+-----------------------
-# Prerequisites:
-C/C++ compiler # gcc/g++ (sudo apt-get install build-essential)
-Patch utility
-Tarballs in your $HOME directory:
- telex-client.tar.gz
- http://www.openssl.org/source/openssl-1.0.0d.tar.gz
- http://monkey.org/~provos/libevent-2.0.12-stable.tar.gz
- http://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz
-
+After extracting this directory, install the prerequisite libraries
+(OpenSSL modified for Telex, libevent, libargtable) by running:
-# Setting up:
+./prereq.sh
- mkdir $HOME/telex
- mkdir $HOME/telex/local
- cd $HOME/telex
- tar zxf ../telex-client.tar.gz
+This script will pull sources from the respective project webpages, and
+build local installs of each to the current working directory (./reqs).
+After installing the prerequisites, simply run (from telex-client
+directory):
-# Building required libraries:
+make
- # patched OpenSSL
- cd $HOME/telex/
- tar xf ../openssl-1.0.0d.tar.gz
- cd openssl-1.0.0d
- patch -p1 < ../telex-client/openssl-1.0.0d-telex.patch
- ./config --shared --prefix=$HOME/telex/local/ --openssldir=$HOME/telex/local/
- make
- make install # no root (sudo) needed for local install
+Running telex-client
+--------------------
- # libevent2, linked against patched OpenSSL
- cd $HOME/telex/
- tar xf ../libevent-2.0.12-stable.tar.gz
- cd libevent-2.0.12-stable
- LDFLAGS="-L$HOME/telex/local/lib" && export LDFLAGS
- CFLAGS="-I$HOME/telex/local/include" && export CFLAGS
- ./configure --prefix=$HOME/telex/local
- make
- make install
-
- # argtable 2 (libargtable2-dev)
- cd $HOME/telex/
- tar xf ../argtable2-13.tar.gz
- cd argtable2-13
- ./configure --prefix=$HOME/telex/local
- make
- make install
-
-# Building telex-client:
-
- cd $HOME/telex/telex-client/
- make
-
-# Running telex-client:
-
- LD_LIBRARY_PATH=$HOME/telex/local/lib ./telex-client notblocked.telex.cc
+LD_LIBRARY_PATH=./req/local/lib ./telex-client notblocked.telex.cc
4 telex-client/Makefile
View
@@ -1,5 +1,5 @@
-INCLUDE=-I../local/include
-LIB=-L../local/lib
+INCLUDE=-I./req/local/include
+LIB=-L./req/local/lib
# Uncomment these 2 lines if you installed openssl/libevent
# to the default location /usr/local (e.g. no ./configure --prefix=)
47 telex-client/prereq.sh
View
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+TELEX_HOME=`pwd`
+cd $TELEX_HOME
+
+wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz
+wget http://monkey.org/~provos/libevent-2.0.12-stable.tar.gz
+wget http://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz
+
+# Setting up:
+ mkdir -p $TELEX_HOME/req/local
+ cd $TELEX_HOME/req
+
+# Building required libraries:
+
+ # patched OpenSSL
+ cd $TELEX_HOME/req/
+ tar xf ../openssl-1.0.0d.tar.gz
+ cd openssl-1.0.0d
+ patch -p1 < ../../openssl-1.0.0d-telex.patch
+ ./config --shared --prefix=$TELEX_HOME/req/local/ --openssldir=$TELEX_HOME/req/local/
+ make
+ make install # no root (sudo) needed for local install
+
+ # libevent2, linked against patched OpenSSL
+ cd $TELEX_HOME/req/
+ tar xf ../libevent-2.0.12-stable.tar.gz
+ cd libevent-2.0.12-stable
+ LDFLAGS="-L$TELEX_HOME/req/local/lib" && export LDFLAGS
+ CFLAGS="-I$TELEX_HOME/req/local/include" && export CFLAGS
+ ./configure --prefix=$TELEX_HOME/req/local
+ make
+ make install
+
+ # argtable 2 (libargtable2-dev)
+ cd $TELEX_HOME/req/
+ tar xf ../argtable2-13.tar.gz
+ cd argtable2-13
+ ./configure --prefix=$TELEX_HOME/req/local
+ make
+ make install
+
+# Building telex-client:
+#cd $TELEX_HOMEi/
+#make
+# Running telex-client:
+#LD_LIBRARY_PATH=$TELEX_HOME/req/local/lib ./telex-client notblocked.telex.cc
Please sign in to comment.
Something went wrong with that request. Please try again.