Thanks a lot for the help! I was able to fix it without much trouble. Looks
like I was in the correct direction with the tinyos.sh file – it looks like
the script wasn’t executed that all. I executed the script and it seems to
set the CLASSPATH and MAKERULES variables correctly. I guess I should add it
to .bashrc. I am curious though as to whether the script is supposed to
execute automatically at all.

 

And the blog link is indeed a great resource! Thanks.

 

--Aravind

From: Zé Pedro Espogeira [mailto:[email protected]] 
Sent: Tuesday, September 08, 2009 6:21 AM
To: [email protected]; [email protected]
Cc: [email protected]
Subject: RE: [Tinyos-help] classpath and makerules error

 

Hello to all 
a week ago i installed TinyOs in Ubuntu 9.04 and it seems to be working fine
:)
i followed the instructions in the TinyOs wiki but i found this ->
http://mythicalcomputer.blogspot.com/2008/08/installation-of-tinyos-in-ubunt
u.html 
and it becme very helpful, go take a look ! 

  _____  

From: [email protected]
To: [email protected]
Date: Tue, 8 Sep 2009 09:36:38 +0300
CC: [email protected]
Subject: Re: [Tinyos-help] classpath and makerules error

 

Hello

 

Also, I tried the simplest TinyOS program (from
http://docs.tinyos.net/index.php/The_simplest_TinyOS_program), when I
execute "mica micaz" I get the following error:

make: *** No rule to make target `micaz'.  Stop.

I installed it yesterday to ubuntu using this tutorial - make worked fine:
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Two-step_install_on_y
our_host_OS_with_Debian_packages

Do you added "source /opt/tinyos.sh"  to /home/<user>/.bashrc? If not then
"tinyos.sh" is never executed. 

 

 

/opt/tinyos-2.1.0/tinyos.sh

 

#! /usr/bin/env bash

# Here we setup the environment

# variables needed by the tinyos 

# make system

 

echo "Setting up for TinyOS 2.1.0"

export TOSROOT=

export TOSDIR=

export MAKERULES=

 

TOSROOT="/opt/tinyos-2.1.0"

TOSDIR="$TOSROOT/tos"

CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java

MAKERULES="$TOSROOT/support/make/Makerules"

 

export TOSROOT

export TOSDIR

export CLASSPATH

export MAKERULES

 

I had also problems with classpath. So I added these dirs to classpath:

CLASSPATH=$TOSROOT/support/sdk/java/:$TOSROOT/support/sdk/java/tinyos.jar:.:
$CLASSPATH

 

 

Andres Vahter

 

 

  _____  

Novo Internet Explorer 8: traduza com apenas um clique. Baixe agora, é
grátis!
<http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_m
edium=Tagline&utm_campaign=IE8> 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to