當安裝節儉使用的語言不同的配置過程中訪問我的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。