asdf-ruby icon indicating copy to clipboard operation
asdf-ruby copied to clipboard

Problems on macOS

Open nikolay opened this issue 7 years ago • 3 comments

nokogiri and other plugins error out like this:

`require': incompatible library version

I have libxml2, libyaml, and others installed via Homebrew.

No other Ruby VM has issues with that... except asdf-ruby.

nikolay avatar Sep 20 '17 22:09 nikolay

I haven't experienced this issue myself, and I've been using various versions of Ruby on OSX for two years now, but it sounds like a serious issue. If you could figure out a list steps to reproduce the issue that would be great. I'll also need to know your OS version, asdf version, and the Ruby version you were trying to use. Thanks!

Stratus3D avatar Nov 17 '17 03:11 Stratus3D

@nikolay did you ever get this figured out? It's been a couple years and we've not gotten any other reports of this issue.

Stratus3D avatar May 16 '22 11:05 Stratus3D

@Stratus3D I expect this can be closed. In the past I'ver needed to do some bundle config config to get the include flags right with some libs, like libxml, but on non-EOL Rubies (2.7+) I do not have this issue. Using both intel and apple silicon.

pboling avatar May 16 '22 15:05 pboling

Hey, I'm having the same issues when I switch between 2 projects with a different Ruby version. I have a Mac M1.

A first workaround, each time I change project I run: gem uninstall --force --executable bootsnap date ffi msgpack mysql2 nio4r puma && bundle

A second workaround, just run in each project: gem install --user-install msgpack -v 1.6.0 (for all the gems with conflicts and with the correct version)

blocknotes avatar Mar 07 '23 13:03 blocknotes