Help instilling ruby following farmbot GitHub

Hey all,

Have received my pi the other day. I am trying to follow the instructions on farmbot GitHub to install farmbot but it fails when installing the latest ruby.

Any hints at what I should be trying? In the morning I’m going to redo the pi image to undo anything that I may have broken.

Ruby is already in stalled. you need to but in

sudo apt-get remove ruby* --purge

to remove the old version then

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L https://get.rvm.io | bash -s stable --ruby

to get the new one

post the console if you need any help :smiley:

tried it on a fresh install again.
did the

sudo apt-get remove ruby* --purge

to remove the old version then

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L https://get.rvm.io | bash -s stable --ruby

to get the new one

but after about 10 -15 mins i get this error

I’m not sure why this isn’t working for I did this all yesterday and it was fine. I even did the Arduino install as well. so I can’t offer much help sorry :frowning:

the only thing I can think of it to start from scratch.

I just installed raspbian from the raspberry pi website then did

sudo apt-get update

sudo apt-get remove ruby* --purge

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L https://get.rvm.io | bash -s stable --ruby

so got it to work.

tried a bigger card and it worked(16gb)

i went for option b on the clone install and run part

(FIXED: had to reboot pi)
but now im stuck on this part

cd farmbot-raspberry-pi-controller
gem install bundler
bundle install
rake db:setup

on gem install bundler i get -bash: gem: command not found
and simualer errors on the other 2 comands

can you tell im a new to pi?

thanks
nick

type it one line at a time instead of all at once

It that fails you can try the steps below.

I added the following commands and it seems to have worked.
I log in as root on the system via Putty.
I followed the instructions to the letter and in step one I used “sudo apt-get remove ruby* --purge” and this obviously uninstalled the current version of Ruby.
I am not a Linux expert though.

Aditional Steps:
sudo apt-get install ruby-dev
sudo apt-get install ruby-full

\curl -sSL https://get.rvm.io | bash -s stable
$ rvm install 2.3.0
$ rvm --default use 2.3.0

Kind regards,
Riaan

1 Like