I am trying to run a rails app via
unicorn -c config/environments/<env>/unicorn.rb -e <env>
but I keep getting this error.
<app_root>/vendor/bundle/ruby/1.9.1/gems/kgio-2.7.4/lib/kgio.rb:21:in `require': cannot load such file -- kgio_ext (LoadError)
Any ideas?
I am running unicorn (4.3.1) with kgio (2.7.4) in a rails (3.2.3) app.
Are you running on a Mac with Lion or Mountain Lion? If so, make sure you have the entire xcode installed, not JUST the command line tools. KGIO requires this. After that, be sure to run bundle install.
In my case the problem was that i updated rvm and the unicorn couldn't find so files. I deleted the gemset and created a new one and after bundle install everything worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With