Hi,
I'am following tutorial from http://docs.tinyos.net/index.php/Installing_tinyos-2.x_on_Mac_OS_X_(Tiger_&_Leopard)
to install TinyOS on my MacBook.
And I ran into problems with Java.
Here is what "make" told me when i was following the tutorial:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. nesc -> "make install":
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2. ./Bootstrap -> "make":
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
make[1]: Nothing to be done for `all-am'.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3. ./Bootstrap -> "make install":
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4. $TOSROOT/support/sdk/java -> "make":
javac AbstractSource.java
AbstractSource.java:37: package net.tinyos.util does not exist
............... (and so on)
make[3]: *** [DiagMsg.class] Error 1
make[2]: *** [subdirs] Error 2
make[1]: *** [subdirs] Error 2
make: *** [subdirs] Error 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5. "file /Library/Java/Extensions/libtoscomm.jnilib"
/Library/Java/Extensions/libtoscomm.jnilib: Mach-O bundle i386 (I
understand this is good if it is 32 bit not 64 bit?)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(my .profile file)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
##
# DELUXE-USR-LOCAL-BIN-INSERT
# (do not remove this comment)
##
echo $PATH | grep -q -s "/usr/local/bin"
if [ $? -eq 1 ] ; then
PATH=$PATH:/usr/local/bin
export PATH
fi
export PATH=/stow/bin:/stow/sbin:$PATH
# MacPorts Installer addition on 2009-06-02_at_15:18:22: adding an
appropriate PATH variable for use wit$
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with
MacPorts.
# MacPorts Installer addition on 2009-06-02_at_15:18:22: adding an
appropriate MANPATH variable for use $
export MANPATH=/opt/local/share/man:$MANPATH
# Finished adapting your MANPATH environment variable for use with
MacPorts.
source /opt/tinyos-2.x/tinyos.sh
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tinyos.sh script (Is it correct?) (it is called from .profile)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
export TOSROOT=/opt/tinyos-2.x
export TOSDIR=$TOSROOT/tos
export CLASSPATH=$TOSROOT/support/sdk/java/:$TOSROOT/support/sdk/java/
tinyos.jar:.$CLASSPATH
export MAKERULES=$TOSROOT/support/make/Makerules
# 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/bin:$PATH
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Is it possible to compile tinyos code without Java? But it doesn't
work on my Mac because I have some other problems beside Java?
cd /opt/tinyos-2.x/apps/Blink
sudo make micaz install
make: *** No rule to make target `micaz'. Stop.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tos-check-env
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Path:
/usr/bin/java
/usr/bin/javac
/opt/local/bin
/opt/local/sbin
/stow/bin
/stow/sbin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
/usr/local/AVRMacPack/bin
Classpath:
/opt/tinyos-2.x/support/sdk/java/
/opt/tinyos-2.x/support/sdk/java/tinyos.jar
.
nesc:
/stow/bin/nescc
Version: nescc: 1.3.0
perl:
/usr/bin/perl
Version: v5.8.8 built for darwin-thread-multi-2level
flex:
/usr/bin/flex
bison:
/usr/bin/bison
java:
/usr/bin/java
java version "1.5.0_16"
graphviz:
--> WARNING: tos-check-env could not find the 'dot' executable which
is part of the AT&T Graphviz package. Please install version 1.1.0 of
Graphviz if you'd like to use the nescdoc documentation generator. If
Graphviz is already installed, then dot may not be in your PATH.
tos-check-env completed with errors:
--> WARNING: tos-check-env could not find the 'dot' executable which
is part of the AT&T Graphviz package. Please install version 1.1.0 of
Graphviz if you'd like to use the nescdoc documentation generator. If
Graphviz is already installed, then dot may not be in your PATH.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The main problem is step 4 (see above).
What can be wrong, what should I check?
Andres Vahter
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help