GithubHelp home page GithubHelp logo

Comments (6)

listentodella avatar listentodella commented on July 2, 2024 1

yes, it's hard to know how to install gem locally.

  1. git clone above repo locally
  2. apply the patch
  3. bundle exec rake build to generate .gem file
  4. gem install local path/to/the gem file from last step

from rust-raspberrypi-os-tutorials.

livexia avatar livexia commented on July 2, 2024 1

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.

from rust-raspberrypi-os-tutorials.

listentodella avatar listentodella commented on July 2, 2024

Any better solutions ? I also met this issue.

from rust-raspberrypi-os-tutorials.

livexia avatar livexia commented on July 2, 2024

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:

from rust-raspberrypi-os-tutorials.

livexia avatar livexia commented on July 2, 2024
  1. bundle config --local path '.vendor/bundle'
  2. bundle config --local without 'development'

after apply patch install locally:

  1. run gem install --local pkg/serialport-1.3.2.gem --install-dir ../ruby-serialport-output -V intall gem to ruby-serialport-output
  2. in Gemfile using gem 'serialport', path: "ruby-serialport-output" to specify path
  3. bundle install
  4. bundle list
❯ bundle list
Gems included by the bundle:
  * bindata (2.5.0)
  * bundler (1.17.2)
  * colorize (1.1.0)
  * elftools (1.2.0)
  * ruby-progressbar (1.13.0)
  * serialport (1.3.2)

from rust-raspberrypi-os-tutorials.

BartMassey avatar BartMassey commented on July 2, 2024

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.

from rust-raspberrypi-os-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.