Wine says to install Mono even if I already have wine-mono

Questions about Wine on Linux
Locked
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Wine says to install Mono even if I already have wine-mono

Post by Bamm »

Whenever I try to run a .NET program in wine I get the following output:

wine: Install Mono for Windows to run .NET applications.

I already have the wine-mono package installed, but Wine doesn't seem to recognize it. I'm running Wine 1.6.2, package version wine 1:1.6.2-0ubuntu4. I have wine-mono0.0.8 package version 0.0.8-0ubuntu1. Running Trusty.
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine says to install Mono even if I already have wine-mo

Post by dimesio »

Your wine-mono version is way too old. You need 4.5.2.
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Wine says to install Mono even if I already have wine-mo

Post by Bamm »

Thanks dimesio.

Since wine-1.6.2 and wine-mono0.0.8 come from the same repo, I assumed that they should work well together or that they were released at roughly the same time.

Where do I get wine-mono 4.5.2? Will it work on stable wine 1.6.2 or does it only work in wine 1.7.x?
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Wine says to install Mono even if I already have wine-mo

Post by Bamm »

Thanks dimesio. That repo upgrades wine to 1.7.31. My question was whether wine-mono 4.5.2 is compatible with wine-1.6.2.

I am on a stable system and I prefer not to have a wine that updates every two weeks with possible changes in the way my apps work. I am looking for the best way to make 1.6.2 work for me, and if there is no way for it to run mono, then I will wait for 1.8.

It won't surprise me if 1.7.x doesn't recognize older wine-mono, but it does surprise me that the stable 1.6.x doesn't recognize the version of mono that comes bundled with it.
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Wine says to install Mono even if I already have wine-mo

Post by Bamm »

Hi dimesio,

First of all thanks for the help and the time you put into these forums to help out end users like me. I did as you said and installed your recommended version via the following commands:
$ sudo add-apt-repository ppa:ubuntu-wine/ppa
$ sudo apt-get update
$ sudo apt-get install wine-mono4.5.2
$ apt-cache policy wine-mono4.5.2
wine-mono4.5.2:
Installed: 4.5.2-0ubuntu1~ppa1
Candidate: 4.5.2-0ubuntu1~ppa1
Version table:
*** 4.5.2-0ubuntu1~ppa1 0
100 /var/lib/dpkg/status
$ wine --version
wine-1.6.2
$
I then ran the program again and got the following console output:
$ wine Occult.exe
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"configSections" in state 1
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"sectionGroup" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"section" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"userSettings" in state 1
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"Occult.Properties.Settings" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 3
fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 3
wine: Install Mono for Windows to run .NET applications.
$
I conclude that my copy of 1.6.2 does not recognize wine-mono no matter what version. This is strange because the 1.5.x series before that did recognize wine-mono.

Could it be a configuration problem in my system? Thanks for any advice.
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine says to install Mono even if I already have wine-mo

Post by dimesio »

What happens when you create a new wineprefix?
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Wine says to install Mono even if I already have wine-mo

Post by Bamm »

It was a new wineprefix. Deleted .wine and ran wineboot before running it. Should I reinstall wine?
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine says to install Mono even if I already have wine-mo

Post by dimesio »

There's a wine-mono 4.5.0 package in the repository; try that first.
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Wine says to install Mono even if I already have wine-mo

Post by Bamm »

Fixed. After reinstalling Wine 1.6.2 using the following command:

sudo apt-get install --reinstall wine1.6

then deleting .wine and recreating it using wineboot, Wine now recognizes mono. It only recognizes wine-mono0.0.8 although wine-mono4.5 is both installed. When I uninstalled wine-mono0.0.8, wine complains even if wine-mono4.5.2 is installed. However, that's because wine-mono 4.5.2 is much newer than wine-1.6.2.

You can close this now because my initial report seems to be invalid, since a reinstall of Wine fixed it.
Locked