且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

-bash:在/ usr / local / bin目录/ Heroku上:在/ usr / local / bin目录/红宝石:不好间preTER:没有这样的文件或目录

更新时间:2023-01-14 22:18:51

确认文件的/ usr / local / bin目录/ Heroku的是#!/路径/要/红宝石。您可能需要从更改的/ 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 /*