# Problem with installing FarmBot software

**URL:** <https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498>\
**Category:** Raspberry Pi\
**Created:** [August 4, 2016, 12:16pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498 "2016-08-04T12:16:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [August 4, 2016, 12:16pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/1 "2016-08-04T12:16:46Z")

</div>

Everything seems fine until I get to:

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

I get errors:

bash: gem: command not found  
bash: bundle: command not found  
bash: rake: command not found

Is there a step I missed? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![mdingena](https://forum.farmbot.org/user_avatar/forum.farmbot.org/mdingena/32/65_2.png) [@mdingena](https://forum.farmbot.org/u/mdingena)\
**Post date:** [August 4, 2016, 3:03pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/2 "2016-08-04T15:03:56Z")

</div>

> [@Randman77](#):
>
> bash: gem: command not found

This is probably because the code is written in Ruby and with gem they probably mean Ruby Gems.

See this answer: [http://stackoverflow.com/a/9492083/2190172](http://stackoverflow.com/a/9492083/2190172)

---

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [August 4, 2016, 8:07pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/3 "2016-08-04T20:07:07Z")

</div>

Much appreciated!

I just had to run:  
_ **sudo apt-get install rubygems** _  
_cd farmbot-raspberry-pi-controller_  
_ **sudo** gem install bundler_

…and that seemed successful.

But then when I try _bundle install_ I get all kinds of errors 😕

---

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [August 5, 2016, 8:17pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/4 "2016-08-05T20:17:05Z")

</div>

Now I get the error:

_Gem:InstallError: **something** requires Ruby version \>= 1.9.3._

But I know I updated Ruby, so do you know how to fix this?

---

<div class="post-metadata">

**Author:** ![riaan](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@riaan](https://forum.farmbot.org/u/riaan)\
**Post date:** [August 8, 2016, 6:26am UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/5 "2016-08-08T06:26:59Z")

</div>

Good day

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](https://get.rvm.io) | bash -s stable  
$ rvm install 2.3.0  
$ rvm --default use 2.3.0

Kind regards,  
Riaan

---

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [August 8, 2016, 2:35pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/6 "2016-08-08T14:35:39Z")

</div>

That’s just what I needed, much appreciated! Now all I need to do is build the thing.

---

<div class="post-metadata">

**Author:** ![riaan](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@riaan](https://forum.farmbot.org/u/riaan)\
**Post date:** [August 8, 2016, 2:53pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/7 "2016-08-08T14:53:19Z")

</div>

You are welcome, let me know if it worked for you.

---

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [August 8, 2016, 3:55pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/8 "2016-08-08T15:55:44Z")

</div>

It seemed to work 👍

---

<div class="post-metadata">

**Author:** ![riaan](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@riaan](https://forum.farmbot.org/u/riaan)\
**Post date:** [August 8, 2016, 3:58pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/9 "2016-08-08T15:58:36Z")

</div>

Happy to have helped.

---

<div class="post-metadata">

**Author:** ![fansa336](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fansa336](https://forum.farmbot.org/u/fansa336)\
**Post date:** [October 11, 2016, 1:37pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/10 "2016-10-11T13:37:19Z")

</div>

Hello makers, i’m new in raspberry pi system and i’ve a little problem XD

When i do ‘bundle install’ i’ve got this error:  
'could not locate Gemfile’  
however i’m in the farmbot-raspberry-pi-controller directory

i’ve try to remove ruby (as you advise in this topic) before reinstall ruby 2.3 and it’s doesn’t work

good afternoon 🙂

---

<div class="post-metadata">

**Author:** ![roryaronson](https://forum.farmbot.org/user_avatar/forum.farmbot.org/roryaronson/32/24_2.png) [@roryaronson](https://forum.farmbot.org/u/roryaronson)\
**Post date:** [October 12, 2016, 3:33am UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/11 "2016-10-12T03:33:29Z")

</div>

Hi @fansa336,

We just recently completely switched the way the controller and raspberry pi stuff is installed and updated. In short, we now have a repository named “[FarmBot OS](https://github.com/FarmBot/farmbot_os)” which, as it sounds, is a complete operating system that includes the controller and a little app that allows you to connect the pi to your home wifi network and your farmbot web app account really easily. Just follow the install instructions here: [https://github.com/FarmBot/farmbot\_os#first-time-installation](https://github.com/FarmBot/farmbot_os#first-time-installation)

This system also features over-the-air updates so you can install the latest controller and firmware by clicking a button in the web app’s device tab 🙂

---

<div class="post-metadata">

**Author:** ![fansa336](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fansa336](https://forum.farmbot.org/u/fansa336)\
**Post date:** [October 12, 2016, 4:10pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/12 "2016-10-12T16:10:41Z")

</div>

Hello roryaronson,

big thanks for your help, after 4 hours i’ve succes to connect to my farmbot

but i had more difficults to create the sd card because when i put into the raspberry pi i attempt to see a desktop on my screen and when you configure one time your pi with the WiFi, it’s impossible to change the informations and the single solution was format sd card and reload the os

so an thank you again for your time and your help 😁

---

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [October 12, 2016, 4:25pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/13 "2016-10-12T16:25:59Z")

</div>

@roryaronson so I followed the easy instructions and it’s still not working out for me. After writing the image to the SD card and and puting it in the pi, I get a black screen with lines of code, and the last line says:  
_random: nonblocking pool is not initialized_  
any idea what went wrong? I’m using version 2.0.3 if that makes a difference.

---

<div class="post-metadata">

**Author:** ![fansa336](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fansa336](https://forum.farmbot.org/u/fansa336)\
**Post date:** [October 12, 2016, 4:49pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/14 "2016-10-12T16:49:57Z")

</div>

hello Randman77,  
did you have connect to your pi with your phone to configurate it ?

---

<div class="post-metadata">

**Author:** ![Randman77](https://forum.farmbot.org/user_avatar/forum.farmbot.org/randman77/32/102_2.png) [@Randman77](https://forum.farmbot.org/u/Randman77)\
**Post date:** [October 12, 2016, 5:19pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/15 "2016-10-12T17:19:14Z")

</div>

@fansa336 I haven’t gotten that far, I’m still trying to install the OS

---

<div class="post-metadata">

**Author:** ![roryaronson](https://forum.farmbot.org/user_avatar/forum.farmbot.org/roryaronson/32/24_2.png) [@roryaronson](https://forum.farmbot.org/u/roryaronson)\
**Post date:** [October 12, 2016, 10:08pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/16 "2016-10-12T22:08:58Z")

</div>

You shouldn’t need to have a screen, keyboard, or mouse plugged into the Pi to install the OS. Simply put the SD card into the pi, plug the pi in to power, and then use your phone or laptop to connect to the farmbot configurator to complete setup. You do not need to go through a traditional OS install process.

---

<div class="post-metadata">

**Author:** ![roryaronson](https://forum.farmbot.org/user_avatar/forum.farmbot.org/roryaronson/32/24_2.png) [@roryaronson](https://forum.farmbot.org/u/roryaronson)\
**Post date:** [October 12, 2016, 10:10pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/17 "2016-10-12T22:10:15Z")

</div>

Oh, and we are working on a way to “factory reset” the device from the web app. But for now, if it does not connect to wifi or a web app account successfully then it will simply restart the wifi configurator app so you can edit the settings.

---

<div class="post-metadata">

**Author:** ![Ascend](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@Ascend](https://forum.farmbot.org/u/Ascend)\
**Post date:** [October 12, 2016, 11:45pm UTC](https://forum.farmbot.org/t/problem-with-installing-farmbot-software/498/18 "2016-10-12T23:45:48Z")

</div>

Hallo everyone,

first I would like to thank the coding team for sharing Farmbot OS to the community. I am using it since version 2.0.0 was released. I managed to config and control the farmbot, but my connection always died after a few commands.

When I try to config with the farmbotconfig WLAN, It seems there is no SSID found, since there are always 3 “test SSIDs” shown (test\_ssid, meeeep). Multiple wireless connections are in range and stable, but not shown in config page.

Is anybody else struggling with connecting?

Also recently I always had to boot the bot a second time to get the ‘farmbotconfig’ SSID shown. But seems like it got fixed, since 2.0.3 it’s not an issue for me anymore.

Cheers
