This is one of those annoying features of cygwin trying to help us...
cygwin can be installed with one of two options for text line endings,
the DOS "/r/n" or the good old UNIX "/n". Your editor has helped you
by putting the DOS-endings into your script file but cygwin has been
installed to use UNIX and just REFUSES to help any further.
I thought I found a way to fix this in the cygwin help, but it has
never worked for me. So I now have to remember to select the right
version when installing cygwin, except I never remember which is the
right one...I thought it was DOS because I just installed a new
system with that option, but my system here has only 0x0A endings
in it's scripts...
The quick fix is a dos2unix type program that strips the linefeeds
('\r') -- or are they the newlines, I wish I could remember where
my ASCII chart has gotten to -- from your text files. And then see
if you can confg your editor to use the right set. VIM has some
options for conversion and config buried in a menu someplace, I
can't learn to use any other editor so I can't help with them.
MS
himanshu barve wrote:
> I have just installed tinyos-2.x
> According to instruction given
> at http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html , i
> configured environment . (TOSROOT, TOSDIR ,CLASSPATH ,MAKERULES and PATH)
> But every time i exit cygwin. Those configurations are getting erased.
> As i type 'printenv' its not showing (TOSROOT, TOSDIR ,CLASSPATH
> ,MAKERULES)
> So i went to /etc/profile.d , but after that even without making any
> change in any file (i just read those files) bash started to give error
> as below. (at start)
> ____________________________________________________________________
> bash: $'/r' command not found
> bash: $'/r' command not found
> bash: $'/r' command not found
> ': not a valid identifier
>
> administra...@himanshu~
> $
> _____________________________________________________________________
>
> After that i tried to change msp430tools.csc in /etc/profile.d . i
> added one more line
> -------------------------------------------------------------------------------------------------------------------------------------------
> #!/bin/sh
> #
> # Technische Universität Berlin
> # Kevin Klues <[email protected] <mailto:[email protected]>>
> #
> # Based on the CDK4MSP project from:
> # LiPronix by Li-Pro.Net
> # Stephan Linz <[email protected] <mailto:[email protected]>>
> #
> #
>
> MSP430TOOLS="/opt/msp430"
> PATH="$PATH:$MSP430TOOLS/bin"
> LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MSP430TOOLS/lib"
> PYTHONPATH="$PYTHONPATH:$MSP430TOOLS/lib/python2.3/site-packages/"
> MAN_PATH="$MAN_PATH:$MSP430TOOLS/man"
> TOSROOT="/opt/tinyos-2.x" (-------------- i added this )
>
> export MSP430TOOLS PATH LD_LIBRARY_PATH PYTHONPATH MAN_PATH TOSROOT(this
> too)
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
> but after that also .. 'printenv' is not showing TOSROOT
>
> please help me in this ..
> Is it require to export all (5 nos) configuration , everytime i start
> cygwin ??
> thanks in advance
>
>
>
> --
> With Best Regards
> Himanshu Barve
> IIT Kharagpur
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help