Ubuntu安装codesourcery交叉编译器的问题
来源:互联网 发布:工控机跑linux 编辑:程序博客网 时间:2024/05/01 21:01
安装交叉编译器出问题了,
./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 shell
as /bin/sh. This shell is not supported by the installer.
You can work around this problem by changing /bin/sh to be a
symbolic 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? No
Please refer to the Getting Started guide for more information,
or contact CodeSourcery Support for assistance.
Google搜:
http://www.51testing.com/html/38/225738-208702.html
Ubuntu下sh默认指向dash 。
echo $SHELL --> /bin/bash
type sh --> /bin/sh
然后我到/bin下看了有"sh -> dash",原来sh是/bin/dash的链接。
后来google了一下才发现,buntu6.10已将先前默认的bashshell更换为了dash。其表现是/bin/sh链接到了/bin/dash而不是传统的/bin/bash。
bash - GNU Bourne-Again SHell
dash - Debian Almquist Shell
可以分别man bash / man dash看一下。
那么怎么把sh改为指向bash呢?
最暴力的方法当然是直接把/bin/sh的软链接改到bash中,
如:ln -s /bin/bash /bin/sh
但是,有优雅一些的方法,
sudo dpkg-reconfigure dash
出现菜单问你是否要dash的时候,选no就可以了。
先看看链接:
cuigang@cui:~$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2010-10-12 17:04 /bin/sh -> dash
按照出错的提示信息
sudo dpkg-reconfigure -plow dash
Install as /bin/sh? No
就可以了,再看看链接:
cuigang@cui:~$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2010-10-12 16:52 /bin/sh -> bash
那么Dash是什么东西呢
DASH
--------------------------------------------------------------------------------
Description
DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as possible. It does this without sacrificing speed where possible. In fact, it is significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
比bash小而快的东西
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/cgipro/archive/2010/10/12/5936262.aspx
- Ubuntu安装codesourcery交叉编译器的问题
- Ubuntu安装codesourcery交叉编译器的问题
- Ubuntu安装codesourcery交叉编译器的问题
- ubuntu 12.04版本交叉编译器安装的相关问题
- ubuntu安装交叉编译器后不能编译的问题
- 【Ubuntu】[交叉编译器]:ubuntu 安装交叉编译器
- ubuntu 安装交叉编译器
- Ubuntu 安装交叉编译器
- Ubuntu安装交叉编译器
- ubuntu安装交叉编译器
- 交叉编译器安装问题
- CodeSourcery G++编译器的BUG
- 自己安装交叉编译器遇到的问题
- 64位ubuntu安装交叉编译器出现的问题。nuc972工程中的问题
- vmware+ubuntu-安装交叉编译器
- ubuntu 安装ARM交叉编译器
- 交叉编译器的安装
- 交叉编译器的安装
- C++ 工程实践(1):慎用匿名 namespace
- 用c修改文件中部分内容
- 程序员的快乐与痛苦
- 使用UltraEdit中删除文档中的空行
- MALLOC_OPTIONS
- Ubuntu安装codesourcery交叉编译器的问题
- 如何快速解决Affinity mask和Affinity I/O mask冲突(conflict)问题
- C++输入输出零散点
- 堆积式南丁格尔玫瑰图模板( Nightingale Rose Diagram)
- sicily 1136
- 路由器的原理与作用
- PIL---使用Python处理图像
- 一种快速的素数筛法
- jquery源码阅读知识储备(6)typeof 和 instanceof的结合使用