3. On Ubuntu 5.10 and 6.06 from source
3.1. Preparing Ubuntu to compile emc2
If you wish to build emc2 from source, follow the steps given below. Indented text that looks
like the text on this line
is text that you type into the terminal window.
After following the [basic instructions], use apt to install additional packages required to rebuild emc2:
sudo apt-get build-dep emc2
3.2. Getting the source with CVS
EMC2 source is stored in a system called CVS. Before you can get a CVS copy of EMC2 from our cvs you will need to install it.
sudo apt-get install cvs
To get the latest released version of emc2,
export CVS_RSH=ssh
cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -rv2_1_branch -d emc2.1-branch emc2
CVS has more instructions, such as how to update your version of emc2 after other developers have made improvements.
UPDATING your configuration files is necessary to use configuration files from 2.0.x with version 2.1.x. UpdatingConfigurationsForDevelopmentVersions is necessary to use configuration files from 2.0.x or 2.1.x with the CVS versions.
3.3. Building emc2 (realtime)
Run these commands in the top directory (the emc2.1.1, emc2.1-branch or emc2-head created above):
cd src
./configure --enable-run-in-place
make && sudo make setuid
the last command may take several minutes to complete.