Requirements
Please have on hand:
- Linux or OS X
- The usual development tools (like
makeandgcc) - A relatively modern Ruby (let’s say 1.8.6 and up)
- RubyGems so you may get the next requirement
- Treetop -
gem install treetop - Git if you want to check it out of the repository directly -
sudo urpmi git-core(or the equivalent for your platform)
Installation
Please follow the following steps, in the order in which they are ordered. Otherwise, results are not guaranteed.
With Git:
- Clone the latest Brat version:
git clone git://github.com/presidentbeef/brat.git - Change to new directory:
cd brat - Run
sh ./build.sh - Optionally, run
sudo sh ./install.sh. This will install in/usrby default. Append a directory to change this.
Without Git:
- Download the latest (click “Download Source” and then whichever archive type you want)
- Decompress the archive (
tar xf presidentbeef-brat*.tar.gzorunzip presidentbeef-brat*.zip) - Change to the new directory (it will be something like
presidentbeef-brat-421918f) - Run
sh ./build.sh - Optionally, run
sudo sh ./install.sh. This will install in/usrby default. Append a directory to change this.
More Testing
Run brat test/test.brat to run the test suite. SWEET.
Interactive Brat
Brat will run in interactive mode if no files are specified.
