SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
... 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
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?
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.
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:
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"?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.