我有一個類似的問題,與bundle exec
運行任何東西給分段錯誤:
~/mayapp >bundle exec rake -T
/Users/rogermarlow/.rvm/gems/ruby-1.9.3-p327/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]
Abort trap: 6
我有(1)使用1.9.3p327代替1.9.3p125和(2)GEM_HOME環境變量指向兩個問題到一個現在不存在的目錄。所以對我來說修復是:
~/myapp >rvm list
rvm rubies
=* ruby-1.9.3-p327 [ x86_64 ]
# => - current
# =* - current && default
# * - default
~/myapp >rvm install 1.9.3-p125
**snip**
~/myapp >rvm use 1.9.3-p125
Using /Users/rogermarlow/.rvm/gems/ruby-1.9.3-p125
Running /Users/rogermarlow/.rvm/hooks/after_use_maglev
~/myapp >echo $GEM_HOME
/Users/rogermarlow/.rvm/gems/ruby-1.9.3-p125
~/myapp ># you should check that the directory in $GEM_HOME exists, I had [email protected] which had been removed at some point
~/myapp >bundle install
**snip**
現在嘗試bundle exec
這是分割斷裂......
~/myapp >bundle exec rake -T
rake about # List versions of all Rails frameworks and the environment
rake assets:clean # Remove compiled assets
rake assets:precompile # Compile all the assets named in config.assets.precompile
**snip**
你有正確的環境嗎?你運行'rvm use 1.9.3'嗎? – 2012-11-26 17:26:05
'哪個rails'和'哪個ruby'的輸出是什麼? –
夥計們,我剛剛重新安裝了rvm版本1.9.3,現在它的工作...... – user984621