[转]编译错误: /bin/sh: 1: pushd: not found的问题

 

http://blog.csdn.net/ojinxi/article/details/12186839

 

ubuntu环境中报如下错误:

[转]编译错误: /bin/sh: 1: pushd: not found的问题[转]编译错误: /bin/sh: 1: pushd: not found的问题


查看原因:

进入/bin目录,查看sh的链接文件,显示如下:表示sh命令链接到的是dash,而pushd命令需要在bash的环境中执行。

[转]编译错误: /bin/sh: 1: pushd: not found的问题[转]编译错误: /bin/sh: 1: pushd: not found的问题

 

解决方法:

执行sudo dpkg-reconfigure dash 命令,将dash设置为No。

[转]编译错误: /bin/sh: 1: pushd: not found的问题

[转]编译错误: /bin/sh: 1: pushd: not found的问题

[转]编译错误: /bin/sh: 1: pushd: not found的问题

再次查看sh的链接:已经修改为bash了。

[转]编译错误: /bin/sh: 1: pushd: not found的问题


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-08-23
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-05
  • 2021-04-07
  • 2022-12-23
  • 2022-01-20
  • 2021-10-12
  • 2021-08-05
相关资源
相似解决方案