Questions tagged [ruby]
Ruby is a dynamic, general-purpose high-level programming language, with an object-oriented style. There are many implementations of Ruby, including Ruby-on-Rails, a web app framework using Ruby.
40 questions
2
votes
1
answer
143
views
Intermittent access errors when writing to GPIO using SYSFS and Ruby
I am using Ruby to drive output GPIO pins using the old SYSFS pseudo-filesystem interface, and am regularly encountering intermittent Errno::EACCES: Permission denied @ rb_sysopen errors.
My user is a ...
0
votes
2
answers
547
views
Etape liquid level measurement not working as expected
I am building a monitor to measure how much water is in a tank.
I started using 12" Standard eTape Liquid Level Sensor with Plastic Casing
connected to mcp3008 and it's not working great, well ...
1
vote
1
answer
274
views
Ruby Gem pi_piper crashing with bcm2835_init: gpio mmap failed: Cannot allocate memory, anyone else seen this?
I am running ruby 3.0.3 on Raspbian 11 on raspberry pi 4b and I am trying to use adc mcp3008 using pi_piper gem and whenever I initialize a pin clock = PiPiper::Pin.new :pin => 18, :direction => ...
2
votes
3
answers
501
views
How to build Ruby 2.7.x/3.0.x on Raspberry Pi4?
I'm trying to install Ruby version 2.7.x or 3.0.x using rvm on a Pi 4. The make process fails compiling the file coroutine/arm64/Context.S
assembling coroutine/arm64/Context.S
coroutine/arm64/Context....
0
votes
0
answers
720
views
How to install latest ruby version in Raspberry Pi
I have a raspberry pi which has the latest raspbian os. If I install ruby in it using sudo apt-get install ruby-full, ruby 2.5 version is installed. I have another raspberry pi which is running the ...
0
votes
1
answer
188
views
Start Ruby on Rails server after GUI login
I've spent most of the day trying to launch two commands after login of the GUI on Raspberry OS. I am trying to run a Ruby on Rails server after logging into the GUI (not on boot). The commands I ...
1
vote
0
answers
131
views
Why I can't get Ruby2D running on Raspberry Pi 3 model B?
I have made quite a lot of games in Ruby2D. I can play them on my PC, laptop. Ruby2D is a lot of fun and works very fast!
But for some strange reason I can't get Ruby2D window working on a Raspberry ...
0
votes
0
answers
179
views
Rails Server command is failing
I´ve been trying to install rbenv, ruby and rails in my Raspberry Pi 3 B+ in the past couple of days and after some issues here and there I've managed to get everything installed with no errors
With ...
0
votes
1
answer
583
views
"bash: rbenv: command not found" and "bash: nodenv: command not found"
After trying to install this script using these commands:
$ git clone git://github.com/mislav/dotfiles.git ~/dotfiles
$ ~/dotfiles/script/bootstrap
I restarted my Raspberry Pi and I'm seeing these ...
-1
votes
1
answer
470
views
How to get gpio status on an output pin in ruby
I'm using the Pi to control some decorative lights. I turn the lights on and off via cron scripts and would like to get status on the lights as well. When I run the code below, it reports 'on' if ...
1
vote
0
answers
301
views
Ruby gem gosu not installing, what's wrong
I am using a Raspberry Pi B 2 running Rasbian. It came with Ruby preinstalled on the card. I would like to install the ruby gem Gosu, but even with the internet working it still won't download and ...
0
votes
1
answer
109
views
How to make a soundboard style program that plays video/gifs at a keystroke
I am a teacher and have had a lot of fun learning how to code solutions to the problems I have. This is a fun project idea - I want to be able to insert little videos or gifs into class at a keystroke....
1
vote
1
answer
138
views
net/http response encoding issues on Raspberry pi [closed]
Identical requests and headers to same server from two different platforms get as response two diferent encodings:
From Win7 PC I get UTF-8 which is what I want.
From Raspberry pi I get ASCII-8bit. ...
1
vote
1
answer
216
views
How to run pry on Debian Linux for ARM
I installed rvm and Ruby 1.9.3p194 on a Raspberry Pi using Debian Linux. When I installed pry using gem install pry, everything installed perfectly but typing pry in a terminal didn't work:
pi@...
0
votes
1
answer
313
views
UPnP control point with ruby
I get this error - RuntimeError: eventmachine not initialized: evma_connect_to_server
RPi3 with gmediarender-resurrect
Using this library and following the basic instructions
irb(main):001:0> ...