0

I tried to run a heroku console for a Rails 3.2 app using

heroku run bundle exec rails console

a command which has previously worked. It gave me the error message below. I also tried to run

heroku info

and got a similar error message. I did this both before and after signing in with the heroku toolbelt, same result. I also tried this on another website and got the same result. Both websites are actually working, just can't access the console

Can anyone explain what the problem might be.

! Heroku client internal error.

Error:       No such file or directory -  git --version  (Errno::ENOENT)
Backtrace:   /usr/local/heroku/lib/heroku/helpers.rb:103:in ``'
             /usr/local/heroku/lib/heroku/helpers.rb:103:in `has_git?'
             /usr/local/heroku/lib/heroku/helpers.rb:108:in `git'
             /usr/local/heroku/lib/heroku/command/base.rb:206:in `git_remotes'
             /usr/local/heroku/lib/heroku/command/base.rb:179:in `extract_app_in_dir'
             /usr/local/heroku/lib/heroku/command/base.rb:31:in `app'
             /usr/local/heroku/lib/heroku/command/run.rb:108:in `block in run_attached'
             /usr/local/heroku/lib/heroku/helpers.rb:236:in `action'
             /usr/local/heroku/lib/heroku/command/run.rb:107:in `run_attached'
             /usr/local/heroku/lib/heroku/command/run.rb:21:in `index'
             /usr/local/heroku/lib/heroku/command.rb:206:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:24:in `<main>'

Command:     heroku run bundle exec rails console
Version:     heroku-toolbelt/2.33.2 (x86_64-darwin10.8.0) ruby/1.9.3
4

1 回答 1

0

这个问题是由于在我的 Mac 上安装了 Mountain Lion 造成的。要修复它,我必须打开 XCode 首选项并在下载文件夹中安装命令行工具。

于 2012-12-31T17:05:46.947 回答