asdf-ruby
asdf-ruby copied to clipboard
Problems on macOS
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
.
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!
@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 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.
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)