linux sudo BUILD.sh,ubuntu发行版中的sh命令的区别

用ubuntu 9.10执行

$ sh build_me.sh -b  -j -L lex

命令的时候,出现error message,如下

-------------------------------------------

(cd basis/build/linux-am34-bluraypan; sh build_me.sh -b  -j -L lex)

[: 133: unexpected operator

[: 133: unexpected operator

***Error: DirectFB path point to an invalid path

Hint: you can set DirectFB path by:

1. setenv MEI2_TOOLCHAIN_JAVA_DIR your_directfb_path

2. use -D build switch, type build_me.sh -h for help

make[4]: *** [install] エラー 1

...

...

-------------------------------------------

而在其他的linux发行版中,执行同样的命令时,无此error message,正常执行。

所以,在ubuntu发行版下,查看sh命令。

$ cd /bin

$ ls -l

lrwxrwxrwx 1 root root      4 2010-01-07 22:00 sh -> dash

实际上,sh命令链接的是dash(Debian-shell)

而在其他的linux发行版下,例如fedora、vine

lrwxrwxrwx 1 root root      4 12月 2日 16:40 sh -> bash

他们的sh链接的都是bash

所以将ubuntu中的sh和bash链接在一起。

$ sudo dpkg-reconfigure dash(可见dash的说明文)

选择[NO]

dash的说明文:================

The default /bin/sh on Debian and Debian-based systems is bash.

However,since the default shell is required to be POSIX-compliant, any shell that conforms to POSIX,such as dash, can serve as /bin/sh. You may wish to do this because is faster and smaller than bash.

Install dash as /bin/sh

=============================

其他参考链接:

http://hi.baidu.com/nako521/blog/item/248fee953b52454fd1135eb7.html

阅读(778) | 评论(0) | 转发(0) |

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值