Regarding Mono Develop Upgrade on Raspberry Pi

I have a Winform application in C # (which works fine on Windows), but it crashes in Mono on the Raspberry Pi due to the following error.

* Approval in the mini codec. c: 807, the condition 'i == sel' does not occur. Got SIGABRT while executing native code. This usually indicates a fatal error in the mono executable version or one of the built-in libraries used by your application.

After some research, I found out that the Mono version on Pi does not support Winform Textbox and therefore the above error. I have a Mono JIT compiler version 3.2.8 (Debian 3.2.8 + dfsg-4 + rpi1) installed on a Pi. It seems that a later version of Mono fixed this error (3.8.1).

Can someone explain how to upgrade Mono to the latest or required version. Linux is installed on the Pi. I tried the following commands (sudo apt-get update && sudo apt-get dist-upgrade.), But the version on the Pi is still displayed as 3.2.8.

-Thank

+4
source share
1 answer

Assuming you are running "RASPBIAN Debian Wheezy", the last of Mono repo is 4.0.2 on this platform, so you need to change your apt-get sources to view Mono repositories:

Debian, Ubuntu and derivatives

Add the GPG Mono Project signature key and package repository to your system (if you are not using sudo, be sure to switch to root):

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

upgrade, . Mono, Usage.

sudo apt-get upgrade

. APT Debian Wheezy, Debian ( Ubuntu), , .

: http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives

+4

Source: https://habr.com/ru/post/1598269/


All Articles