8

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.

2
  • 1
    Did you end up finding a fix for this?
    – Kamilski81
    Oct 12, 2012 at 18:18
  • I just ran into this same problem. I couldn't find a fix for it, but was able to temporarily work around it by rolling back to a previous release. Oct 14, 2012 at 19:14

4 Answers 4

2

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.

1

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.

0

Looks like you are using Ruby 1.9.1, may be incompatible. Try switching Ruby version.

1
0

I had the same issue and it seems that Bundler with RVM is not integrating well with gems that use native extensions. I've changed to Thin and hit a similar issue with eventmachine. My question for unicorn here and Thin here

I've worked around the problem with the solution in my Thin question.

Regards, Nuno Valente.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.