Difference between revisions of "Installing From Source"
(nesc) |
(tinyos) |
||
Line 25: | Line 25: | ||
Run the normal build procedure. | Run the normal build procedure. | ||
<pre> | <pre> | ||
+ | cd nesc | ||
./Bootstrap | ./Bootstrap | ||
./configure | ./configure | ||
make | make | ||
make install | make install | ||
+ | </pre> | ||
+ | </li> | ||
+ | </ol> | ||
+ | |||
+ | == TinyOS == | ||
+ | <ol> | ||
+ | <li> | ||
+ | Get the source from the GitHub repository. | ||
+ | <pre> | ||
+ | git clone git://github.com/tinyos/tinyos-main.git | ||
+ | </pre> | ||
+ | </li> | ||
+ | |||
+ | <li> | ||
+ | Install the tools. | ||
+ | <pre> | ||
+ | cd tinyos-main/tools | ||
+ | ./Bootstrap | ||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | </pre> | ||
+ | </li> | ||
+ | |||
+ | <li> | ||
+ | Set the environment variables. Add the following to `.bashrc`. | ||
+ | <pre> | ||
+ | export TOSROOT=$HOME/tinyos-main | ||
+ | export TOSDIR=$TOSROOT/tos | ||
+ | export MAKERULES=$TOSROOT/support/make/Makerules | ||
+ | export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:. | ||
+ | export PYTHONPATH=$TOSROOT/support/sdk/python:$PYTHONPATH | ||
+ | export PATH=$TOSROOT/support/sdk/c:$PATH | ||
</pre> | </pre> | ||
</li> | </li> | ||
</ol> | </ol> |
Revision as of 12:16, 12 May 2013
This page explains how to install TinyOS and nesC from their source repositories. This is useful for developers who want to contribute or users who need very recent changes.
nesC
-
Get the prerequisites.
- automake
- emacs
- bison
- flex
- gperf
-
Get the source from the GitHub repository.
git clone git://github.com/tinyos/nesc.git
-
Run the normal build procedure.
cd nesc ./Bootstrap ./configure make make install
TinyOS
-
Get the source from the GitHub repository.
git clone git://github.com/tinyos/tinyos-main.git
-
Install the tools.
cd tinyos-main/tools ./Bootstrap ./configure make make install
-
Set the environment variables. Add the following to `.bashrc`.
export TOSROOT=$HOME/tinyos-main export TOSDIR=$TOSROOT/tos export MAKERULES=$TOSROOT/support/make/Makerules export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:. export PYTHONPATH=$TOSROOT/support/sdk/python:$PYTHONPATH export PATH=$TOSROOT/support/sdk/c:$PATH