mysql2 v0.5.5 with brew ruby v3.2.2_1 lead dyld[13277]: missing symbol called trap
Eric-Guo opened this issue · 3 comments
Eric-Guo commented
Just today I upgrade ruby version from brew, it's install successfully, but when require:
gem install mysql2 -- \
--with-openssl-dir=$(brew --prefix openssl@3) \
--with-ldflags=-L$(brew --prefix zlib)/lib \
--with-mysql-dir=$(brew --prefix percona-server)
─▪ irb
irb(main):001:0> require 'mysql2'
dyld[13277]: missing symbol called
Abort trap: 6
Eric-Guo commented
brew release openssl@3 3.1.1 -> 3.1.1_1, but the error still happen.
Eric-Guo commented
it seems persona-server issue, after running:
brew install mysql-client
gem install mysql2 -- \
--with-openssl-dir=$(brew --prefix openssl@3) \
--with-ldflags=-L$(brew --prefix zlib)/lib \
--with-mysql-dir=$(brew --prefix mysql-client)
It resolved!