plugwash
Forum Moderator
Forum Moderator
Posts: 3439
Joined: Wed Dec 28, 2011 11:45 pm

Re: Need a Mono upgrade

Tue Oct 20, 2015 6:27 pm

Tell me when it hits Debian experimental and i'll get it built and into the repo.

JPelletier
Posts: 17
Joined: Fri Mar 13, 2015 1:34 pm

Re: Need a Mono upgrade

Wed Oct 21, 2015 2:26 pm

I think it's already in experimental, current version is 4.0.4.1

We will probably switch our mono project to Pi 2 for better performance, I'm actually testing our project on a Pi 2

plugwash
Forum Moderator
Forum Moderator
Posts: 3439
Joined: Wed Dec 28, 2011 11:45 pm

Re: Need a Mono upgrade

Wed Oct 21, 2015 2:49 pm

JPelletier wrote:I think it's already in experimental, current version is 4.0.4.1
And you asked for 4.0.4.4...... does 4.0.4.1 have the fix you need?

JPelletier
Posts: 17
Joined: Fri Mar 13, 2015 1:34 pm

Re: Need a Mono upgrade

Wed Oct 21, 2015 2:53 pm

plugwash wrote:
JPelletier wrote:I think it's already in experimental, current version is 4.0.4.1
And you asked for 4.0.4.4...... does 4.0.4.1 have the fix you need?
Oh yes sorry for the confusion, the fix is in 4.0.4

Krikroff
Posts: 4
Joined: Tue Feb 24, 2015 11:28 pm

Re: Need a Mono upgrade

Sat Dec 05, 2015 2:24 pm

Hi plugwash,

Can you put in your todo list the lastest stable 4.2 mono release ?

Thank you so much,

CristianPietrobon
Posts: 1
Joined: Sun Dec 13, 2015 3:24 pm

Re: Need a Mono upgrade

Sun Dec 13, 2015 3:30 pm

Hello everyone,
i'm new to the forum but i use Linux for work and also i started using the rasberrypi 2 for some projects.

I compiled the last release of mono though git (http://www.mono-project.com/docs/compiling-mono/linux/)
and i try to run an application: works, but really slow, about 3/4 times slower than the version 4.0 found on this thread.

Anyone know something about that?

hakanl
Posts: 15
Joined: Tue Jun 26, 2012 4:53 am

Re: Need a Mono upgrade

Thu Dec 24, 2015 6:33 am

It would be great to get mono 4.2.x on Raspberry Pi 1, there are some fixes in mono 4.2 that won't work with 4.0. Thanks!

plugwash
Forum Moderator
Forum Moderator
Posts: 3439
Joined: Wed Dec 28, 2011 11:45 pm

Re: Need a Mono upgrade

Sat Jan 02, 2016 1:25 am

Mono 4.2 has just been pulled into the raspbian stretch-staging repositories from Debian. Hopefully it will migrate to the main raspbian stretch repo soon.

If people could try it out and tell me how well it works for them so I can decide if it's worth trying to backport the packages to wheezy and/or jessie that would be helpful.

walker1993
Posts: 1
Joined: Sat Jan 02, 2016 5:30 pm

Re: Need a Mono upgrade

Sat Jan 02, 2016 5:36 pm

plugwash wrote:Ok, packages are available.

for wheezy:
deb http://plugwash.raspbian.org/mono4 wheezy-mono4 main

for jessie:
deb http://plugwash.raspbian.org/mono4 jessie-mono4 main

Please test and say what works and what doesn't.

signing key is the same as the raspbian repos, so you don't need to add any keys.
I followed this and successfully installed mono 4.0 on my Pi, unfortunately I can't install mono-vbnc anymore now
this is what I get when I try:

Code: Select all

pi@raspberrypi ~ $ mono --version
Mono JIT compiler version 4.0.2 (Debian 4.0.2.5+dfsg-2~rpi1)
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
pi@raspberrypi ~ $ sudo apt-get install mono-vbnc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mono-vbnc : Depends: libmono-microsoft-visualbasic11.0-cil (= 3.8-1) but it is not going to be installed
                        Depends: libmono-corlib2.0-cil (>= 3.2.8) but it is not going to be installed
                        Depends: libmono-microsoft-visualbasic8.0-cil (>= 2.99) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Is there a workaround for this?

hakanl
Posts: 15
Joined: Tue Jun 26, 2012 4:53 am

Re: Need a Mono upgrade

Sun Jan 03, 2016 8:15 pm

plugwash wrote:Mono 4.2 has just been pulled into the raspbian stretch-staging repositories from Debian. Hopefully it will migrate to the main raspbian stretch repo soon.

If people could try it out and tell me how well it works for them so I can decide if it's worth trying to backport the packages to wheezy and/or jessie that would be helpful.
I'll be happy to try it out, do you have any information on how I can test this, is it just repos for mono or should I add these to a standard wheezy/jessie installation? I have a RPi1 with a fresh SD card that I can use for testing, just need some pointers.

BitterPint
Posts: 2
Joined: Mon Jan 04, 2016 4:10 pm

Re: Need a Mono upgrade

Mon Jan 04, 2016 4:37 pm

plugwash wrote:Mono 4.2 has just been pulled into the raspbian stretch-staging repositories from Debian. Hopefully it will migrate to the main raspbian stretch repo soon.

If people could try it out and tell me how well it works for them so I can decide if it's worth trying to backport the packages to wheezy and/or jessie that would be helpful.
Hi, this is my first post. I've been doing a skunk-works build on the RPi2 of display-logger which is normally deployed on a panel pc under ubuntu 12.04. This uses a VB2010 app under mono, so needs the working forms support (i.e. not the 3.2.8 mono in the repositories). Back in September I built an image using the notes in this thread which I still have, and works well (Mono JIT compiler version 4.2.1). Unfortunately I built it on NOOBs, and am having problems with "identical" micro-SD card having different image sizes. I'm now trying to build a clean image to allow "trimming" of my images. I tried jessie first, but the mono install complained about unsigned packages. I've now reverted to wheezy, and this installs ok, but to an earlier version "Mono JIT compiler version 4.0.2 (Debian 4.0.2.5+dfsg-2~rpi1". It also fails to install the required library.
root@raspberrypi:/home/pi# apt-get install libmono-microsoft-visualbasic10.0-cil
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libmono-microsoft-visualbasic10.0-cil : Depends: libmono-corlib4.0-cil (>= 2.10.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I'm left with a working image that I can't currently recreate. The main reason for posting was to say that I've been running a VB2010 app (Windows Forms) on a RPi2 under Mono 4.2.1 for a while and it has been stable, and to say thanks for the useful info in this thread. I'll keep an eye out for 4.2 making it into the mainstream.

hakanl
Posts: 15
Joined: Tue Jun 26, 2012 4:53 am

Re: Need a Mono upgrade

Mon Jan 04, 2016 9:12 pm

BitterPint wrote:
plugwash wrote:Mono 4.2 has just been pulled into the raspbian stretch-staging repositories from Debian. Hopefully it will migrate to the main raspbian stretch repo soon.

If people could try it out and tell me how well it works for them so I can decide if it's worth trying to backport the packages to wheezy and/or jessie that would be helpful.
Hi, this is my first post. I've been doing a skunk-works build on the RPi2 of display-logger which is normally deployed on a panel pc under ubuntu 12.04. This uses a VB2010 app under mono, so needs the working forms support (i.e. not the 3.2.8 mono in the repositories). Back in September I built an image using the notes in this thread which I still have, and works well (Mono JIT compiler version 4.2.1). Unfortunately I built it on NOOBs, and am having problems with "identical" micro-SD card having different image sizes. I'm now trying to build a clean image to allow "trimming" of my images. I tried jessie first, but the mono install complained about unsigned packages. I've now reverted to wheezy, and this installs ok, but to an earlier version "Mono JIT compiler version 4.0.2 (Debian 4.0.2.5+dfsg-2~rpi1". It also fails to install the required library.
root@raspberrypi:/home/pi# apt-get install libmono-microsoft-visualbasic10.0-cil
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libmono-microsoft-visualbasic10.0-cil : Depends: libmono-corlib4.0-cil (>= 2.10.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I'm left with a working image that I can't currently recreate. The main reason for posting was to say that I've been running a VB2010 app (Windows Forms) on a RPi2 under Mono 4.2.1 for a while and it has been stable, and to say thanks for the useful info in this thread. I'll keep an eye out for 4.2 making it into the mainstream.

You don't need to do all this on RPi2, you can just use the binaries/apt repos from mono-project, they work fine on RPi2 (but not RPi1).

BitterPint
Posts: 2
Joined: Mon Jan 04, 2016 4:10 pm

Re: Need a Mono upgrade

Tue Jan 05, 2016 10:03 am

You don't need to do all this on RPi2, you can just use the binaries/apt repos from mono-project, they work fine on RPi2 (but not RPi1).
Thank-you! I thought I'd tried a straight install first but obviously didn't do it right. Maybe I changed the "wheezy" to "jessie" in the mono-project path the first time. For reference this is the exact command sequence I used from a fresh 2015-11-21 Raspian Jessie 4.1 image:

Code: Select all

sudo su
apt-get remove --purge wolfram-engine libreoffice-* sonic-pi
apt-get autoremove
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
apt-get update
apt-get upgrade
apt-get install mono-runtime
mono --version # returned 4.2.1
apt-get install libmono-microsoft-visualbasic10.0-cil

hakanl
Posts: 15
Joined: Tue Jun 26, 2012 4:53 am

Re: Need a Mono upgrade

Tue Jan 05, 2016 6:01 pm

Thanks for sharing. However I see you have wheezy in the apt path, is that a typo?

RockyBoulder
Posts: 5
Joined: Mon Jan 18, 2016 11:36 am

Re: Need a Mono upgrade

Mon Jan 18, 2016 12:40 pm

Hi! I tried to install a newer version of mono on my RPI2 but it is not working alright. I did this:

First try:
Adding to sources.list

Code: Select all

deb http://plugwash.raspbian.org/mono4 jessie-mono4 main 
this throws out 404 not found messages when doing apt-get update regarding the line above.

Second try:

One Stop Shop Build Script (Debian)

This one compiled for hours and then throwed out a lot of make target errors and other.

Third try:

Code: Select all

echo "deb http://download.mono-project.com/repo/debian jessie main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
Leads to not found errors.

Fourth try:

Code: Select all

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
Mono installs mono --version output:

Code: Select all

mono --version
Mono JIT compiler version 4.3.3 (master/8132f83 Mo 18. Jan 02:41:42 CET 2016)
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

Looked good but:

mono someprogram.exe leads to:

Code: Select all

The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/local/lib/mono/4.5/mscorlib.dll' directory.
Searched and found out the where installed in /usr/lib/mono/4.5.
Made symlinks from /usr/lib/mono to /usr/local/lib/mono/

mono someprogramm.exe now leads to:
Corlib not in sync with this runtime: expected corlib version 140, found 138.
Loaded from: /usr/lib/mono/4.5/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.mono-project.com/download.
Searched for this kind of error and found out installing a newer corelib is *not* adviced. Now I am out of ideas. In fact I even tried a fifth thing: adding

Code: Select all

http://mirrordirector.raspbian.org/raspbian/ testing main contrib non-free rpi

to sources list and:

Code: Select all

Package: *
Pin: release a=stable
Pin-Priority: 700 

Package: *
Pin: release a=testing
Pin-Priority: 650 
[code]
followed by apt-get update and sudo apt-get -t testing install mono-runtime but this would pull in  a new glibc and would probably break my system. Therefore I stopped here. 

Any suggestions? News about an official package?

dobova86
Posts: 67
Joined: Wed Dec 05, 2012 5:32 pm

Re: Need a Mono upgrade

Mon Jan 18, 2016 3:34 pm

RockyBoulder wrote: Fourth try:

Code: Select all

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
Mono installs mono --version output:

Code: Select all

mono --version
Mono JIT compiler version 4.3.3 (master/8132f83 Mo 18. Jan 02:41:42 CET 2016)
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

Looked good but:

mono someprogram.exe leads to:
I use "deb http://download.mono-project.com/repo/debian wheezy main"
and what I find is:

Code: Select all

pi@raspberrypi:~ $ sudo apt-cache show mono-complete
Package: mono-complete
Source: mono
Version: 4.2.1.102-0xamarin1
Architecture: armhf
Maintainer: Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>
Installed-Size: 60
Depends: mono-runtime (= 4.2.1.102-0xamarin1), mono-runtime-sgen (= 4.2.1.102-0xamarin1), libmono-2.0-1 (= 4.2.1.102-0xamarin1), libmono-profiler (= 4.2.1.102-0xamarin1), mono-utils (= 4.2.1.102-0xamarin1), mono-jay (= 4.2.1.102-0xamarin1), mono-devel (= 4.2.1.102-0xamarin1), mono-mcs (= 4.2.1.102-0xamarin1), mono-csharp-shell (= 4.2.1.102-0xamarin1), mono-4.0-gac (= 4.2.1.102-0xamarin1), mono-4.0-service (= 4.2.1.102-0xamarin1), monodoc-base (= 4.2.1.102-0xamarin1), monodoc-manual (= 4.2.1.102-0xamarin1), libmono-cil-dev (= 4.2.1.102-0xamarin1), ca-certificates-mono (= 4.2.1.102-0xamarin1)
Homepage: http://www.mono-project.com/
Priority: optional
Section: cli-mono
Filename: pool/main/m/mono/mono-complete_4.2.1.102-0xamarin1_armhf.deb
Size: 15348

This works fine for me.

Where have you found v.4.3.3 ?

RockyBoulder
Posts: 5
Joined: Mon Jan 18, 2016 11:36 am

Re: Need a Mono upgrade

Sat Jan 30, 2016 6:13 pm

dobova86 wrote:Where have you found v.4.3.3 ?
Seems the one stop shop script did not fail completely. Seems it build the core but not the libs and installed it to /usr/local/bin/mono while the version from the repository ended up in /usr/bin/mono. Meanwhile the mono from

Code: Select all

deb http://download.mono-project.com/repo/debian wheezy main
works and jumped to Stable 4.2.2.30 yesterday.

hakanl
Posts: 15
Joined: Tue Jun 26, 2012 4:53 am

Re: Need a Mono upgrade

Sun Jan 31, 2016 7:43 pm

RockyBoulder wrote:
dobova86 wrote:Where have you found v.4.3.3 ?
Seems the one stop shop script did not fail completely. Seems it build the core but not the libs and installed it to /usr/local/bin/mono while the version from the repository ended up in /usr/bin/mono. Meanwhile the mono from

Code: Select all

deb http://download.mono-project.com/repo/debian wheezy main
works and jumped to Stable 4.2.2.30 yesterday.
Yes, that works for a Raspberry Pi 2, but not for the Pi 1.

gthvidsten
Posts: 10
Joined: Fri Jul 31, 2015 8:52 am

Re: Need a Mono upgrade

Sat Apr 30, 2016 6:47 pm

Sorry in advance for bringing up an old thread.

I added "deb http://download.mono-project.com/repo/debian wheezy main" to /etc/apt/sources.list, ran "apt-get update", then "apt-get install mono-complete".

"mono --version" now reports version 4.0.2, which is a great start.

However, 4.x introduced (at least) one bug that wasn't present in 3.x. The one I'm struggling with has been fixed in version 4.2.
Is there any ETA on when 4.2 will be available for Raspbian?

EDIT:

I seem to be unable to revert to Mono 3.x. I executed "apt-get autoremove mono-complete", then I commented out the line added to /etc/apt/sources.list, executed "apt-get update" and finally "apt-get install mono-complete", but it seems there are "unmet dependencies" which apt can't correct and doesn't install.
"Anything one man can imagine other men can make real."
- Jules Verne

bluekeane
Posts: 1
Joined: Wed May 11, 2016 5:05 am

Re: Need a Mono upgrade

Wed May 11, 2016 5:15 am

The source by http://www.mono-project.com dosen't work on RPi 1, but works well on RPi 2. (Mono Version 4.2.3)
I tried to add deb http://plugwash.raspbian.org/mono4 jessie-mono4 main, and it worked really well on RPi 1. (Mono Version 4.0.2)
Thanks a lot!

chadw
Posts: 13
Joined: Thu Apr 30, 2015 7:29 pm

Re: Need a Mono upgrade

Sat May 28, 2016 9:55 am

Hello,

Is "deb http://download.mono-project.com/repo/debian wheezy main"
meant for raspbian wheezy only,
or does it work for jessie too ?

fruitoftheloom
Posts: 20495
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Need a Mono upgrade

Sat May 28, 2016 10:44 am

chadw wrote:Hello,

Is "deb http://download.mono-project.com/repo/debian wheezy main"
meant for raspbian wheezy only,
or does it work for jessie too ?
Yes..

FYI version 4.2.x is in Debian Stretch Testing: https://packages.debian.org/stretch/mono-complete
Retired disgracefully.....

myeducom
Posts: 2
Joined: Mon Sep 05, 2016 6:50 pm

Re: Need a Mono upgrade

Mon Sep 05, 2016 7:05 pm

Hello guys,

Has anyone successfully setup xsp4 using mono version 3.2.8 and run ASP.NET AJAX?
Please share some experience.

*** xsp4 and mono version 3.2.8 is the default mono that comes with Raspbian Jessie.

myeducom
Posts: 2
Joined: Mon Sep 05, 2016 6:50 pm

Re: Need a Mono upgrade

Tue Sep 06, 2016 2:17 am

dobova86 wrote:I grabbed this from very usefull Scott Hanselman site (http://www.hanselman.com) .. :D

Code: Select all

sudo apt-key adv --keyserver keyserver.ubuntu.com --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 && apt-get upgrade 
sudo apt-get install mono-complete
It seems to work ... In case you have previous Mono version installed you prabably need "apt-get dist-upgrade". This will install 3.12.1 on the raspi.


Hi Guys,

Some update. I am having a Jesssie on my Raspberry Pi 3. I have been struggling for many days to try to make ASPN.Net Ajax to work in Mono 3.2.8 but to no avail.
The above post actually made it happen. The Mono installed was 4.4.2.
*** You may need to remove all the Mono before the above command by issuing sudo apt-get purge mono-runtime.

mb99
Posts: 13
Joined: Mon Jun 13, 2016 3:47 am

Re: Need a Mono upgrade

Tue Sep 06, 2016 5:52 pm

For get last mono on raspbian follow this instructions:

Code: Select all

1. sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
2. echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
3. sudo apt-get update
4. echo “deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
5. echo “deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
6.  sudo apt-get install mono-devel
7.  sudo apt-get install mono-complete
8.  sudo apt-get install referenceassemblies-pcl
9.  sudo apt-get install ca-certificates-mono
10. sudo apt-get install mono-xsp4
After finish:

Code: Select all

root@p1:~# mono –version
Mono JIT compiler version 4.4.2 (Stable 4.4.2.11/f72fe45 Fri Jul 29 10:21:58 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

Return to “Other programming languages”