-bash:在/ usr / local / bin目录/ Heroku上:在/ usr / local / bin目录/红宝石:不好间preTER:没有这样的文件或目录 [英] -bash: /usr/local/bin/heroku: /usr/local/bin/ruby: bad interpreter: No such file or directory
问题描述
每当我打开一个新的终端窗口我现在得到:
Whenever I open a new terminal window I now get:
-bash:在/ usr / local / bin目录/ Heroku上:在/ usr / local / bin目录/红宝石:不好间preTER:没有这样的文件或目录
至于为什么发生这种情况,以及如何任何想法,以摆脱它?
Any idea as to why this is happening and how to get rid of it?
推荐答案
确认文件的/ usr / local / bin目录/ Heroku的
是<$ C的第一行$ C>#!/路径/要/红宝石。您可能需要从更改的/ usr / local / bin目录/红宝石
到的/ usr / bin中/红宝石
或如果你不能找到红宝石
的可执行文件,键入这红宝石
或数据库更新和放大器;&安培;找到红宝石
找到它。
Make sure the first line of the file /usr/local/bin/heroku
is #!/path/to/ruby
. You may need to change it from /usr/local/bin/ruby
to /usr/bin/ruby
, or if you cannot find the ruby
executable, type which ruby
or updatedb && locate ruby
to find it.
如果上述方法不工作...
If the above doesn't work...
检查〜/ .bashrc中
,〜/ .inputrc文件〜
,的/ etc / .bashrc的
,的/ etc / INPUTRC
, / etc / profile文件
的行试图执行的/ usr / local / bin目录/ Heroku的
。
Check your ~/.bashrc
, ~/.inputrc~
, /etc/bashrc
, /etc/inputrc
, /etc/profile
for a line trying to execute /usr/local/bin/heroku
.
另一个想法是,你可能有这个作为你的启动程序之一。检查 / etc / inittab中
与的/ usr / local / bin目录/ Heroku的
。
Another idea is you might have this as one of your startup programs. Check in /etc/inittab
for a line with /usr/local/bin/heroku
.
如果您仍然无法找到该行的任何可以运行这些文件的的grep -IH的Heroku / *
If you still cannot find that line in any of those files you can run grep -iH heroku /*
这篇关于-bash:在/ usr / local / bin目录/ Heroku上:在/ usr / local / bin目录/红宝石:不好间preTER:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!