[Tinyos-help] Problems installing bombilla VM / mate

Philip Levis pal at cs.berkeley.edu
Tue Mar 22 00:12:07 PST 2005


On Mar 21, 2005, at 2:43 PM, Gary Yee wrote:

> Hi,
>
> I upgraded to tinyos-1.1.11 in FC3 using the rpm from the tinyos
> website, but the Bombilla VM was not included (nor has it been in the
> past) in my install.  I've tried downloading and installing
> mate-asvm-2.2.1-1.noarch.rpm using the instructions from:
> http://www.cs.berkeley.edu/~pal/mate-web/downloads.html, but I get the
> following output:
>
> [root at localhost rpms] rpm -ivh --ignoreos --replacefiles
> mate-asvm-2.2.1-1.noarch.rpm
> Preparing...                
> ########################################### [100%]
>    1:mate-asvm              
> ########################################### [100%]
> make: *** No targets specified and no makefile found.  Stop.
> error: %post(mate-asvm-2.2.1-1.noarch) scriptlet failed, exit status 2
>
> When I try to erase this rpm, I get this output:
> [root at localhost rpms] rpm --erase mate-asvm-2.2.1-1.noarch
> /var/tmp/rpm-tmp.78333: line 4: cd:
> /home/yeeg/tinyos/tinyos-1.x/tools/java/net/tinyos/script: No such
> file ordirectory
> /var/tmp/rpm-tmp.78333: line 5: cd:
> /home/yeeg/tinyos/tinyos-1.x/apps/Bombilla: No such file or directory
> error: %preun(mate-asvm-2.2.1-1.noarch) scriptlet failed, exit status 1
>
> Any help would be greatly appreciated!

You can find the vm.spec file in CVS, under tools/release/vm. The 
details:

On installation, the rpm executes this script:

if ! ( type java >/dev/null 2>/dev/null && type javac >/dev/null 
2>/dev/null );
then
   echo "Cannot find java and javac - java tools not compiled" 1>&2
   exit 0
fi
cd $TOSROOT/tools/java/net/tinyos/script
make

It looks like your TOSROOT environment variable isn't configured 
correctly? Is it trying to install Maté in a place that doesn't exist?

You can always try adding the --noscripts flag to the rpm command. If 
you continue to run into issues with uninstalling before reinstalling, 
you can always create empty, dummy directories for it to remove.

Phil

-------

"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."

- T. S. Eliot,  'Little Gidding'




More information about the Tinyos-help mailing list