my app works fine in mongrel(locally), but suddenly apache with passenger is giving me trouble. It was working fine, but now i get this error which i haven’t managed to resolve yet :
Could not find multi_json-1.1.0 in any of the sources (Bundler::GemNotFound)
My Gemfile :
source 'http://rubygems.org'
gem 'rails'
gem 'mysql2'
gem 'tzinfo'
gem 'jquery-rails'
gem 'kaminari'
gem 'cancan'
# active-admin dependencies
gem 'activeadmin'
gem 'sass-rails'
gem "meta_search", '>= 1.1.0.pre'
gem 'sorcery'
group :assets do
gem "coffee-script"
gem "twitter-bootstrap-rails"
end
Any ideas ?
EDIT :
hmm, i noticed in my gems path that the only gem there is “multi_json-1.0.4”, which is different than the multi_json-1.1.0 it is asking for. However, when running ‘bundle’, i see ‘Using multi_json (1.1.0)’. But i can’t find the gem anywhere(and neither does passenger as it seems).
Encountered and resolved the same issue after upgrading Ruby from 1.9.2p29- to 1.9.3. I’m using NGINX, not Apache, but here’s a combined solution:
Passenger after installing Ruby 1.9.3.
NGINX.conf – in the http {} block:
Or, in Apache’s httpd.conf:
Also, rebundle the app (bundle update).
Hope this works for you.
Re some of the other questions posted in reply.
~/.rvm/gems/ruby-1.9.3-p0/gems/multi_json-1.1.0
effect/not required in gemfile.