more G-Labs products

Author Topic: Status: Package Install Error - Raspberry Pi GPIO Module  (Read 884 times)

January 19, 2016, 07:42:30 PM
Read 884 times

lastbit

  • *
  • Information
  • Newbie
  • Posts: 9
On an new install of R513, when trying to install the /Single Board Computers/Raspberry Pi GPIO Module I get

* = Status: Package Install Error

What have I not done correctly?

In addition, on the "Maintenance " window I have a "Install Package" button highlighted. Selecting the button brings me to the Package Manager, but I have no idea of what package needs to be installed. I assumed the GPIO since it is being used in one of my programs. But no way to know.

John

January 20, 2016, 06:13:44 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
This is due to a bug in mono for ARM (Raspberry Pi and similar SBC).

Solution:
Uninstall current mono and upgrade to mono 4.

http://www.mono-project.com/docs/getting-started/install/linux/

Cheers,
g.
« Last Edit: January 20, 2016, 06:22:17 PM by Gene »

January 20, 2016, 06:21:02 PM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Step by step instrudction for using latest mono with homegenie:

Code: [Select]
sudo apt-get remove homegenie
sudo apt-get autoremove

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

then install homegenie again with gdebi.

Cheers,
g.
« Last Edit: January 20, 2016, 06:33:43 PM by Gene »

January 21, 2016, 04:53:37 PM
Reply #3

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
There seems to be a bug in latest mono from Xamarin repository:

https://bugzilla.xamarin.com/show_bug.cgi?id=37388

so DO NOT INSTALL mono 4 as it will lead to a broken mono returning "Illegal Instruction" error, and HomeGenie won't start at all.

So I had to apply a couple of work-arounds to HomeGenie code in order to solve this specific issue (and another one regarding error in compiling c# automation programs).
These work-arounds will let HomeGenie run on official debian mono release (which is currently 3.2.8).

These fixes will be available with HG v1.1-beta.514.

Cheers,
g.