Problem with wine64

Questions about Wine on Linux
Locked
yep
Level 1
Level 1
Posts: 5
Joined: Fri Nov 18, 2016 6:16 pm

Problem with wine64

Post by yep »

I follow the steps on https://wiki.winehq.org/Building_Wine#Shared_WoW64 to install wine to my 64bit Linux6.8 server.

All seems to go well and wine has been installed. While wine is not an available command, wine64 does seem to work, that "wine64 --version" will return the version and "wine64 notepad" will open the notepad. However nothing else seems to work.

I try to run putty.exe downloaded from http://www.putty.org/, nothing happens. Running "wine64 putty.exe" and it just returns without doing anything. Try other .exe and all goes the same.

What am I missing? Thanks.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with wine64

Post by dimesio »

It sounds like you're missing the 32 bit side. Did you build and install that?
yep
Level 1
Level 1
Posts: 5
Joined: Fri Nov 18, 2016 6:16 pm

Re: Problem with wine64

Post by yep »

I guess that is true.

A correction, the way I install is:
1. Download the version 1.8.5
2. run ./configure --enable-win64
3. run make
4. run make install

I would get error if I don't use the --enable-win64 option
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

So what 32bit lib do I need to install? Thank you.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with wine64

Post by dimesio »

So in other words, you didn't actually follow the instructions you claimed to have followed. The wiki page makes it very clear that both 32 and 64 bit Wine have to be built.

You need to install the 32 bit versions of everything you needed to build 64 bit Wine.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with wine64

Post by Bob Wya »

yep wrote:I guess that is true.

A correction, the way I install is:
1. Download the version 1.8.5
2. run ./configure --enable-win64
3. run make
4. run make install

I would get error if I don't use the --enable-win64 option
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

So what 32bit lib do I need to install? Thank you.
If you're interested I've a dual-arch Chroot solution to building multilib Wine on Ubuntu - up on Github ...

Basically the 600-foot view of the required build steps are:
  1. configure 32-bit wine
  2. compile 32-bit wine
  3. configure 64-bit wine
  4. compile 64-bit wine
  5. configure multilib wine
  6. cross-compile multilib wine
  7. install multilib wine
  8. install 64-bit wine
It is required to use (at least) a 32-bit Chroot / LXC build environment (although it's cleaner to use a 64-bit Chroot / LXC build environment as well). This arises from the fact that the Debian/Ubuntu 64-bit repository support for 32-bit development libraries is quite limited.

Bob
yep
Level 1
Level 1
Posts: 5
Joined: Fri Nov 18, 2016 6:16 pm

Re: Problem with wine64

Post by yep »

I'm running on Red Hat Enterprise Linux Server release 6.8 64bit, and I think I'm stuck in building the 32bit wine. It said configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

I know how to install a library with yum, but which 32-bit libraries do I need? Is there an easy way to install the so-called "32-bit development libraries" as a group? Thank you very much.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with wine64

Post by dimesio »

User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with wine64

Post by Bob Wya »

yep wrote:I'm running on Red Hat Enterprise Linux Server release 6.8 64bit, and I think I'm stuck in building the 32bit wine. It said configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

I know how to install a library with yum, but which 32-bit libraries do I need? Is there an easy way to install the so-called "32-bit development libraries" as a group? Thank you very much.
Not much of RHEL / CentOS expert, so I can only refer you to: It appears that on RHEL / CentOS 6 - you can build a pure Syswow / multilib Wine - without the cross-compilation.
As I remember reading, some time back, 32-bit support is pretty much dropped in RHEL 7.

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

Re: Problem with wine64

Post by dimesio »

Those instructions are incorrect for 64 bit systems--they will only build pure 64 bit Wine, which is useless. Please don't refer people to them.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with wine64

Post by Bob Wya »

dimesio wrote:
Those instructions are incorrect for 64 bit systems--they will only build pure 64 bit Wine, which is useless. Please don't refer people to them.
Sorry, yeah I noticed that but couldn't edit my post... Good catch!

Bob
yep
Level 1
Level 1
Posts: 5
Joined: Fri Nov 18, 2016 6:16 pm

Re: Problem with wine64

Post by yep »

Thank you all for the information.

As trying to follow the instruction on https://wiki.winehq.org/CentOS/RHEL, I install all 32-bit development libraries (I found a post online with all lib listed) and I can configure wine without "--enable-win64", however the installation is still unsuccessful:

1. I "make uninstall" the old 64bit installation (with "--enable-win64") I did
2. I tried "yum install epel-release" then "yum install wine", but no epel-release nor wine pacakge found
3. I tried to build from the source.
3.1 configure 64bit wine using "./configure --enable-win64"
3.2 make
3.3 in a different directory, configure 32bit wine using "./configure --with-wine64=<the 64bit build dir>"
3.4 make --> error complaining can not make 32bit in same directory tree

What am I missing?

Also if I just want to run 32bit app like putty, there is no need to install 64bit wine, is that true? Thank you very much.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with wine64

Post by dimesio »

yep wrote: Also if I just want to run 32bit app like putty, there is no need to install 64bit wine, is that true?
That is true.
yep
Level 1
Level 1
Posts: 5
Joined: Fri Nov 18, 2016 6:16 pm

Re: Problem with wine64

Post by yep »

Great. Thank you. With the hint I figured out why my 32bit installation does not work... I need to delete .wine that setup by my 64bit installation in my home folder. Uninstall does not get rid of that. Now I get the 32bit wine to work.

I'm trying to install MS office via wine, it is telling me that some dll is missing:
err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\users\\peye\\Temp\\inetutil.dll") not found

Some googling show I can install missing dll using winetricks... however I always get timed out, maybe due to the proxy script I'm required to use.

--2016-11-22 04:52:05-- (try: 3) https://web.archive.org/web/https://raw ... les/LATEST
Connecting to web.archive.org|207.241.225.186|:443... failed: Connection timed out.
Giving up.

Can I just copy the dll from windows directly or somewhere else? If not, what can I do since winetricks cannot connect? Thanks.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with wine64

Post by dimesio »

You can simply copy mfc42 from a Windows install if it's there, but it's not something that ships with Windows--it would have to have been installed by some app.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with wine64

Post by Bob Wya »

yep wrote:Great. Thank you. With the hint I figured out why my 32bit installation does not work... I need to delete .wine that setup by my 64bit installation in my home folder. Uninstall does not get rid of that. Now I get the 32bit wine to work.

I'm trying to install MS office via wine, it is telling me that some dll is missing:
err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\users\\peye\\Temp\\inetutil.dll") not found

Some googling show I can install missing dll using winetricks... however I always get timed out, maybe due to the proxy script I'm required to use.

--2016-11-22 04:52:05-- (try: 3) https://web.archive.org/web/https://raw ... les/LATEST
Connecting to web.archive.org|207.241.225.186|:443... failed: Connection timed out.
Giving up.

Can I just copy the dll from windows directly or somewhere else? If not, what can I do since winetricks cannot connect? Thanks.
I can download it here:

Code: Select all

Using winetricks 20161107 - sha1sum: 9a08fd86198fcde30269d54e7701035bf00df8d6 with wine-1.9.23 (Staging)

--2016-11-24 21:20:24--  http://download.microsoft.com/download/vc60pro/Update/2/W9XNT4/EN-US/VC6RedistSetup_deu.exe
Resolving download.microsoft.com... 95.101.59.174, 2a02:26f0:f4:186::e59, 2a02:26f0:f4:19f::e59, ...
Connecting to download.microsoft.com|95.101.59.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1837888 (1.8M) [application/octet-stream]
Saving to: ‘VC6RedistSetup_deu.exe’

Executing mkdir -p /home/robert_gentoo/.cache/winetricks/vcrun6
Executing cd /home/robert_gentoo/.cache/winetricks/vcrun6
Downloading http://download.microsoft.com/download/vc60pro/Update/2/W9XNT4/EN-US/VC6RedistSetup_deu.exe to /home/robert_gentoo/.cache/winetricks/vcrun6
Executing cd /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/sample_vb6_application_32/drive_c/Sample_Code
Executing wine /home/robert_gentoo/.cache/winetricks/vcrun6/vc6redistsetup_deu.exe /T:C:\windows\Temp\_mfc42 /c
Executing cabextract -q /home/robert_gentoo/.cache/winetricks/vcrun6/vcredist.exe -d /home/robert_gentoo/.wine/dosdevices/c:/windows/system32 -F mfc42*.dll
On your system the winetricks auto-updater is failing and the script just bails (apparently). So I guess you need to fix your networking issues...
Or just disable the winetricks autoupdate... 8)

Code: Select all

mkdir -p ~/.config/winetricks
touch ~/.config/winetricks/disable-latest-version-check
Bob
Locked