我按照本教程在ubuntu 15.04上安装了tinyos:http://tinyos.stanford.edu/tinyos-wiki/index.php/Automatic_installation
我的telosb被很好地检测到了:
root@liberty:/opt/tinyos-release-tinyos-2_1_2/apps/Blink# motelist
Reference Device Description
---------- ---------------- ---------------------------------------------
FTYP7UJV /dev/ttyUSB0 FTDI MTM-CM5000MSP
我的tinyos.env:
root@liberty:/opt/tinyos-release-tinyos-2_1_2# cat tinyos.env
# Here we setup the environment
# variables needed by the tinyos
# make system
export TOSROOT="/opt/tinyos-release-tinyos-2_1_2/"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH=$PYTHONPATH:$TOSROOT/support/sdk/python
echo "setting up TinyOS on source path $TOSROOT"
我的tos-check-env:
tomski@liberty:~$ tos-check-env
Path:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
Classpath:
/usr/src/tinyos/support/sdk/java/tinyos.jar
/opt/tinyos-2.1.2/support/sdk/java
/opt/tinyos-2.1.2/support/sdk/java/tinyos.jar
.
/usr/lib/jvm/java-6-openjdk-i386/lib
/usr/lib/jvm/java-6-openjdk-i386/lib
rpms:
/usr/bin/rpm
nesc:
/usr/bin/nescc
Version: nescc: 1.3.4
perl:
/usr/bin/perl
Version: v5.20.2) built for i686-linux-gnu-thread-multi-64int
flex:
bison:
java:
/usr/bin/java
--> WARNING: The JAVA version found first by tos-check-env may not be version 1.4 or version 1.5, one of which is required by TOS. Please ensure that the located Java version is 1.4 or 1.5
graphviz:
/usr/bin/dot
dot - graphviz version 2.38.0 (20140413.2041)
--> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. Please update your graphviz version if you'd like to use the nescdoc documentation generator.
tos-check-env completed with errors:
--> WARNING: The JAVA version found first by tos-check-env may not be version 1.4 or version 1.5one of which is required by TOS. Please ensure that the located Java version is 1.4 or 1.5
--> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. Please update your graphviz version if you'd like to use the nescdoc documentation generator.
我的java版本:
tomski@liberty:~$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.15.04.1)
OpenJDK Server VM (build 24.79-b02, mixed mode)
编译时:
root@liberty:/opt/tinyos-release-tinyos-2_1_2/apps/Blink# make telosb
make: *** No rule to make target 'telosb'. Stop.
我有build-essentials,nescc,gcc,make等..
非常感谢您的帮助
答案 0 :(得分:0)
以超级用户身份执行每项任务,并解析查询。 例如:
$ sudo touch tinyos-env
$ sudo nano tinyos-env
执行复制并相应地更改TOSROOT路径,同样将同一文件复制到〜/ .bashrc文件中,并以超级用户身份执行每个应用程序
$ sudo su
虽然这篇文章有点太晚了,但该帖子的最后评论最近帮我解决了Ubuntu-15.04上TinyOS的查询问题。
答案 1 :(得分:0)
也许您可以在没有root权限的情况下执行此操作,但可以使用用户权限
然后:cd /opt/tinyos-release-tinyos-2_1_2/apps/Blink
然后:sudo chmod -R 777 .
然后:make telosb
答案 2 :(得分:0)
旧帖子,但以前的答案并不完全清楚。
您必须指向该tinyos.env文件。 为此,请从您的主目录: 打开.bashrc文件:
sudo nano .bashrc
在.bashrc文件的底部,添加以下行:
source <path_to_tinyos_folder>/tinyos.env
当然,文件tinyos.env包含设置环境变量。