Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
41 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
40 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
1answer
46 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
1answer
34 views

net/http response encoding issues on Raspberry pi

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
1answer
125 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
1answer
133 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> ...
0
votes
1answer
110 views

cannot get ruby-opencv to build correctly on Raspberry

I'm trying to use ruby on a Raspberry Pi with the ruby-opencv gem - but alas it will not build :( root@raspberrypi:/usr/lib# uname -a Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT ...
1
vote
1answer
161 views

Cannot install pg on Raspberry Pi

I have been trying to install pg to run my web application (Ruby on Rails). I use a pg database. With bundle install, it fails. The output is: current directory: /home/pi/.rvm/gems/ruby-2.3.3/gems/...
1
vote
0answers
310 views

Ruby - I2C - pi_piper - How to use 4x20 LCD display? - HD44780 with PCF8574 converter

Anyone know how I can get use pi_piper gem to use 4x20 LCD display (hd44780) with I2C converter (PCF8574). I'm totally noob in this part of programming. I tried using ruby-i2c-devices gem, but ...
0
votes
1answer
250 views

Running ruby script with eventmanager on startup

I hope somebody can help me with the following. I need my Raspberry to run a ruby script on startup which uses ruby's eventmachine package. I've installed rvm, the correct ruby version (2.1.0-dev), ...
0
votes
2answers
271 views

Cron job not running ruby script

I have a cron job running a ruby script, here is crontab * * * * * /usr/bin/ruby /home/pi/runbot.rb permissions look like this pi@pi $ ls -l runbot.rb -rwxr-xr-x 1 pi pi 859 Aug 26 14:16 runbot.rb ...
7
votes
2answers
10k views

How to install Ruby >= 2.1.9?

I tried sudo apt-get install ruby but it will install Ruby 2.1.5. How could I install version >= 2.1.9 ?
6
votes
4answers
635 views

Sonic Pi, defining my own classes

Just a bit of background information, I'm a Ruby developer, and familiar with Object Orientated techniques. I've also got a history of playing with code and music, a long-running hobby. I'm getting ...
2
votes
0answers
296 views

Watch for GPIO button while running a timer

I've built to build a timer that shows the content in a 16x2 LCD. So far so good. Now, what I want to achieve is that when I push a button, pause the timer. I'm using ruby, with the library rpi_gpio ...
0
votes
1answer
535 views

How can I get an SPI ADC (MCP3002) on RPi2

I would be happy if you give me a advice or show me the sample code. One year before, I wrote a luminosity sensor application on my RPi model B in Ruby. Thanks to the this library I could make app ...
2
votes
1answer
326 views

Install Ruby for root [closed]

I installed ruby using rbenv but after several attempts I don't manage to make the root user see the ruby bin. I installed rbenv under /var/opt/rbenv This is the content of /etc/profile.d/rbenv.sh: ...
1
vote
2answers
1k views

ruby on rails in RPI

I want to control my RPI from my phone, so I decided that the RPI will host a site. I'm familiar with ROR and I saw that there is GPIO gem (pi piper). Should I work with ROR or learn Django and use ...
1
vote
1answer
639 views

Having problems installing therubyracer and libv8 on Rails4

I'm trying to use twitter-bootswatch-rails on Rails4 $ cat /proc/version Linux version 3.18.10+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - ...
0
votes
2answers
370 views

Installing Tracks 2.2.3 on Raspberry Pi

I want to install Tracks on my Raspberry Pi for task/time management. My Pi is running the latest Raspbian, i.e. I have updated it to the latest package versions. There is a rather cryptic guide on ...
1
vote
3answers
592 views

Is Raspberry Pi powerfull enough for commercial web development?

I'm considering buying a raspberry for everything work related, especially software development for the web, since i'm a software engineering student and web start up founder. I would like to know if ...
0
votes
1answer
357 views

Using PiPiper to control Energenie's Pi-mote

I've just acquired myself a Pi-mote from Energenie. I'm trying to replicate the code from their website using Ruby and the pi_piper gem, but I've run in to problems. For some reason, my turn_1_on ...
1
vote
0answers
586 views

I have a Raspberry PI, loaded Debian, loaded mysql, loaded RVM, trying to run Bundle install --without production

Originally when I try to run "ruby server" I get this: i@ruby-pi-chas1 ~/projects/sample $ ruby server ruby: No such file or directory -- server (LoadError) When I run the bundle install the system ...
1
vote
3answers
3k views

Is the RPi enough to host a web application with pictures and videos?

I just got a RPi as a gift and I was thinking of hosting a personal website with pictures/videos. I want to use my internet connection at home to allow access to my website creating a personal server. ...
0
votes
1answer
886 views

bash can't find Rails in GUI

I am trying to get Ruby on Rails set up on my laptop. I ran through the guide here: http://elinux.org/RPi_Ruby_on_Rails Everything seemed fine, but when I went to run a Rails server while using ...
1
vote
1answer
176 views

Building ruby on a Raspberry “mini distro”

I installed this little disk image on a 1GB SD card. I would like to run ruby within this system, which is not installed yet. I decided to use rbenv instead of RVM (I have my reasons). My ...
1
vote
1answer
307 views

Problem installing Ruby on Rails server on Raspberry Pi [closed]

I tried using a Type A RP as a Rails server. Rails installs alright, but bundle install never manages to finish. I think it is due to too low RAM (256 on A model). Does anyone have experience running ...
2
votes
1answer
627 views

lxterminal login shell

Hi I'm trying to run rvm on my raspberry pi but keep getting the error rvm is not a function when I use the command in LXTerminal: rvm use 2.0.0 It gives an error saying I should use a login shell. ...
3
votes
1answer
1k views

How to install pre-compiled Ruby 2.0 on Raspbian?

I am usually recommend to people who want to install Ruby to use something like RVM or rbenv (my preference). However, I'm in the process of installing Ruby from source (using rbenv) and it has taken ...
13
votes
2answers
22k views

Setting up a Ruby on Rails Server

I am thinking of buying a raspberry pi, because I want to host a personal website. I am using a UK Internet provider (Virgin Media), and I want to use my internet connection to allow access to my ...
14
votes
9answers
14k views

How can I protect software on the Pi for commercial use?

I would like to use the Raspberry Pi in a commercial product, but I would like to prevent reverse-engineering of the software on the device. The software in question would be written in Ruby. I assume ...
1
vote
2answers
7k views

chromedriver and selenium-webdriver -> unable to connect to chromedriver http://127.0.0.1:9515

I wnat to run a ruby code with the selenium-webdriver on my raspberry pi. I've installed chromium-browser via apt-get. Ruby and selenium-webdriver are also installed. I've created a symlink for the ...
3
votes
1answer
6k views

ruby and selenium-webdriver -> Address family not supported by protocol - socket(2) (Errno::EAFNOSUPPORT)

I want to run a ruby script on my Raspberry Pi. I've installed ruby via rvm. I'm sure, i'm using the right version: $ rvm current ruby-1.9.3-p194 when i run my script, then i get following: ./test....