[Home]Debian Sarge Compile LinuxCNC

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Contents

1. Installing Deb Packages
1.1. Apt Configuration Files
1.2. Installing Kernel and RTAI modules
1.3. Installing Other Packages
2. Compiling EMC2
2.1. Compiling
3. Udev Configuration
4. Running EMC2

This page describes how to prepare Debian Sarge to compile EMC2 and AXIS.

1. Installing Deb Packages

1.1. Apt Configuration Files

/etc/sources.list (sample)
deb      http://ftp.de.debian.org/debian           sarge            main contrib non-free
deb-src  http://ftp.de.debian.org/debian           sarge            main contrib non-free
deb      http://ftp.de.debian.org/debian-security  sarge/updates    main contrib non-free
deb-src  http://ftp.de.debian.org/debian-security  sarge/updates    main contrib non-free
deb      http://ftp.de.debian.org/debian-non-US    sarge/non-US     main contrib non-free
deb-src  http://ftp.de.debian.org/debian-non-US    sarge/non-US     main contrib non-free
deb      http://bdi4emc.ourproject.org/debian      sarge            non-free extras
deb      http://www.backports.org/debian           sarge-backports  main contrib non-free
deb-src  http://www.backports.org/debian           sarge-backports  main contrib non-free

/etc/apt/preferences
Package: *
Pin: release a=sarge-backports
Pin-Priority: 200

/etc/apt/apt.conf
APT::Default-Release "stable";
APT::Cache-Limit "134217728";

1.2. Installing Kernel and RTAI modules

 su -
 apt-get update
 apt-get -u upgrade
 apt-get install linux-image-2.6.12.6-rtai rtai-modules-2.6.12.6-rtai
 reboot

1.3. Installing Other Packages

After booting with the new kernel

 su -
 apt-get install linux-headers-2.6.12.6-rtai \
                 rtai-dev-2.6.12.6-rtai \
                 python2.4 \
                 python2.4-tk \
                 python2.4-dev \
                 python2.4-numarray \
                 yapps2 \
                 tcl8.4-dev \
                 tk8.4-dev \
                 libgtk2.0-dev \
                 libncurses5-dev \
                 libreadline5-dev \
                 libxmu-dev \
                 libxaw7-dev \
                 xlibmesa-dev \
                 pciutils-dev \
                 bwidget \
                 git-core \
                 sudo 
 apt-get install -t sarge-backports \
                    python2.4-imaging \
                    python2.4-imaging-tk 

 #you will need these to build the documentation
 apt-get install latex2html \
                 preview-latex-style \
                 latex-xft-fonts \
                 libaiksaurus0c102 \
                 libgnomeprintui2.2-dev \
                 imagemagick 
 apt-get install -t sarge-backports \
                    lyx

 exit

Because of dependencies the following packages will be installed too

 rtai-dev-2.6.12.6-rtai   -> gcc-2.95 cpp-2.95
 yapps2                   -> yapps2-runtime
 tk8.4-dev                -> libice-dev libsm-dev libx11-dev libxext-dev libxt-dev 
                          -> libxv-dev x-dev xlibs-static-dev zlib1g-dev
 libgtk2.0-dev            -> libatk1.0-dev libexpat1-dev libfontconfig1-dev 
                          -> libfreetype6-dev libglib2.0-dev libpango1.0-dev 
                          -> libxft-dev libxrender-dev render-dev
 xlibmesa-dev             -> xlibmesa-gl-dev xlibmesa-glu-dev
 latex2html               -> tetex-base tetex-bin tetex-extra libkpathsea3 libwww0
 libaiksaurus0c102        -> libaiksaurus-data
 imagemagick              -> libmagick6
 lyx                      -> lyx-common lyx-qt
 libgnomeprintui2.2-dev   -> libart-2.0-dev libgnomecanvas2-dev libgnomeprint2.2-dev



2. Compiling EMC2

Follow the instructions on Installing EMC2

2.1. Compiling

 cd emc2-head/src
 export KDIR=/usr/src/linux-headers-2.6.12.6-rtai
 ./configure --with-python=python2.4 --enable-run-in-place --enable-build-documentation
 make
 su -c "make setuid"
 cd ..

if you don't want to build documentation, remove --enable-build-documentation



3. Udev Configuration

 su -
 echo "KERNEL=\"RTAI_SHM\",      SYMLINK=\"rtai_shm\",     MODE=\"0666\"" >/etc/udev/emc2.rules
 cd /etc/udev/rules.d
 ln -s ../emc2.rules 010_emc2.rules
 /etc/init.d/udev restart
 exit



4. Running EMC2

 scripts/emc

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited June 20, 2009 3:31 pm by JeffEpler (diff)
Search:
Published under a Creative Commons License