Signed-off-by: Sedat Dilek <[email protected]>
---
 doc/mini-howto-building-ltp-from-git.txt | 62 ++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 doc/mini-howto-building-ltp-from-git.txt

diff --git a/doc/mini-howto-building-ltp-from-git.txt 
b/doc/mini-howto-building-ltp-from-git.txt
new file mode 100644
index 0000000..28825c2
--- /dev/null
+++ b/doc/mini-howto-building-ltp-from-git.txt
@@ -0,0 +1,62 @@
+Mini-Howto: Building LTP from Git
+=================================
+
+******************************************************************************
+The following document briefly describes the single steps to build LTP from
+the Git repository located at GitHub.
+The instructions here were tested on a Ubuntu/precise Linux system (feel free
+to adapt to your distribution).
+
+Changelog:
+ * Initial version: Sedat Dilek <[email protected]>
+ * Embedded comments from Cyril Hrubis <[email protected]>
+******************************************************************************
+
+# Export language settings
+
+export LANG=C
+export LC_ALL=C
+
+# Set some useful variables (adapt if you dislike)
+
+WORKING_DIR="$HOME/src/ltp"
+
+PREFIX="/opt/ltp"
+
+GIT_URL="https://github.com/linux-test-project/ltp.git";
+
+MAKE_JOBS=$(getconf _NPROCESSORS_ONLN)
+
+BUILD_LOG_FILE="build-log.txt"
+INSTALL_LOG_FILE="install-log.txt"
+
+# PREREQS on Ubuntu (package-list is incomplete and may vary for other distros)
+
+sudo apt-get install build-essential
+sudo apt-get install autoconf automake autotools-dev m4
+sudo apt-get install git
+sudo apt-get install linux-headers-$(uname -r)
+sudo apt-get install libaio-dev libattr1-dev libcap-dev
+
+# Working directory
+
+mkdir -p $WORKING_DIR
+cd $WORKING_DIR
+
+# Get the LTP source
+
+git clone $GIT_URL ltp-git
+
+# Configure LTP
+
+cd ltp-git/
+make autotools
+./configure --prefix=$PREFIX
+
+# Start building LTP
+
+make -j$MAKE_JOBS 2>&1 | tee ../$BUILD_LOG_FILE
+
+# Install LTP (requires superuser privileges)
+
+sudo make install 2>&1 | tee ../$INSTALL_LOG_FILE
-- 
1.8.1.1


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to