-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

查看:255
本文介绍了-bash:在/ usr / local / bin目录/ Heroku上:在/ usr / local / bin目录/红宝石:不好间preTER:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我打开一个新的终端窗口我现在得到:

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆