LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-08-2018, 10:09 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
WINE for Slackware 14.2 (64 bit)?


I installed wine from the SBo repository on my Slackware64 14.2 system. At first it would not build saying I needed 32bit libraries. So, I installed AlienBob's multilib-14.2 package and then the wine package installed. Unfortunately the wine executable was ELF 32bit which, I assume, will not run 64bit Windows programs (correct me if I'm wrong).

So, after finding this thread:
https://www.linuxquestions.org/quest...it-4175586933/, I uninstalled the SBo wine and installed AlienBob's wine-2.21-x86_64-1alien.txz (but did not uninstall the multilib package). However, the wine executable is still only 32bit.

Did I do Something wrong?
 
Old 02-08-2018, 10:59 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I think AlienBob's wine should be a 64-bit compatible build with wine-staging and d3d9 patches. A lot of windows 64-bit programs really still require 32-bit support so wine will need to be a shared 32-bit and 64-bit package which requires multilib. You can still create a 64-bit wine prefix.

Code:
WINEARCH=win64 WINEPREFIX=/path/to/wine-prefix winecfg
And then you can run a 64-bit .exe with that prefix.
Code:
cd /path/to/windows/program/
export WINEARCH=win64
export WINEPREFIX=/path/to/wine-prefix
wine64 foo.exe
Note that I have seen programs in wine crash when not run from the correct directory.

Last edited by orbea; 02-09-2018 at 07:46 AM. Reason: Fix wine binary name to wine64
 
1 members found this post helpful.
Old 02-08-2018, 11:30 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
FWIW I have yet to come across a windows game that will not run with multilib wine, though I prefer native Linux. Note that if you look in $HOME/.wine/drive_c/windows you will see both a "System" and a "System32" folder that covers all the bases.
 
Old 02-08-2018, 11:32 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Alien Bob's 64-bit WINE package will run both 32-bit and 64-bit Windows programs.

This is a good program to test it with:

http://www.7-zip.org/download.html
 
Old 02-09-2018, 03:53 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks all. I tried dugan's suggestion of 7zip. I downloaded the 64bit version and first ran 'wine 7z1801-x64.exe' which did a lot of preliminary setup for wine, then installed the program in ~/.wine/drive_c/Program Files/7-Zip. I then ran

wine C:\\Program\ Files\\7-Zip\\7z.exe

which generated the warnings shown below, but then did run the 7z.exe program. Since that program is 64 bit, I guess it does work to run 64bit programs. I don't quite get how a 32bit wine can run 64bit programs, but I guess you learn something new every day. I'll do more experimenting with some more complex packages with Windows GUI and post back.
Code:
$ wine C:\\Program\ Files\\7-Zip\\7z.exe
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
fixme:winediag:start_process Wine Staging 2.21 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
Are these warnings anything to worry about? If so, advice on what to do? If not, can I suppress these warnings?

Last edited by mfoley; 02-09-2018 at 03:54 AM.
 
1 members found this post helpful.
Old 02-09-2018, 04:20 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by mfoley View Post
Are these warnings anything to worry about? If so, advice on what to do? If not, can I suppress these warnings?
Here's Pat Volkerding explaining these warnings and the fix: https://www.linuxquestions.org/quest...7/#post4220946
 
1 members found this post helpful.
Old 02-09-2018, 04:20 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by mfoley View Post
I don't quite get how a 32bit wine can run 64bit programs
My package contains both 32bit and 64bit wine binaries.
 
Old 02-09-2018, 08:15 AM   #8
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
The SBo Wine also works fine on multilib Slackware. Not sure if it will run 64 bit Windows programs.

Edit: I guess not. I just tried 7zip 64 bit and it didn't work.

Last edited by montagdude; 02-09-2018 at 08:18 AM.
 
Old 02-09-2018, 10:19 AM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Alien Bob View Post
Here's Pat Volkerding explaining these warnings and the fix: https://www.linuxquestions.org/quest...7/#post4220946
Vokerding's suggested solution is:
Quote:
... create or edit /etc/sysctl.conf with this contents:
vm.mmap_min_addr=0

Note that this will open up a whole range of possible kernel attacks that can allow local users to root your machine.
That last bit is somewhat disconcerting. This is a production workstation in a pension fund administrator office with a need for security (hence experimenting with Linux versus Windows). trying various Windows programs with wine give lots of messages anyway, mainly"fixme:". Can I just ignore these messages or, if run from KDE, redirect stderr?
Quote:
Originally Posted by Alien Bob View Post
My package contains both 32bit and 64bit wine binaries.
After reading the above I search the system and do see a /usr/bin/wine64. So how does that work when I run 'wine pathTo32bit.exe'? Does the 32 wine detect the target is 64 bits and launch wine64?

More testing. I thought I'd try something a bit more substantial than 7zip, so I tried installing QuickBooks 2016, which is what I'm really looking to use wine for. When I ran the installation program I got:
Code:
$ wine Setup_QuickBooksPro2016.exe 
:
err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\Program Files\\Akamai\\Download Manager\\Manager.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\Akamai\\Download Manager\\Manager.exe" failed, status c0000135
I found the MFC42u.dll on one of the other Windows workstations which had QuickBooks,so I copied it to C:\\Program\ Files\ \(86\)\\Akamai\\Download\ Manager, reran the Setup program and that started working. Odd that it didn't have that .dll, but I guess sometimes things have to be manually tweaked.

It downloaded the QuickBooksPro2016.exe file and ran the InstallShield program. It as for the license ID (which I entered) and began installing stuff showing successive progress bars, etc. until it failed. wine halted and I got the following error:
Code:
err:module:import_dll Library MSVCP120D.dll (which is needed by L"C:\\users\\mark\\Temp\\StopQBServer.dll") not found
err:module:import_dll Library MSVCR120D.dll (which is needed by L"C:\\users\\mark\\Temp\\StopQBServer.dll") not found
fixme:msvcrt:__clean_type_info_names_internal (0x216333c) stub
fixme:msvcp:_Mtx_init_in_situ unknown flags ignored: 2
fixme:msvcp:_Mtx_init_in_situ unknown flags ignored: 2
fixme:msvcrt:__clean_type_info_names_internal (0x60926e0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x6292488) stub

Unhandled Exception:
System.Runtime.InteropServices.MarshalDirectiveException: [MarshalAs] attribute required to marshal arrays to managed code.
fixme:msvcrt:__clean_type_info_names_internal (0x378f87c) stub
Unfortunately, I don't find MSVCP120D.dll on any Windows computer. Preliminary searching shows that MSVCP120.dll (no 'D' suffix) is from Visual Studio 2013, but I do have MSVCP120.dll on the wine drive_c. Not sure how to handle this. Has someone run into this before?

Last edited by mfoley; 02-09-2018 at 11:00 AM.
 
Old 02-09-2018, 10:32 AM   #10
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
If you have wine installed you can install PlayOnLinux and install all the 32 bit and 64 bit versions of wine that you want in that users home directory: https://slackbuilds.org/repository/1...ch=playonlinux
 
Old 02-09-2018, 11:12 AM   #11
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by mfoley View Post
More testing. I thought I'd try something a bit more substantial than 7zip, so I tried installing QuickBooks 2016, which is what I'm really looking to use wine for.
Is it really a good idea to rely on Wine in a business environment? If you look here
https://appdb.winehq.org/objectManag...cation&iId=120
https://appdb.winehq.org/objectManag...ation&iId=8075
you can see how different versions of QuickBooks have have fared with Wine, varying from "platinum" to "garbage"!
 
Old 02-09-2018, 12:54 PM   #12
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by mfoley View Post
After reading the above I search the system and do see a /usr/bin/wine64. So how does that work when I run 'wine pathTo32bit.exe'? Does the 32 wine detect the target is 64 bits and launch wine64?
Yes. If WINE is built for SysWow64 support (which Alien Bob's is, and SBo's isn't), then you're supposed to use /usr/bin/wine for both 32-bit and 64-bit .exes.

I have my own SlackBuild for a SysWOW64-enabled WINE build here:

https://github.com/duganchen/my_slac...ine.SlackBuild

Last edited by dugan; 02-09-2018 at 12:59 PM.
 
Old 02-09-2018, 03:33 PM   #13
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by DavidMcCann View Post
Is it really a good idea to rely on Wine in a business environment? If you look here
https://appdb.winehq.org/objectManag...cation&iId=120
https://appdb.winehq.org/objectManag...ation&iId=8075
you can see how different versions of QuickBooks have have fared with Wine, varying from "platinum" to "garbage"!
I'm just doing testing at the moment -- experimenting with different solutions. These include wine, browser-based QuickBooks, and alternatives like Traverse which run on Linux, Windows and MAC. I'm in the process of trying to answer your question about whether it's a "good idea" or not.

Your links must be somewhat dated as they only go as recent as Version 2013 and I'm running 2016. Not sure what e.g. "Test results: 3" means. But still, a useful site.

Meanwhile, things are not working well with wine and QuickBooks. I've tried reinstalling QuickBooks several time and now don't even get to the license screen or the installation progress bar like I has yesterday. I do get the install shield program to start, but very quickly while extracting files to install it terminates and the GUI dialog disappears. The wine messages on the Konsole are:
Code:
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00010000-00110000
fixme:nls:GetThreadPreferredUILanguages 00000038, 0x33eab4, 0x33eac8 0x33eabc
fixme:nls:get_dummy_preferred_ui_language (0x38 0x33eab4 0x33eac8 0x33eabc) returning a dummy value (current locale)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:nls:GetThreadPreferredUILanguages 00000038, 0x33eaac, 0x33eac0 0x33eab4
fixme:nls:get_dummy_preferred_ui_language (0x38 0x33eaac 0x33eac0 0x33eab4) returning a dummy value (current locale)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:font:get_outline_text_metrics failed to read full_nameW for font L"Ani"!
fixme:nls:GetThreadPreferredUILanguages 00000038, 0x33f0d8, 0x33f0e8 0x33f0dc
fixme:nls:get_dummy_preferred_ui_language (0x38 0x33f0d8 0x33f0e8 0x33f0dc) returning a dummy value (current locale)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
err:ole:CoGetClassObject class {88d96a05-f192-11d4-a65f-0040963251e5} not registered
err:ole:CoGetClassObject class {88d96a05-f192-11d4-a65f-0040963251e5} not registered
err:ole:create_server class {88d96a05-f192-11d4-a65f-0040963251e5} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {88d96a05-f192-11d4-a65f-0040963251e5} could be created for context 0x17
fixme:ver:GetCurrentPackageId (0x33f5f0 (nil)): stub
fixme:msvcrt:__clean_type_info_names_internal (0x5a429f28) stub
fixme:msvcrt:__clean_type_info_names_internal (0x102a5634) stub
at which point wine is hung and I have to ctrl-C to get back to the command prompt.

Is there something I can do here or is DavidMcCann right and this is just a "bad idea"?

Last edited by mfoley; 02-09-2018 at 03:38 PM.
 
Old 02-09-2018, 03:52 PM   #14
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
It is just a bad idea. I was using QuickBooks 2009 on WinXP. But after moving to Slackware Linux, due to a ransomware virus in 2013, I had the same experience with WINE on same platforms and eventally moved to GNUCash, which does have a business setup ability if your read the manual. I run GNUCash for an online retail business and business uses PayPal for the invoices. The financials are downloaded and import from PayPal for month end processing. It does what I need for my small business, one employee.

Another idea would be, if you have VTx on the CPU, something like VirtualBox, VMWare, or Virt Manager. If you don't have VTx then AQEMU front-end to QEMU. That shouldn't be an issue since you have MS licenses on the current machines which can be migrated to the virtual environment where you can then setup QuickBooks.

HTH Cheers
 
Old 02-09-2018, 05:58 PM   #15
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Me Too

To add to what bamunds wrote ...

I successfully use QuickBooks Accountant version and a few other MS Windows based tools in a VirtualBox WIN 7 guest on several computers (with plenty of RAM) without problems.

My wife runs QuickBooks online successfully but she is often frustrated as they've been changing the interface frequently over the last couple of years. She prefers using the local desktop version of QuickBooks.

Just in case WINE doesn't work out for you.
 
  


Reply

Tags
64bit, slackware 14.2, wine



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] WINE for Slackware 14.2 (64 bit)? TheNutCase Slackware 16 08-15-2016 10:04 AM
Trying to install Wine 1.5.21 on Slackware 14 32-bit mutt4xtreme Linux - Software 2 01-13-2013 11:47 AM
Wine on Slackware 14 64-Bit fatalerror0x00 Slackware 11 11-05-2012 02:48 AM
[SOLVED] Wine on Slackware 64-bit Konphine Linux - General 2 07-19-2011 11:34 PM
Wine 32 bit on Slackware 13 64 bit problems: configure can't find some libraries ozanbaba Slackware 28 11-26-2010 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration