Installation Problem On Debian Wheezy (using RVM): nokogiri and multi_json

96 views
Skip to first unread message

gm9...@gmail.com

unread,
Jun 23, 2013, 2:59:44 PM6/23/13
to communi...@googlegroups.com
Hi,
I tried to install community_engine following the README.

I installed RVM on a Wheezy, then RVM and 1.9.3:
tom@webby:~/ce$ ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

gem install rails
# -> rails (3.2.13)

I set up a new rails project:
rails new coengine
....
cd coengine
and added this line to Gemfile:
gem 'community_engine', :git => 'git://github.com/bborn/communityengine', :branch => 'rails3
(a little bit different than README says, there seems to be a problem too)

I added application_config.rb and then I tried to start step 3 from README:

tom@webby:~/coengine$ bundle install --binstubs
Fetching git://github.com/bborn/communityengine
remote: Counting objects: 19614, done.
remote: Compressing objects: 100% (11527/11527), done.
remote: Total 19614 (delta 9073), reused 17853 (delta 7470)
Receiving objects: 100% (19614/19614), 8.73 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (9073/9073), done.
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "multi_json":
  In Gemfile:
    community_engine (>= 0) ruby depends on
      multi_json (~> 1.0.0) ruby

    uglifier (>= 1.0.3) ruby depends on
      multi_json (1.7.7)

This problem I tried to solve via update:

tom@webby:~/coengine$ bundle update
Updating git://github.com/bborn/communityengine
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "nokogiri":
  In Gemfile:
    community_engine (>= 0) ruby depends on
      nokogiri (~> 1.5.0) ruby

    community_engine (>= 0) ruby depends on
      nokogiri (1.6.0)

And now I don't have any idea what to do......

Perhaps anyone out there who could give me a hint?
Thanks in advance
Tom

Daser Sunday

unread,
Jun 25, 2013, 5:32:21 AM6/25/13
to communi...@googlegroups.com
Hi,
I had suffered from this problem lately and after a long walkthrough on the internet i came up with the solution for this nightmare.

First of all in your Gemfile add the following:
gem 'community_engine'
gem 'multi_json'
gem 'nokogiri', '~> 1.5.0'

Then delete the Gemfile.lock file in your application

Finally run the bundle install command. 

I hope this helps a lot.
Reply all
Reply to author
Forward
0 new messages