Ubuntu安装codesourcery交叉编译器的问题

安装交叉编译器出问题了,

./arm-2010q1-202-arm-none-linux-gnueabi.bin

错误信息如下;

Checking for required programs: awk grep sed bzip2 gunzip===============================================================Error: DASH shell not supported as system shell===============================================================The installer has detected that your system uses the dash shellas /bin/sh. This shell is not supported by the installer.You can work around this problem by changing /bin/sh to be asymbolic link to a supported shell such as bash.For example, on Ubuntu systems, execute this shell command: % sudo dpkg-reconfigure -plow dash Install as /bin/sh? NoPlease refer to the Getting Started guide for more information,or contact CodeSourcery Support for assistance.

Ubuntu下sh默认指向dash 。echo $SHELL –> /bin/bashtype sh –> /bin/sh然后我到/bin下看了有”sh -> dash”,原来sh是/bin/dash的链接。后来google了一下才发现,buntu6.10已将先前默认的bashshell更换为了dash。其表现是/bin/sh链接到了/bin/dash而不是传统的/bin/bash。bash – GNU Bourne-Again SHelldash – Debian Almquist Shell可以分别man bash / man dash看一下。

那么怎么把sh改为指向bash呢?最暴力的方法当然是直接把/bin/sh的软链接改到bash中,如:ln -s /bin/bash /bin/sh但是,有优雅一些的方法,sudo dpkg-reconfigure dash出现菜单问你是否要dash的时候,选no就可以了。

不论你在什么时候结束,重要的是结束之後就不要悔恨

Ubuntu安装codesourcery交叉编译器的问题

相关文章:

你感兴趣的文章:

标签云: