As of 4/30/2018, these instructions are no longer required. Please see this post for Linux users instead!
If you're using an ARM-based device on a debian-based OS (like raspbian), the version of Mono that's included in the repository (3.2.8) is a bit out of date and has a significant defect relating to making web requests that prevents this plugin from working.
First, check what version of Mono you're running and verify you have the broken version:
The defect was fixed in 3.8, but packages for ARM processors aren't available in the snapshot repository for anything above 3.2.8, so there are no easy command line tools you can use to get these. There is a way to upgrade to a newer 4.X version using apt, but HomeSeer doesn't work with Mono 4.X yet, so you can't use that approach either.
The only approach I've been able to find that seems to resolve this problem is to compile Mono 3.12.1 from source yourself. It's actually very easy, but it will take somewhere around 4-6+ hours (depending on what you've set your clock speed to with raspi-config).
Here are the steps I followed (adapted from this guide) on my Raspberry Pi:
I do not have a Zee (or even a true armhf Raspberry Pi2) to test this on, but I hope it helps those of you trying to use this plugin on your servers!
Update: Thanks to kf6dlq, who ran through and helped troubleshoot these instructions, it looks like this is going to solve the problem without breaking HS3.
If you're using an ARM-based device on a debian-based OS (like raspbian), the version of Mono that's included in the repository (3.2.8) is a bit out of date and has a significant defect relating to making web requests that prevents this plugin from working.
First, check what version of Mono you're running and verify you have the broken version:
Code:
root@sydney:~# mono --version Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
The only approach I've been able to find that seems to resolve this problem is to compile Mono 3.12.1 from source yourself. It's actually very easy, but it will take somewhere around 4-6+ hours (depending on what you've set your clock speed to with raspi-config).
Here are the steps I followed (adapted from this guide) on my Raspberry Pi:
- BACKUP YOUR SYSTEM! Make a backup copy of your SD card before you do anything; I do not want to be responsible for you crashing your HS3 machine!
- Execute the following commands on your Pi:
Code:sudo apt-get remove mono-* libmono* sudo apt-get update sudo apt-get install libc6 libc6-dev libtool libglib2.0-dev libxrender-dev libfontconfig1-dev libpng12-dev libgif-dev libjpeg-dev libtiff5-dev libexif-dev gettext libcairo2-dev libgdiplus cd /usr/local/src sudo wget http://download.mono-project.com/sources/mono/mono-3.12.1.tar.bz2 sudo tar -jxvf mono-3.12.1.tar.bz2 cd mono-3.12.1 sudo ./configure --prefix=/usr/local/ sudo SKIP_AOT=true make sudo SKIP_AOT=true make install
- Check that "mono --version" shows you now have 3.12.1 installed (may require you to log out and back in again).
- Add VB support:
Code:cd /usr/local/src sudo wget -O mono-basic-3.8.tar.gz https://github.com/mono/mono-basic/archive/3.8.tar.gz sudo tar -zvf mono-basic-3.8.tar.gz cd mono-basic-3.8 sudo ./configure sudo make sudo make install
- Check that "vbnc" runs and shows you now have "Visual Basic.Net Compiler version 0.0.0.5943 (Mono 3.8 - tarball)" installed (will complain you didn't give it anything to do, which is ok).
- Remove any extra Xamarin repositories from your /etc/apt/source.list.d (in case you've tried to upgrade previously).
I do not have a Zee (or even a true armhf Raspberry Pi2) to test this on, but I hope it helps those of you trying to use this plugin on your servers!
Update: Thanks to kf6dlq, who ran through and helped troubleshoot these instructions, it looks like this is going to solve the problem without breaking HS3.
Comment