Hi, Great, I'm using Ubuntu as well :-). There are several ways to install TinyOS on Linux, and I would need to know exactly which document you used. For instance I followed the instructions here:
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1.1#Two-step_install_on_your_host_OS_with_Debian_packages There is this step in the instructions: -------------------------------------- 4) Add the following line to your |~/.bashrc| or |~/.profile| file in your home directory to set up the environment for TinyOS development at login #Sourcing the tinyos environment variable setup script source /opt/tinyos-2.1.1/tinyos.sh -------------------------------------- I think this is what is missing in your installation. The instructions with RPMs are a bit more confusing (in my opinion). There is this bit about setting up the environment: -------------------------------------- * Configure your environment Ideally, you'll put these environment variables in a shell script that will run when your shell starts, but you needn't put such a script under /etc/profile.d. You can use ~/.bash_profile. (in Cygwin, too) The example settings below assume that the tinyos-2.x installation is in /opt/tinyos-2.x. Change the settings to be correct for where you've put your tinyos-2.x tree. Note that the windows CLASSPATH must be a windows-style path, not a cygwin path. You can generate a windows style path from a cygwin-style path using 'cygpath -w'. For example: export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` export CLASSPATH="$CLASSPATH;." */TinyOS 2.x/* *Environment Variable* *Windows* *Linux* TOSROOT /opt/tinyos-2.x same as in Cygwin TOSDIR $TOSROOT/tos same as in Cygwin CLASSPATH C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. $TOSROOT/support/sdk/java/tinyos.jar:. MAKERULES $TOSROOT/support/make/Makerules same as in Cygwin PATH† /opt/msp430/bin:/opt/jflashmm:$PATH same as in Cygwin /†Only necessary if you're using MSP430 or iMote2 platform/tools./ In addition to the above environment variables, do the following on Linux machines: 1. Change the ownership on your /opt/tinyos-2.x files: |chown -R <your uid> /opt/tinyos-2.x | 2. Change the permissions on any serial (/dev/ttyS<N>), usb (/dev/tts/usb<N>, /dev/ttyUSB<N>), or parallel (/dev/parport) devices you are going to use: |chmod 666 /dev/<devicename>| -------------------------------------- Well, I guess you better read that in the original instructions. Cheers, Urs On 8/18/10 12:59 AM, Hamidreza Ghafghazi wrote: > Hi, > > I am using UBUNTU 9.10. > > i used documents in tinyos.net <http://tinyos.net> for > installation. > > > Actually I don know about tinyos.sh, where can i check it to find out > whether I call or not? > > The java version is 1.6. > > Thank you for your response.your help means a lot. best regards > > On Tue, Aug 17, 2010 at 8:41 PM, Urs Hunkeler <[email protected] > <mailto:[email protected]>> wrote: > > Hi, > > What operating system are you using? > > Which installation guide did you use for the installation? > > Did you call the tinyos.sh script? > > What is the output of "java -version" and of "which java"? > > Cheers, Urs > > > > On 8/17/10 9:27 AM, Hamidreza Ghafghazi wrote: > > > dear all, I have a problem with makeruls. I have checked the > environmental variables and I use the /tos-check-env/ command to > check what is the problem,and here is the report: > > tos-check-env completed with errors: > > --> WARNING: CLASSPATH environment variable doesn't exist. Your > classpath should contain and a pointer to the cwd (a dot) --> > 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. > > Please help to overcome this problem. I will appreciate your quick > response. > > best regards > > > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
