当安装节俭使用的语言不同的配置过程中访问我的HBase的,节俭安装./bootstrap配置不好解释
当我运行
[[email protected] thrift]$ ./bootstrap.sh
我得到:
-bash: ./bootstrap.sh: /bin/sh^M: bad interpreter: No such file or directory
如何解决这个问题?
当安装节俭使用的语言不同的配置过程中访问我的HBase的,节俭安装./bootstrap配置不好解释
当我运行
[[email protected] thrift]$ ./bootstrap.sh
我得到:
-bash: ./bootstrap.sh: /bin/sh^M: bad interpreter: No such file or directory
如何解决这个问题?
从报告的错误,它看起来像bootstrap.sh有一些控制字符(注意^ M错误)。可能需要将bootstrap.sh明确转换为unix格式,您可以使用dos2unix命令进行此操作。
dos2unix ./bootstrap.sh
看起来好像该文件的#!
hashbang行损坏。
在使用像dos2unix
这样的工具之前,我宁愿查看为什么那个^M
在那里。情况并非如此,文件很可能存在更多缺陷。
如有疑问,请尝试恢复bootstrap.sh
from the original source。