From: <ch...@su...> - 2013-01-17 15:31:26
|
Hi! > $ cat docs/MINI-HOWTO_BUILDING-LTP-FROM-GIT.txt > > ##### EXPORTS > > export LANG=C > export LC_ALL=C > > ##### VARIABLES > > GIT_URL="https://github.com/linux-test-project/ltp.git" > > USER="myusername" > > PREFIX="/opt/ltp" > > BUILD_LOG="build-log_ltp-git.txt" > INSTALL_LOG="install-log_ltp-git.txt" > > ##### PREREQS ON UBUNTU > > sudo apt-get install build-essential > sudo apt-get install autoconf automake autotools-dev m4 > sudo apt-get install git <--- Optional: git-email for sending patches! > sudo apt-get install linux-headers-$(uname -r) > sudo apt-get install libaio-dev You can add libcap-dev and libattr-dev (and possibly more, we should probably keep a list in some file in doc/ directory). > ##### WORKING-DIR > > mkdir -p $HOME/src/ltp > cd $HOME/src/ltp > > ##### GET LTP SOURCE > > git clone $GIT_URL ltp-git > > ##### CONFIGURING LTP > > cd ltp-git/ > make autotools > ./configure --prefix=$PREFIX > > ##### BUILDING LTP > > make 2>&1 | tee ../$BUILD_LOG > > ##### INSTALL LTP > > sudo mkdir $PREFIX > sudo chown $USER:$USER -R $PREFIX > > make install 2>&1 | tee ../$INSTALL_LOG Hmm, the installation is expected to be run as root (and I'm not sure if this will work correctly, most of the thigs should, but there may be test that expects that particular file is owned by root, etc.). -- Cyril Hrubis ch...@su... |