[Tinyos-help] Instalation Problem: tinyos-tools-1.1.0

Kristin Wright l.kristin.wright at gmail.com
Fri Sep 9 08:50:24 PDT 2005


Hi --

Is the java that you installed really /usr/bin/java as toscheck
reports? If not, you probably only need to modify your path so that
your new java (and it's comm api) is found before the /usr/bin/java.

toscheck does the following test when looking for the comm api:
1) writes the java file: class Test { javax.comm.CommPortIdentifier x; }
2) javac testcomm.java

If 2) ends in error, toscheck determines there's a problem. If the
javax.comm classes cannot be found you won't be able to compile the
tinyos server-side tools (that is, the tools that run on your pc that
would intercept packets from a gateway mote and process them in
different ways).

-kw

On 9/8/05, Betancourt, Christopher Allen <CAB0701 at mail.ecu.edu> wrote:
> Thanks for your reply.  RPM told me that I did get the tinyos tools installed, so I ran the following command:
> install /usr/lib/tinyos/libgetenv.so /usr/bin
> 
> After that I installed the tinyos-1.1.0-1.noarch.rpm.  Following that I ran the toscheck script and got the following output:
> # ./toscheck
> Path:
>         /usr/kerberos/sbin
>         /usr/kerberos/bin
>         /usr/local/sbin
>         /usr/local/bin
>         /sbin
>         /bin
>         /usr/sbin
>         /usr/bin
>         /usr/X11R6/bin
>         /usr/lib/jre/bin
>         /root/bin
> 
> Classpath:
>         .
>         /usr/bin/tinyos-1.x/tools/java
>         /usr/bin/tinyos-1.x/tools/java/jars/pxgraphapplet.jar
>         /usr/bin/tinyos-1.x/tools/java/jars/oalnf.jar
> 
> 
> 
> avr-gcc:
>         /usr/local/bin/avr-gcc
>         Version: avr-gcc (GCC) 3.3-tinyos
> 
> 
> perl:
>         /usr/bin/perl
>         Version: v5.8.5 built for i386-linux-thread-multi
> 
> flex:
>         /usr/bin/flex
> 
> bison:
>         /usr/bin/bison
> 
> java:
>         /usr/bin/java
>         java version "1.4.2_06"
> 
> javax.comm:
> --> WARNING: Could not find the javax.comm classes.
> Please ensure the java Comm API is installed correctly.
> Couldn't invoke javac on test program
> 
> uisp:
>         /usr/local/bin/uisp
>         uisp version 20030820tinyos
> 
> graphviz:
>         /usr/bin/dot
>         dot version 1.10 (Thu Jul 10 02:30:40 EDT 2003)
> 
> avr-as:
>         /usr/local/bin/avr-as
>         GNU assembler 2.13.2.1
> 
> avarice:
>         /usr/local/bin/avarice
>         AVaRICE version 2.0.20030825cvs, Aug 26 2003 03:14:15
> 
> avr-gdb:
>         /usr/local/bin/avr-gdb
>         GNU gdb cvs-pre6.0-tinyos
> 
> 
> toscheck completed with errors:
> 
> --> WARNING: Could not find the javax.comm classes.
> Please ensure the java Comm API is installed correctly.
> 
> Will this work?  Thanks for your time,
> Chris B.
> 
> 
> -----Original Message-----
> From: Kristin Wright [mailto:l.kristin.wright at gmail.com]
> Sent: Thu 9/8/2005 10:19 AM
> To: Betancourt, Christopher Allen
> Cc: tinyos-help at millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Instalation Problem: tinyos-tools-1.1.0
> 
> Hi --
> 
> Your hunch is correct: if the rpm is installed, you can simply run the
> %post commands to have it all work.
> 
> If you type 'rpm -q tinyos-tools'  you'll be able to see if it's installed:
> 
> $rpm -q tinyos-tools
> tinyos-tools-1.1.0-1
> 
> The rpm command will return 'package tinyos-tools is not installed' if
> it isn't installed.
> 
> -kw
> 
> On 9/6/05, Betancourt, Christopher Allen <CAB0701 at mail.ecu.edu> wrote:
> >
> >
> > Hello All,
> >
> >  I am having a problem installing the tinyos-tools-1.1.0-1.i386.rpm file.  I
> > have
> >  installed IBMJava2-142-ia32-SDK-1.4.2-2.0.i386.rpm,
> >  IBMJava2-JAVACOMM-1.4.2-2.0.i386.rpm, and
> >  IBMJava2-142-ia32-JRE-1.4.2-2.0.i386.rpm.  When I try to
> > install it using the -ivh
> >   and --force flags I get the following output:
> >
> >  [root at cab0701 download]# rpm -ivh --force tinyos-tools-1.1.0-1.i386.rpm
> >  Preparing...
> > ########################################### [100%]
> >     1:tinyos-tools
> > ########################################### [100%]
> >  Cannot locate java - is it installed?
> >  error: %post(tinyos-tools-1.1.0-1.i386) scriptlet failed, exit status 1
> >
> >
> >  I have two questions, first have I actually sucessfully installed this?
> >  Second I read how the post script works from the [Tinyos-help] Newbie:
> > install help
> >  (IBMJava2-SDK) thread.  When I run the locate-jre command myself with the
> > --javac option I get
> >  /usr/bin
> >  The question I have is can I use the output from this and run the commands
> > that the post
> >   script does and have it work?
> >  Thank you for your time,
> >  Chris B.
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
> >
> 
> 
>



More information about the Tinyos-help mailing list