I'll file this away... (as opposed to tossing).

At the very least, we can document this in the installation instructions.
Right now, they say 'download and install the JDK' as the first step so we
assume a JDK exists.  I believe that someone else encountered this problem
and ended up reinstalling redhat because they didn't realize what the
problem was. 

Thanks. 

-kw

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mads
Bondo Dydensborg
Sent: Friday, November 28, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: [Tinyos-users] Nasty RPM error?

Hi everyone

I have spend the last day struggling with a fresh RH9.0 install and the
RPMS from 2003.09.10 (September). We use them for a course, which is why I
am not using the newer release. Anyway, there is a nasty error in the
script that gets installed in

/usr/local/bin/locate-jre

This script is called from a login shell, from
/etc/profile.d/tinyos.sh

The script include the following lines:

  # On Linux, we first try to find it from the rpm
  j=`rpm -ql IBMJava2-SDK | grep '/javac$'`
  if [ $? != 0 ]; then
    # Next we try the path. But a nasty rpm may have removed them, so we
    # recreate our default path...
    PATH=`bash --login -c 'echo $PATH'`

The problem is, that if you do not have any java installed, the line
    PATH=`bash --login -c 'echo $PATH'`
will run /usr/local/bin/locate-jre again....

This took me more time to realize than I am prepared to tell you :-/

This error may not be present in newer versions of the RPM - but if it is,
please consider removing this problem.

Thanks,

Mads

-- 
+----------------------------------------------------------------------+
|  Mads Bondo Dydensborg.               http://www.distlab.dk/madsdyd/ |
|  +45 35 32 14 18                                                     |
+----------------------------------------------------------------------+
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to