Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't launch rails app via unicorn due to kgio_ext (LoadError)

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.

like image 565
John Starrt Avatar asked Sep 20 '12 10:09

John Starrt


2 Answers

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.

like image 82
Tom Avatar answered Nov 06 '22 09:11

Tom


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.

like image 34
bonyiii Avatar answered Nov 06 '22 11:11

bonyiii