Step 4: Install the TinyOS 2.x source tree
rpm -ivh --ignoreos tinyos-2.1.0-2.cygwin.noarch.rpm
Step 5:设置环境变量
用UltraEdit创建C:\cygwin\etc\profile.d\tinyos.sh,输入以下内容:
# script for profile.d for bash shells, adjusted for each users
# installation by substituting /opt for the actual tinyos tree
# installation point.
export TOSROOT="/opt/tinyos-2.x"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH="C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar"
export CLASSPATH="$CLASSPATH;."
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH="$TOSROOT/support/sdk/python"
# Extend path for java
type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --java`PATH
type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --javac`PATH
echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/binPATH
这是从我的文件直接复制过来的,如果输入保存还是不行,可以跟我要这个文件