Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "HowToBuild" page has been changed by LyubenTodorov: https://wiki.apache.org/cassandra/HowToBuild?action=diff&rev1=7&rev2=8 Comment: Updated JDK version, added section for older versions (didnt go further back than c* 1.2) Added section on building tools. Toolchain requirements: || '''Tool''' || '''Version''' || - || Java SDK || 1.6 (preferably the latest) || + || Java SDK || 1.7 (preferably the latest) || || ANT || At least version 1.8 || + || GIT || 1.7 || To build the latest version of Cassandra from Git: {{{ - git clone http://git-wip-us.apache.org/repos/asf/cassandra.git cassandra + git clone git://git.apache.org/cassandra.git cassandra cd cassandra # if directly connected to the internet ant @@ -34, +35 @@ git tag # checkout source files for the release - git checkout _tag_for_the_release_ + git checkout <tag_for_the_release> # for example, if you need to checkout 0.7.9 release git checkout cassandra-0.7.9 @@ -50, +51 @@ == Older versions == - Not currently documented. Please feel free to add documentation. + Toolchain requirements: + + || '''Cassandra version''' || '''Java SDK''' || '''GIT''' || '''ANT''' || + || 2.0 || 1.7 || 1.7 || At least version 1.8 || + || 1.2 and older || 1.6 || 1.7 || At least version 1.8 || + + To build diffrent Cassandra versions from Git you need to specify the version via git's branch option: + + {{{ + git clone -b <cassandra_version> git://git.apache.org/cassandra.git cassandra + # e.g for 1.2: git clone -b cassandra-1.2 git://git.apache.org/cassandra.git cassandra + # e.g for 2.0: git clone -b cassandra-2.0 git://git.apache.org/cassandra.git cassandra + cd cassandra + # if directly connected to the internet + ant + # if connected via a proxy + ant -autoproxy + }}} + + You can find the diffrent branches representing Cassandra versions via: + + {{{ + git branch -a + }}} + + == Building Tools == + + To build the cassandra-stress tool + + {{{ + ant stress-build + }}} == Troubleshooting ==
