求大虾指导cygwin
我利用以下命令:
export TOSROOT=/opt/tinyos-2.x
export TOSDIR=$TOSROOT/tos
export CLASSPATH=`cygpath –w $ TOSROOT/support/sdk/java/tinyo.jar`
export CLASSPATH=“CLASSPATH;.”
export MAKERULES=$TOSROOT/support/make/Makerules
已经成功实现了环境变量的设置,但是每当我退出以后再进就又得这样再设定一次,似乎没有保存上一次的设置,应该输入什么命令来保存变量设置。
还有我也用过在profile.d下新建一个tinyos.sh文件,写入:
# script for profile.d for bash shells,adjusted for each users
# installation by substituting /opt for the actual tinyos tree
# installation point
export TOSROOT="/opt/tinyos-2.x"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
export CLASSPATH="$CLASSPATH;."
export MAKERULES="$TOSROOT/support/make/Makerules"
export PATH="/opt/msp430/bin:$PATH"
# Extend path for java
type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --java`:$PATH
type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --javac`:$PATH
echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH
但会提示在CLASSPATH中缺少“.”。
[解决办法]
环境变量,可以放bashrc文件中吧。
不能用linux,一定要cygwin吗?
[解决办法]
问题已解决,谢谢
[解决办法]
cygwin,以前想学着用,哎,还是没学成