configure: error: /bin/sh must be GNU Bash
来源:互联网 发布:淘宝店铺扣分 编辑:程序博客网 时间:2024/06/02 04:53
今天在做configure 的时候,报错configure: error: /bin/sh must be GNU Bash。
百度瞬间废物,什么资料也查不到,最好google 立马解决问题,
https://developer.windriver.com/thread/1195
/bin/sh needs to point to bash and by default Ubuntu points sh at dash. You can make the change either by brute-force (i.e. just change the link for /bin/sh) or use the 'update-alternatives' mechanism in ubuntu:
sudo update-alternatives --install /bin/sh sh /bin/dash 1
sudo update-alternatives --install /bin/sh sh /bin/bash 1
sudo update-alternatives --config sh
Select the entry for /bin/bash and to make sure, try '/bin/sh --version'.
If sh is pointing at bash, you'll get a version message (GNU bash, version 4.1.5... ), if it's pointing at dash, you'll get a message like: /bin/sh: Illegal option --
- configure: error: /bin/sh must be GNU Bash
- configure: error: /bin/bash ./config.sub failed
- bash ‘/bin/sh: Syntax error: “(” unexpected
- #!/bin/sh & #!/bin/bash
- #!/bin/bash #!/bin/sh
- configure: error: cannot run /bin/sh ./config.sub解决办法
- configure: error: cannot run /bin/sh ./config.sub解决办法
- configure: error: cannot run /bin/sh ./config.sub解决办法
- #!/bin/bash 与#!/bin/sh
- #!/bin/bash 与#!/bin/sh
- #!/bin/bash和#!/bin/sh
- #!/bin/sh与#!/bin/bash
- 关于linux报bash ‘/bin/sh: Syntax error: “(” unexpected
- 关于linux报bash ‘/bin/sh: Syntax error: “(” unexpected
- 关于linux报bash ‘/bin/sh: Syntax error: “(” unexpected
- /bin/sh /bin/bash /bin/dash
- bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
- bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
- JAVA中char类型的输入
- HTML5 Canvas 画图标签、画线、圆、渐变色
- 数据库应用程序开发入门篇——数据库的发展阶段、体系结构
- HTML5 视频播放事件属性与API控件
- eclipse JDK区别
- configure: error: /bin/sh must be GNU Bash
- cmake 常用变量和常用环境变量查表手册---整理2
- SQL 函数
- css中media
- 关于inline函数
- PyDev+Eclipse4.2.2如何正确显示中文
- C语言——单链表创建练习题
- HTML5 视频播放事件属性与API控件--理论
- WebGL中的旋转和移动