1
2
3
4
5
6
7
8
9
4 warnings generated.
linking shared-object rubyeventmachine.bundle
ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib/'
Undefined symbols for architecture arm64:
"_SSL_get1_peer_certificate", referenced from:
SslBox_t::GetPeerCert() in ssl.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [rubyeventmachine.bundle] Error 1
This needs help in locating the ssl path.
Solved by
1
arch -arm64 gem install eventmachine -v '1.2.7' -- --with-openssl-dir=$(brew --prefix openssl)
For further reference