Page 3 of 4

Re: Later version of mono for Raspberry Pi 2

Posted: Thu Sep 29, 2016 4:11 pm
by BigOkie
steve wrote:A standard installation may not include the full Mono distribution (i.e. the mono-complete package) as required by MX.


From every install of Pi I've done it doesn't include ANY mono items in it. You would always have to install mono-complete.

Add the repo to your apt sources.list to cherry pick 4.0.5. I think I mention somewhere on the forum how to do it, and I'm sure several others have as well.

Re: Later version of mono for Raspberry Pi 2

Posted: Thu Sep 29, 2016 7:57 pm
by bigmacd
Ok - so from clean install no mono in Pixel.

Installed mono-complete and cumulusMX working fine

BUT beware it appears the upgrade scripts breaks a working version of Cumulus and Mono!

Thanks for help

Re: Later version of mono for Raspberry Pi 2

Posted: Thu Sep 29, 2016 8:53 pm
by BigOkie
You can lock mono then at whatever version. I think using a dedicated repo for 4.0.5 does the same thing.

Re: Later version of mono for Raspberry Pi 2

Posted: Tue Jun 13, 2017 8:01 am
by richard_newberry
Hi all

just to let you know that all the 'deb' links are broken to update mono 4.0.2.

Re: Later version of mono for Raspberry Pi 2

Posted: Thu Aug 24, 2017 8:44 am
by l2k
for debian stretch and fine offset station take a look to viewtopic.php?f=27&t=16421&start=15#p126360

Re: Later version of mono for Raspberry Pi 2

Posted: Thu Sep 14, 2017 4:36 pm
by jank
Just tested successfully

Linux OS Version: "Raspbian GNU/Linux" - DEBIAN - 9 (STRETCH) - 4.9.41-v7+
Mono Version: Mono JIT compiler version 5.2.0.215 (tarball Mon Aug 14 16:25:12 UTC 2017)

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 7:49 am
by richard_newberry
mine didn't work. broken packages.

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 8:43 am
by jank
richard_newberry wrote:mine didn't work. broken packages.

What do you mean with broken package ? The mono instalaltion failed ?

What have I done to be able to install the above mono version
1) RaspberryPi2
2) From this webside: https://www.raspberrypi.org/downloads/raspbian/ ---->
RASPBIAN STRETCH LITE
Minimal image based on Debian Stretch
Version:September 2017
Release date:2017-09-07
Kernel version:4.9

3) apt-get update - apt get upgrade
4) sudo apt-get insatall mono-complete
mono-complete ist schon die neueste Version (5.2.0.215-0xamarin10+debian7b1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


Reboot. Then I copied my complete CumulusMX folder from the old Jessie to this new device - connected my WS2350 Weatherstation with the serial2usb adapter and everything worked

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 10:00 am
by richard_newberry
I'm not using raspbian I'm using Debian Stretch. plus Mono 5.2 is beta not a stable release. still in works.

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 1:31 pm
by richard_newberry
Nope doesn't work on Mono version 5.2 and it was a working package. Downgraded back to 3.2.8

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 2:38 pm
by jank
Richard
Raspbian is a Debian ....and the one I mentioned above is Raspbian Light without all graphical userinteface...
so there shuold be no difference between Raspbian and Raspbian light only the GUI is missing in the light version (but who need it)
Maybe download, install and give it a try

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 2:40 pm
by richard_newberry
I haven't got a raspbian pi I'm using vmware esxi 6.5 hosting 4 machines on one box.

Re: Later version of mono for Raspberry Pi 2

Posted: Fri Sep 15, 2017 3:42 pm
by jank
Richard, sorry.....my faukt :groan:

Re: Later version of mono for Raspberry Pi 2

Posted: Tue Oct 10, 2017 11:23 am
by Steen9542
There have been a lot of posts regarding which mono version to use and how to install it on a Raspberry PI2.
Below is how I managed to install a working Cumulus using mono 4.0.5.

This post is primarily based on:
viewtopic.php?f=27&t=16421#p126018

Installation is based on post from:
l2k » Thu Aug 24, 2017 8:40 am

mono problems from:
SpaceHiker » Mon Sep 18, 2017 12:09 am

As I read the posts, the last unbroken mono version is 4.0.5

But it can be quite difficult to install that old version in a resent version of Linux raspberrypi.

This is a clean installation on a new formatted SD card (16GB).

Step by step guide:
Download the latest version of Linux raspberrypi (4.9.41-v7+) to a PC (win10) and flash the SD using Etcher.

Then transfer the SD card to the PI2 and fire it up.

Setup keyboard, lokalisation, time zone … from Preferences/Raspberry Pi configuration

Check that the OS is up to date:
$ sudo apt-get update
$ sudo apt-get dist-upgrade

Reboot PI2

Add the mono repository:
$ cd /etc/apt/sources.list.d
$ sudo vi mono-xamarin.list
add below line:
deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5 main

Update:
( "aptitude update" failed for me, therefore I used)
$ sudo apt-get update

Just ignore the warnings about signatures and conflicting distribution.

In order to fix dependencies, aptitude must be used to install mono:
$ sudo aptitude install mono-complete=4.0.5.1-0xamarin1

Then you will get a proposal from aptitude to solve the dependencies:

Keep the following packages at their current version:
1) mono-complete [Not Installed]

Do NOT accept this solution, when that would install the current version of mono(4.6.2) which has errors (as documented by SpaceHiker).

Respond with "n"

Accept the next solution from aptitude to install mono version 4.0.5 with this warning:

Leave the following dependencies unresolved:
186) libmono-webbrowser4.0-cil recommends libgluezilla (>= 2.6)

Respond with "Y"

At the next prompt:
0 packages upgraded, 186 newly installed, 0 to remove and 0 not upgraded.
Need to get 61,8 MB of archives. After unpacking 163 MB will be used.
Do you want to continue? [Y/n/?]

Respond "Y"

At the last prompt:
Do you want to ignore this warning and proceed anyway?
To continue, enter "yes"; to abort, enter "no":

Respond "yes"

Now mono-complete 4.0.5 will be installed.

In order to protect this old mono version (4.0.5) from future upgrades:
$ sudo apt-mark hold mono-runtime mono-complete

Installed version is now:
$ mono -V
Mono JIT compiler version 4.0.5 (Stable 4.0.5.1/1d8d582 Thu Nov 12 12:22:41 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

Now download CumulusMXDist3043.zip from this forum.

Then go to pi home:
$ cd /home/pi
and extract Cumulus:
$ unzip ./Downloads/CumulusMXDist3043.zip

Go to CumulusMX folder and start Cumulus (using your preferred localization):
$ cd CumulusMX
$ sudo mono CumulusMX.exe -lang da-DK
Current culture: Danish (Denmark)
Serial: 74FECEABEB2DA94ECB5EBA0CD11A7137
Cumulus MX v.3.0.0 build 3043
Station type not set
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
10-10-2017 11:35:55
Type Ctrl-C to terminate

Now point your browser to:
http://localhost:8998/
and set up your station in "Settings"

Then restart Cumulus:

$ sudo mono CumulusMX.exe -lang da-DK
Current culture: Danish (Denmark)
Serial: 74FECEABEB2DA94ECB5EBA0CD11A7137
Cumulus MX v.3.0.0 build 3043
Today.ini = data/today.ini
Last update=2017-10-10T11:39:46
Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
sysname=Linux release=4.9.41 machine=armv7l
Fine Offset station found
Connected to station
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
10-10-2017 11:39:48
Type Ctrl-C to terminate

Cumulus is running and using "," as decimal separator.

Enjoy :D

Re: Later version of mono for Raspberry Pi 2

Posted: Thu Oct 12, 2017 6:15 pm
by richard_newberry
I've tried that guide and doesn't work.