-
Notifications
You must be signed in to change notification settings - Fork 321
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
Not working on Apple Silicon (M1) - libhttp-parser-ext.bundle: mach-o, but wrong architecture #630
Comments
Ah, I see, thank you. I think I'm going to switch to Faraday for the time being until I can run httprb again. |
+1 |
Switching to llhttp seems like the way forward here. Please see #639 for progress. |
So it seems there is a general problem with MRI C extensions on the M1. See a similar issue here: socketry/nio4r#260 This seems like potentially a general upstream issue in MRI. I would encourage anyone interested in helping resolve this issue to test out cc @bryanp |
FYI I'm attempting to track down an M1 to test out |
I acquired an M1 Mini for testing and confirmed that @rgaufman Can you offer any more input here? |
On socketry/nio4r#260 the issue appears to only (or at least, mostly) occur with system Ruby |
Right, but it looks like @rgaufman is using a brew installed version. Maybe the brewed version has been updated recently? |
Fixing the http-version on the Gemfile did it for me, new version has this fixed
|
master branch (future 5.0.0) is now using |
To get to a fixed version for arm m1 macs re: #1969 re: httprb/http#630
To get to a fixed version for arm m1 macs The latest version of the http gem drops http-parser for llhttp, which has broader compatibility, as well as including a whole host of other fixes in http itself. see https://github.com/httprb/http/blob/main/CHANGES.md for details re: #1969 re: httprb/http#630
* Update http gem to 5.0.4 To get to a fixed version for arm m1 macs The latest version of the http gem drops http-parser for llhttp, which has broader compatibility, as well as including a whole host of other fixes in http itself. see https://github.com/httprb/http/blob/main/CHANGES.md for details re: #1969 re: httprb/http#630 * Update Exotel usage for latest HTTP gem HTTP has a built in parse method we can use, we just have to provide the content type that we are expecting see httprb/http#540 * Update specs for latest version of HTTP gem / user-agent
I have this simple script:
I also tried with gem 'http', github: 'httprb/http'
I get this output:
From what I can tell http-parser is no longer maintained and was replaced by llhttp
Is there any solution to getting this gem working on Apple Silicon?
The text was updated successfully, but these errors were encountered: