gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
164 stars 31 forks source link

Can't load the library, silent problem with the building? #58

Closed amodig closed 8 years ago

amodig commented 8 years ago

Hello,

I followed OS X instructions, but I can't get the library to load. The same issue happens even if I build the gem myself, following instructions. No errors there, just some warnings. I also tried to built mtex2MML separately and the tests there ran fine.

$ ruby test/test_helper.rb
/Users/amodig/Dev/mathematical/lib/mathematical.rb:1:in `require': incompatible library version - /Users/amodig/Dev/mathematical/lib/mathematical/mathematical.bundle (fatal)
    from /Users/amodig/Dev/mathematical/lib/mathematical.rb:1:in `<top (required)>'
    from test/test_helper.rb:2:in `require'
    from test/test_helper.rb:2:in `<main>'

I've installed Ruby through rbenv (which is installed through brew).

 $ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin13]

I don't know Ruby so I'm pretty much clueless here. Working on OSX 10.9.5 Mavericks.

gjtorikian commented 8 years ago

incompatible library version almost certainly means that the gem was built with a Ruby version different than the one you're running. Could you try:

rbenv rehash
git clean -fd

And trying to build locally once more?

amodig commented 8 years ago

Got back to this... Sorry, no help. I started from a fresh repo.

gjtorikian commented 8 years ago

FWIW I'm getting this too. Do you use rbenv out of curiosity?

amodig commented 8 years ago

Yes, I did. But I'm not familiar with Ruby itself.