I just did a fresh install of symengine and symengine.rb on an Ubuntu VM. My Ruby is 2.3.0 in rbenv (user install). There are no errors when I build/install the gem, which is cloned from github (HEAD).
Unfortunately, when I attempt to load symengine in pry, I get the following error:
[1] pry(main)> require "symengine"
LoadError: incompatible library version - /home/dev/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/symengine-0.1.0/lib/symengine/symengine.so
from /home/dev/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
I tried building the gem manually, using cmake, and checked that the Ruby paths were correct in the cmake config. They are — they point to the rbenv ruby-2.3.0 headers.
UPDATE: I get the same error when attempting to use Ruby 2.2.4.