天嵌 ARM开发社区

 找回密码
 注册
查看: 2235|回复: 1

gcc3.3.2添加环境变量失败,求救.百度没找到

[复制链接]
Aker 发表于 2012-5-4 11:57:26 | 显示全部楼层 |阅读模式
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
                                                                                
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
                                                                                
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTC
export PATH=/usr/local/arm/3.3.2/bin:$PATH
                                                                                
for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        . $i
    fi
done
unset i
unset pathmunge

我保存以上添加的后,用source /etc/profile总是出错:[root@localhost root]# source /etc/profile
bash: /etc/profile: line 49: syntax error: unexpected end of file
TQ_guoxixiao 发表于 2012-5-10 11:35:54 | 显示全部楼层
49行是那一样?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-6-3 17:21 , Processed in 1.015625 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表