installing wine-mono with wine 1.9.5

Questions about Wine on Linux
Locked
randmax
Level 1
Level 1
Posts: 6
Joined: Sun Mar 06, 2016 5:47 pm

installing wine-mono with wine 1.9.5

Post by randmax »

Hi
I'm struggling with wine-mono for some time.
I've put wine-mono-4.6.0.msi in /usr/share/wine/mono/ as wineHQ wiki suggest
yet every time I get "err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed"

I`m running 1.9.5 wine on 64bit multilib slackware if it's of any matter
Any help?
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: installing wine-mono with wine 1.9.5

Post by dimesio »

The wiki says:
/usr/share/wine/mono, or possibly some substitution for /usr if Wine was installed to a different location.
Where is Wine installed on your system?
randmax
Level 1
Level 1
Posts: 6
Joined: Sun Mar 06, 2016 5:47 pm

Re: installing wine-mono with wine 1.9.5

Post by randmax »

it is installed under /usr
like /usr/bin/, /usr/lib/ and so on
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: installing wine-mono with wine 1.9.5

Post by dimesio »

Have you tried a clean wineprefix?
randmax
Level 1
Level 1
Posts: 6
Joined: Sun Mar 06, 2016 5:47 pm

Re: installing wine-mono with wine 1.9.5

Post by randmax »

Yep, first thing I tried was from clean wineprefix, yet the app i'm trying won't start on bare wine.
The first error i get clearly points to XNA framework, after getting it mono request bumps up.

well, i'm trying to run "Magicka", and mono is not mentioned in appDB (https://appdb.winehq.org/objectManager. ... &iId=22627)
thou since it should be installed by wine automatically ..
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: installing wine-mono with wine 1.9.5

Post by dimesio »

The first error i get clearly points to XNA framework, after getting it mono request bumps up.
Have you tried installing whatever version of .NET this game requires? If the answer is yes, and you used winetricks, then that's why wine-mono is not installed: it has to be uninstalled before installing native .NET, and winetricks does that for you.
thou since it should be installed by wine automatically ..
An easy way to check if it is installed is to run

Code: Select all

wine uninstaller
If wine-mono is installed, it will be on the list.
randmax
Level 1
Level 1
Posts: 6
Joined: Sun Mar 06, 2016 5:47 pm

Re: installing wine-mono with wine 1.9.5

Post by randmax »

There is only Wine Gecko (32-bit) on the list.

Is wine-mono a system-wide installation?
If not, i tried both, wineprefix witn .net and without one, with same outcome.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: installing wine-mono with wine 1.9.5

Post by dimesio »

What does

Code: Select all

wine64 uninstaller
show?
randmax
Level 1
Level 1
Posts: 6
Joined: Sun Mar 06, 2016 5:47 pm

Re: installing wine-mono with wine 1.9.5

Post by randmax »

It is empty in there
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: installing wine-mono with wine 1.9.5

Post by dimesio »

If wine-mono is not installed on your system, Wine should download it for you when it creates a new wineprefix. You should get a popup message about that. Do you get one? Post terminal output from creating a new wineprefix.

Are you using a distro package or did you build Wine yourself?
randmax
Level 1
Level 1
Posts: 6
Joined: Sun Mar 06, 2016 5:47 pm

Re: installing wine-mono with wine 1.9.5

Post by randmax »

Log from creating a new wineprefix
http://pastebin.com/KKfRf4mZ

I build wine myself and could mess something up, yet, some apps do work on this build
Here is build script I used http://pastebin.com/mESVnriT
I'll try binary package provided in downloads
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: installing wine-mono with wine 1.9.5

Post by Bob Wya »

randmax wrote:Log from creating a new wineprefix
http://pastebin.com/KKfRf4mZ

I build wine myself and could mess something up, yet, some apps do work on this build
Here is build script I used http://pastebin.com/mESVnriT
I'll try binary package provided in downloads
Hmmm. That's a very short build script. Very, very short. :shock:

Here's a link to a folder of my wine build scripts for Gentoo (that are in the 3rd party Layman repositories for Gentoo). They are pretty readable - despite there being some (external) BASH functions to do the heavy lifting (Gentoo's so called eclass's)...

All you have to do is search for the phrase mono in the ebuild and you'd see that your Slack build script is missing a tonne of steps... Like (for starters) downloading the actual mono .msi installer!

This bit:

Code: Select all

MV="4.5.6"
...
mono? ( https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
Means download the Wine mono .msi installer, version 4.5.6, to a cache folder (if mono support is enabled).

This bit:

Code: Select all

$(use_enable mono mscoree)
means specify the --enable-mscoree configure flag (if mono support is enabled).

This bit:

Code: Select all

	if use mono ; then
		insinto /usr/share/wine/mono
		doins "${DISTDIR}"/wine-mono-${MV}.msi
	fi
If mono support is enabled:
  1. Put all (non-specific) files into the directory /usr/share/wine/mono
  2. Install the previously downloaded mono installer .msi file version "${MV}"=4.5.6 into this directory.
So your mono problem is easily fixed... But I suspect that you'll run into some other issues with that Slack build script though!! :lol:

Bob
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: installing wine-mono with wine 1.9.5

Post by dimesio »

Bob Wya wrote: If mono support is enabled:
  1. Put all (non-specific) files into the directory /usr/share/wine/mono
  2. Install the previously downloaded mono installer .msi file version "${MV}"=4.5.6 into this directory.
The current wine-mono version is 4.6.0, and the original post that it was in /usr/share/wine/mono.
randmax wrote:I build wine myself and could mess something up, yet, some apps do work on this build
Here is build script I used http://pastebin.com/mESVnriT
One thing did just occur to me: in building 1.9.5 in a WoW64 setup, as your script does, you would have run into https://bugs.winehq.org/show_bug.cgi?id=40253, and the 32 bit side of the build would have failed. That's now fixed in git, so try with that.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: installing wine-mono with wine 1.9.5

Post by Bob Wya »

dimesio wrote: The current wine-mono version is 4.6.0, and the original post that it was in /usr/share/wine/mono.
Thanks!! I'll fix that this afternoon... :shock:
Locked