How to install wine-gecko in /usr/share/wine/gecko

Questions about Wine on Linux
Locked
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

Hi,
here you state, gecko should be installed in /usr/share/wine/gecko to avoid to install gecko in every WINEPREFIX.
On my system there is no path /usr/share/wine, but there is /opt/wine-stable.

How to do this in correct way?

I'm using winehq-stable 5.0.0 in Ubuntu 18.04.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by dimesio »

/opt/wine/gecko
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

dimesio wrote: Fri Feb 14, 2020 11:41 am /opt/wine/gecko
Hm, what you want to say me?
This folder does not exist, but /opt/wine-stable

Also I find:

Code: Select all

ich@T500:~$ ls -l .wine/drive_c/windows/system32/gecko/
insgesamt 28
drwxrwxr-x 3 ich ich 4096 Jun 15  2013 1.4
drwxrwxr-x 3 ich ich 4096 Mai 26  2014 2.21
drwxrwxr-x 3 ich ich 4096 Aug 14  2015 2.36
drwxrwxr-x 3 ich ich 4096 Sep  1  2015 2.40
drwxrwxr-x 3 ich ich 4096 Apr 24  2017 2.47
drwxr-xr-x 3 ich ich 4096 Feb 14 16:42 2.47.1
drwxrwxr-x 2 ich ich 4096 Jun 15  2013 plugin
ich@T500:~$ ls -l .wine/drive_c/windows/syswow64/gecko/
insgesamt 24
drwxrwxr-x 3 ich ich 4096 Jun 15  2013 1.4
drwxrwxr-x 3 ich ich 4096 Mai 26  2014 2.21
drwxrwxr-x 3 ich ich 4096 Aug 14  2015 2.36
drwxrwxr-x 3 ich ich 4096 Sep  1  2015 2.40
drwxrwxr-x 3 ich ich 4096 Apr 24  2017 2.47
drwxrwxr-x 2 ich ich 4096 Jun 15  2013 plugin
ich@T500:~$ ls -l .wine32/drive_c/windows/system32/gecko/
insgesamt 16
drwxrwxr-x 3 ich ich 4096 Aug 16  2015 2.36
drwxrwxr-x 3 ich ich 4096 Sep 17  2015 2.40
drwxrwxr-x 3 ich ich 4096 Apr 24  2017 2.47
drwxrwxr-x 2 ich ich 4096 Aug 16  2015 plugin
So I also would like to know, how I can clean up without destroying something.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by dimesio »

You have to create the folder.
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by Gcenx »

As dimesio says you create the folders

Then extract into the location, here ld what I have for example;

Code: Select all

/opt/wine/gecko/wine-gecko-2.47.1-x86/
/opt/wine/gecko/wine-gecko-2.47.1-x86_64/
You can also doe the same for mono;

Code: Select all

/opt/wine/mono/wine-mono-4.9.4/
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

OK, now I understand, I should extract the tar balls into those directories and then I can delete:

Code: Select all

~..wine/drive_c/windows/system32/gecko
~..wine/drive_c/windows/syswow64/gecko
~..wine32/drive_c/windows/system32/gecko
~..wine/drive_c/windows/mono
~..wine32/drive_c/windows/mono
Right?
But what's about? :

Code: Select all

**/gecko//plugin
Why aren't those packages in the repository https://dl.winehq.org/wine-builds/ubuntu ?
It would be convenient to install them from there with:

Code: Select all

sudo apt install wine-gecko
sudo apt install wine-mono
username77
Newbie
Newbie
Posts: 1
Joined: Fri Feb 21, 2020 12:36 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by username77 »

i'm in the same situation as the original poster.
I have VERY limited experience with working from the command line/terminal, so if someone could give me the exact code I need to run to create that directory under Ubuntu 18.04, I would greatly appreciate it.
I thought maybe I could just create the /wine/gecko folders under /opt with right clicking and then clicking 'new folder' but my file manager has that option grayed out here.
thanks!
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

Here are the commands (give it a try):
https://wiki.ubuntuusers.de/Wine/#NET-u ... rweiterung
This must be done before the first run of Wine, otherwise first delete ~/.wine.

Alternatively you could start your file manager with:

Code: Select all

sudo -H nautilus /opt ## this starts nautilus with root privileges
Don't miss the `-H`, otherwise you corrupt your nautilus normal settings.
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

Hi again dimesio,
may be you would like to add following commands to https://wiki.winehq.org/Gecko and https://wiki.winehq.org/Mono for convenience:

Code: Select all

cd /opt/wine-stable/share/wine/
sudo mkdir -p gecko mono
wget -O - http://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86.tar.bz2 | sudo tar jxf - -C gecko
wget -O - http://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86_64.tar.bz2 | sudo tar jxf - -C gecko
wget -O - http://dl.winehq.org/wine/wine-mono/5.0.0/wine-mono-5.0.0-x86.tar.xz | sudo tar Jxf - -C mono
wget -O - http://dl.winehq.org/wine/wine-mono/5.1.0/wine-mono-5.1.0-x86.tar.xz | sudo tar Jxf - -C mono
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

dimesio wrote: Fri Feb 14, 2020 11:41 am /opt/wine/gecko
This is the wrong directory.

I've found out, it should be:
/opt/wine-stable/share/wine/gecko
And for mono:
/opt/wine-stable/share/wine/mono
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by Gcenx »

UlfZibis wrote: Sun Jun 21, 2020 3:09 pm
dimesio wrote: Fri Feb 14, 2020 11:41 am /opt/wine/gecko
This is the wrong directory.

I've found out, it should be:
/opt/wine-stable/share/wine/gecko
And for mono:
/opt/wine-stable/share/wine/mono
https://wiki.winehq.org/Mono#Shared_Install

The documentation even explains it’s possible to use /opt/wine/(gecko/mono)
I do this myself to save disk space with all the prefixes I have setup for different games using different wine versions (crossover-wine patched to use the shared wine-gecko)

This also applies for wine-gecko even though it’s not listed on the winehq section
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

Gcenx wrote: Sun Jun 21, 2020 6:32 pm https://wiki.winehq.org/Mono#Shared_Install

The documentation even explains it’s possible to use /opt/wine/(gecko/mono)
I do this myself to save disk space with all the prefixes I have setup for different games using different wine versions (crossover-wine patched to use the shared wine-gecko)
If I installed the binaries there, starting a wine program, I was still prompted to download mono which then was installed in the wineprefix. Same problem with /usr/share/wine/mono .
I'm on Ubuntu. Maybe it's different on an other Linux distribution.
Another solution is to additionally do:
sudo ln -s /opt/wine/mono /opt/wine/gecko /opt/wine-stable/share/wine/
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by Gcenx »

UlfZibis wrote: Sun Jun 21, 2020 6:59 pm
Gcenx wrote: Sun Jun 21, 2020 6:32 pm https://wiki.winehq.org/Mono#Shared_Install

The documentation even explains it’s possible to use /opt/wine/(gecko/mono)
I do this myself to save disk space with all the prefixes I have setup for different games using different wine versions (crossover-wine patched to use the shared wine-gecko)
If I installed the binaries there, starting a wine program, I was still prompted to download mono which then was installed in the wineprefix. Same problem with /usr/share/wine/mono .
I'm on Ubuntu. Maybe it's different on an other Linux distribution.
Another solution is to additionally do:
sudo ln -s /opt/wine/mono /opt/wine/gecko /opt/wine-stable/share/wine/
It sounds like your grabbing the .msi files
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

Gcenx wrote: Sun Jun 21, 2020 7:34 pm It sounds like your grabbing the .msi files
No, I'd extracted the tar files.
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by Gcenx »

UlfZibis wrote: Sun Jun 21, 2020 8:17 pm No, I'd extracted the tar files.
I currently have the following;
/opt/wine/mono/wine-mono-4.9.4 < Wine-Stable-5.0>5.6
/opt/wine/mono/wine-mono-5.0.0 < Wine-Devel-5.7>5.10
/opt/wine/mono/wine-mono-5.1.0 < Wine-Devel-5.11
/opt/wine/gecko/wine-gecko-2.47.1-x86
/opt/wine/gecko/wine-gecko-2.47.1-x86_64

All of the above are detected without issue and not just on Linux but also on macOS
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

Hi again,
I now checked again. On Ubuntu 20.04 WineHQ 5.0.1 is working fine with /opt/wine/mono/wine-mono-5.0.0, without symlinks to /opt/wine-stable/share/wine/mono.

Yesterday, when checking this out, I was on a machine with Ubuntu 16.04. On this machine, this failed. so I did some try and error and in the end it worked with mono-4.9.4 in /opt/wine-stable/share/wine/mono. Now I also tried /opt/wine/mono/wine-mono-4.9.4 and ... it works too there.
So i can see, that I only stumbled over the wrong version of mono. Result:
WineHQ 5.0.1 on Ubuntu 20.04 works with /opt/wine/mono/wine-mono-5.0.0
WineHQ 5.0.1 on Ubuntu 16.04 works with /opt/wine/mono/wine-mono-4.9.4

Thank you for insisting so hard, I can agree to your statement.

OT: Is it possible to run Wine-Stable-5.0 and Wine-Devel-5.11 side by side on the same system. What you then get with? : wine --version
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by spoon0042 »

UlfZibis wrote: Mon Jun 22, 2020 7:23 am OT: Is it possible to run Wine-Stable-5.0 and Wine-Devel-5.11 side by side on the same system. What you then get with? : wine --version
You can install both wine-stable and wine-devel packages at once, yes. (As well as wine-staging.)

Each will install to a separate directory under /opt/. If you want you can install one of the winehq-* packages which will make that the default by placing links in /usr/bin/. For example after installing winehq-stable running just 'wine' in a terminal will run stable, but you can still run devel by specifying the full path '/opt/wine-devel/bin/wine'.

Hopefully that was clear. (Also I thought this was in the faq or somewhere but I can't seem to find it now?)
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by Gcenx »

As spoon0042 said it’s possible.

I don’t use Winehq packages, it’s ether one I’ve compiled or I’m using Lutris/Proton

But yes it’s possible to have multiple wine packages installed as long as the package was configured to account for this, or you build from source and configure it in this manner
UlfZibis
Level 3
Level 3
Posts: 91
Joined: Thu Sep 18, 2014 6:41 pm

Re: How to install wine-gecko in /usr/share/wine/gecko

Post by UlfZibis »

UlfZibis wrote: Mon Jun 22, 2020 7:23 am I now checked again. On Ubuntu 20.04 WineHQ 5.0.1 is working fine with /opt/wine/mono/wine-mono-5.0.0, without symlinks to /opt/wine-stable/share/wine/mono.

Yesterday, when checking this out, I was on a machine with Ubuntu 16.04. On this machine, this failed. so I did some try and error and in the end it worked with mono-4.9.4 in /opt/wine-stable/share/wine/mono. Now I also tried /opt/wine/mono/wine-mono-4.9.4 and ... it works too there.
So i can see, that I only stumbled over the wrong version of mono. Result:
WineHQ 5.0.1 on Ubuntu 20.04 works with /opt/wine/mono/wine-mono-5.0.0
Hi again,

my last statement seems only half right. When I run wineboot, it is satisfied with wine-mono-5.0.0. But when I run a Program e.g. Yellow Leads Extractor it is missing mono:

Code: Select all

:~/.wine32/drive_c/users/ich$ env WINEPREFIX="/home/ich/.wine32" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/ich/.wine32/drive_c/Program\ Files/Yellow\ Leads\ Extractor/YellowLeadsExtractor.exe
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ich@T500:~/.wine32/drive_c/users/ich$ 002d:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.5" not implemented
002d:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.5" not implemented
002d:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
After Installing mono-4.9.4 with

Code: Select all

$ wget -O - https://dl.winehq.org/wine/wine-mono/4.9.4/wine-mono-bin-4.9.4.tar.gz | sudo tar -xzf - -C /opt/wine/mono
this error was gone, even the program does nor really work successful.

What is the miracle, while wineboot accepts mono-5.0.0, but not the program?
Locked