本帖最后由 yuhuan21 于 2014-12-01 11:42 编辑 我用得系统是openwrt,嵌入式linux需要设置export path环境变量. 但是遇到了一个问题,我修改了/etc/profile,然后设置了一条/etc/init.d/autoruns,然后重启系统,经过调试输出发现,autoruns的自启动已经执行了,但是因为/etc/profile的export path没有生效,使得运行结果并不是我想要的. 然而,我用ROOT账户登录以后,echo $path却发现,这个export path又生效了,是不是/etc/profile的设...
case:一些native程序需要动态load一些在staging里的库,但是当前OpenEmbedded系统并没有保证这一点,也就导致了native程序调用不合适版本的库。在OE仓库中这样例子不少: ncurses 包 # This is necessary so that the "tic" command executed during the install can # link with the correct libary in staging. export LD_LIBRARY_path = "${STAGING_LIBDIR_NATIVE}" 本文来自ChinaUnix博客,如果查看原文请点:http:/...
export path=$ORACLE_HOME/Apache/Apache/bin:$path? 还是 export path=$ORACLE_HOME/sqlplus? 还是 export path=$ORACLE_HOME/bin? 还是其他?。。。。。。。。。。
在/etc/profie里设置好path后,没有将其export, 但用env命令还是能看到在path变量的定义(和/etc/profie里的定义一样)。 难道这说明shell脚本里定义的变量不用export也能成为系统变量,奇怪。 不明白,请教。
在/etc/profie里设置好path后,没有将其export,\r\n但用env命令还是能看到在path变量的定义(和/etc/profie里的定义一样)。\r\n难道这说明shell脚本里定义的变量不用export也能成为系统变量,奇怪。\r\n\r\n不明白,请教。
请问: export path=.:$ORACLE_HOME/bin:$path 中的 .: 是什么意思 !