LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 971|回复: 2

a problem when adjusting tool chain

[复制链接]
发表于 2005-9-16 11:07:20 | 显示全部楼层 |阅读模式
I meet a problem when adjusting tool chain
asking for help

when executing "SPECFILE='gcc --print-file specs' &&
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' $ $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE"

it says " sed cann't recongize --print-file"
Then what can I do?

any help will be helpful......
Thank you!
 楼主| 发表于 2005-9-16 14:41:40 | 显示全部楼层
It has been sloved.........

use commands as fellow:
export SPECFILE=/tools/lib/gcc/*/*/specs  &&
sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g'  \
    $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE

I am v-bird, hoping to discuss each other
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-19 17:06:19 | 显示全部楼层
stupid error!

I has mistook '` as '............

so terrible
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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