更新时间: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 /*