Ho avuto un problema simile, in esecuzione qualsiasi cosa con bundle exec
ha dato un errore di segmentazione:
~/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
ho avuto due problemi (1) utilizzando 1.9.3p327 invece di 1.9.3p125 e (2) l'ambiente GEM_HOME puntamento variabile in una directory ora inesistente. Così la correzione per me era:
~/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**
Ora provare che bundle exec
quale è stata la segmentazione ha un guasto ...
~/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**
fonte
2013-01-20 11:00:18
Avete l'ambiente corretto? Hai lanciato 'rvm use 1.9.3'? –
Qual è l'output di 'which rails' e' which ruby'? –
Ragazzi, ho appena reinstallato la versione 1.9.3 di rvm e ora sta funzionando ... – user984621