"Incompatible library version" error with Ruby 2.3.1

522 views
Skip to first unread message

Pedro Santos Guimarães

unread,
Jun 5, 2016, 11:23:14 AM6/5/16
to nokogiri-talk
I have a rails project (let's call it A) which used to work good. Then I installed Ruby 2.3.1 and now I can't run it anymore.
I used rvm to use the new version for another project (let's call it B), but it seems that after rebooting 2.3.1 is now the default version.
When I tried to run my project A it complained that it couldn't find rake and asked me to run bundle install, which I did.
But now 'bin/rails s' produces:
http://pastebin.com/JVD2zSTE

I have tried many solutions:
- locking to version 1.6.8.rc2, or version 1.6.7.1 on Gemfile
- uninstalling the gem
- installing again
- bundle update
( from https://community.codeship.com/t/nokogiri-isnt-installing-on-ruby-2-3/19/4 )

but nothing seems to fix it.

Here's the output from bundle install:
http://pastebin.com/Vg4vvWh3

Project B still runs fine, and it says 'using nokogiri 1.6.7.1'. There's no specified version of nokogiri there. Bundle install from there:
http://pastebin.com/JeiTnfi4


Can anyone help me?

Mike Dalessio

unread,
Jun 5, 2016, 12:05:29 PM6/5/16
to nokogiri-talk
Hi,

Thanks for asking this question.

What kind of machine are you on? Can you run `nokogiri -v` and if so, can you include its output here?

This does not look like a nokogiri problem, this instead looks like an issue with the way that ruby, bundler, or your gems were installed. A bit of googling leads to similar error messages for json and mysql2 gems, and generally people uninstalled everything and reinstalled everything, and then things worked.

Let us know how you get on?


--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

Pedro Santos Guimarães

unread,
Jun 5, 2016, 9:19:04 PM6/5/16
to nokogiri-talk
I ended up removing rvm and starting again.
When I did gem uninstall nokogiri it showed a couple versions (1.6.7.1, 1.6.7.2 and 1.6.8.rc2)

I'm on Ubuntu 14.04.

Pedro Santos Guimarães

unread,
Jun 6, 2016, 9:04:12 AM6/6/16
to nokogiri-talk
By starting again I mean not using rvm anymore.
Reply all
Reply to author
Forward
0 new messages