1
在嘗試創建遷移時,我遇到了這個問題,有什麼想法?嘗試創建遷移時,我總是收到「找不到可執行文件」?
/Library/Ruby/Site/1.8/rubygems.rb:335:in `bin_path': can't find executable rails for rails-3.2.2 (Gem::Exception)
from /usr/bin/rails:19
在嘗試創建遷移時,我遇到了這個問題,有什麼想法?嘗試創建遷移時,我總是收到「找不到可執行文件」?
/Library/Ruby/Site/1.8/rubygems.rb:335:in `bin_path': can't find executable rails for rails-3.2.2 (Gem::Exception)
from /usr/bin/rails:19
嘗試
bundle exec rails
,而不是僅僅rails
。這可確保該命令在Gemfile的上下文中運行/找到。
謝謝這麼多人! – bernabas 2012-03-22 20:57:09