-
-
Notifications
You must be signed in to change notification settings - Fork 805
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
Problem setting up the MacOS environment, the serialport gem is not maintained. #214
Comments
Any better solutions ? I also met this issue. |
A better solution would be to use a maintained serialport gem to replace the current one. If you just want to run the tutorials, I think manual patch ruby-serialport and install will do, but if you are not familiar with ruby, you will need to spend some time figuring out how to install the gem locally. links: |
yes, it's hard to know how to install gem locally.
|
after apply patch install locally:
|
Somebody give us a pull request for the book? This is something I know nothing about, but it sounds like @livexia has it figured out. |
I don't think this solution is good or 100% correct, even though it works on my system. I came across this problem because I am helping someone run this tutorial. It fails on my own system, but had no problem on this person's system. Before this I know nothing about Ruby, I think this is a temporary solution, maybe someone with better knowledge should give a pr. |
Thank you for reporting this issue. The author has been on vacation for over a year now. This seems to be a Ruby issue, I will take some time to check, but I'm not sure if I can solve it, but it's worth fixing it. |
Problem: Unable to use bundle to install Ruby gem ruby-serialport
System info: Apple M1 with macOS Sonoma
ruby-serialport issue: [posix_serialport_impl.c: error: incompatible pointer to integer](posix_serialport_impl.c: error: incompatible pointer to integer)
The serialport gem is no longer maintained. I can pull the repo and apply the patch mentioned in the issue, but due to my lack of knowledge of Ruby/gem, it's not perfect, for some reason I need to add
RUBYLIB=ruby-serialport/lib
to specify the serialport lib path. Maybe someone good at gem has a better solution.I wonder if this can be done with rust.The text was updated successfully, but these errors were encountered: