Eat my v2!
- Sedat -
On Thu, Jan 17, 2013 at 4:31 PM, <[email protected]> wrote:
>
> 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
> [email protected]
##### ChangeLog:
# * 17-Jan-2013: Version 2
# + Add $WORKING_DIR, rename log-file names and reorder VARIABLES.
# + Add libattr-dev and libcap-dev packages as suggested by chrubis.
# + Run 'make install' as root as some tests might expect files owned by root
(Thanks chrubis).
# * 16-Jan-2013: Initial release
##### EXPORTS
export LANG=C
export LC_ALL=C
##### VARIABLES
WORKING_DIR="$HOME/src/ltp"
BUILD_LOG_FILE="build-log_ltp-git.txt"
INSTALL_LOG_FILE="install-log_ltp-git.txt"
GIT_URL="https://github.com/linux-test-project/ltp.git"
PREFIX="/opt/ltp"
##### PREREQS ON UBUNTU
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 libattr-dev libcap-dev
##### WORKING-DIR
mkdir -p $WORKING_DIR
cd $WORKING_DIR
##### 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_FILE
##### INSTALL LTP
sudo make install 2>&1 | tee ../$INSTALL_LOG_FILE
------------------------------------------------------------------------------
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. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list