New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load the EventMachine C extension, ruby 2.7.4, Mac OS 12.0.1 x86 #960
Comments
I'm also running into this issue on an M1 Mac running Mac OS 12.1 trying to run a sinatra app /w rainbows.
|
facing the same issue on mac m1. Any solution? |
Likewise
|
I was able to get it working by doing:
Then adding this to my gem file:
I'm guessing there's some updates currently in the master branch that have not been released as an update to the gem. |
If there have been important fixes, why has there been no new releases in almost 4 years? |
In my case I ended up here because I built eventmachine using the openssl at I redid it using
|
@sshock good question. Are @sodabrew @olleolleolle or any of the other recent contributors able to shed any light on the situation here? There have been a lot of commits to the main branch but no gem release since 2018. |
I'm having this issue and uninstalling/installing has not worked, neither did sshock solution above. I'm on a 2021 Mac M1 machine:
Ruby: ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [arm64-darwin21] UPDATE: I was able to fix this by simply getting everything up-to-date: Then ensured that I have openssl@3 and ruby-3.1.1 on the Mac and, finally, eventmachine 1.2.7 in my project's Gemfile. |
this does not work for me. I fix it by gem install eventmachine -v '1.2.7' -- --with-ldflags="-Wl,-undefined,dynamic_lookup" |
@TorvaldsDB's suggestion worked for me.
Cheers! |
Thanks! It worked for me |
This is a forward-fix from 598a9fc. NFSN is on Ruby 2.7.6, so we need to use that unfortunately. Will upgrade once NFSN upgrades. Adds a `.ruby-version` file to simplify setup. There were issues installing `eventmachine`, resolved by: eventmachine/eventmachine#960 (comment) ``` gem install eventmachine -v '1.2.7' -- --with-ldflags="-Wl,-undefined,dynamic_lookup" ```
This worked for me, thank you! |
For me I had to do: bundle config build.eventmachine --with-ldflags="-Wl,-undefined,dynamic_lookup"
bundle install |
This is the only fix that worked for me, tried everything else above with no luck. So, the below is fine but a new version has to be released here of the 💎 , the last one is 1.2.7 since 2018: gem 'eventmachine', '= 1.3.0.dev.1', github: 'eventmachine', branch: 'master'
...
git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" } |
Thanks, Thats work for me as well despite all other options |
I was able to get it working by doing:
|
I'm not that familiar with either EventMachine or macOS. But, for those who've needed to set either
|
Hello, This is what I get when I run the
rails s
command:Thank you.
The text was updated successfully, but these errors were encountered: