LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-22-2010, 03:45 PM   #1
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 276

Rep: Reputation: 2
Running 64 and 32 bit win. apps under same wine: possible?


Hello,

I attempted to use "wine" to run a self-extracting executable
of drivers for HP G4050 scanner (which, unfortunately is
unsupported by "SANE"). I've got an error:

"Trying to load PE image for unsupported architecture (AMD-64)".

Remembering that when I run wine as a root it uses wine64,
I attempted the same as a root and got a similar error only
this time on another file and with (i386) architecture. Frome
some searching I understand that 32 bit wine can only run 32 bit
windows apps and 64 bit wine can only run 64 bit windows apps
(is that understanding correct?).

And since the HP drivers archive/installer contains what looks like
a mix of 32 and 64 bits executables, it seems the only way to avoid
the type of failures I had is to run wine capable of dealing with
both 32 and 64 bits windows executables.

Is it possible?
If yes: how?
If no: what other options exist (apart from installing the whole
windows under KVM)?

TIA,
kaza.
 
Old 05-23-2010, 04:42 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,994

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
Quote:
Originally Posted by kaza View Post
Hello,
Frome some searching I understand that 32 bit wine can only run 32 bit
windows apps and 64 bit wine can only run 64 bit windows apps
(is that understanding correct?).
Yes, that is what I read also. There are 32 bit versions of windows, which don't run 64 bit programs (xp, for instance). Get a driver for one of those, and it will be 32 bit. Even m$ do not make such fundamental mistakes. Stick with 32 bit if you can in wine, by which stage there'll be a bodge of some sort worked out.
 
Old 05-23-2010, 03:29 PM   #3
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 276

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by business_kid View Post
Yes, that is what I read also. There are 32 bit versions of windows, which don't run 64 bit programs (xp, for instance). Get a driver for one of those, and it will be 32 bit. Even m$ do not make such fundamental mistakes. Stick with 32 bit if you can in wine, by which stage there'll be a bodge of some sort worked out.
Thanks,

My particular problem is a windows self-extracting archive + installer:
it attempts to execute various executables extracted from the
archive (itself). Some of them are 32 bits, some are 64 bits.
What driver should I get and how should I tweak the wine to
use it to allow both 32 and 64 components of the archive
to be run by the installer?

TIA,
kaza.
 
Old 05-24-2010, 05:33 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,994

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
Quote:
Originally Posted by kaza View Post
Thanks,

My particular problem is a windows self-extracting archive + installer:
it attempts to execute various executables extracted from the
archive (itself). Some of them are 32 bits, some are 64 bits.
What driver should I get
I would suggest to try a 32 bit version of wine first. Presuming you get a driver for XP, which was all 32 bit, it should work or fail safe install 32 bit. And don't let the driver boss you around. That was made with pkzip & zip2exe. So you can simply run
unzip -d your_driver.exe
and it should uninstall, but not automagically run anything.

Quote:
Originally Posted by kaza View Post
and how should I tweak the wine to
use it to allow both 32 and 64 components of the archive
to be run by the installer?
That you have the answer to in previous posts. It can't be done atm. Rewrite wine to be a multilib version :-D.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues running 32-bit apps on 64-bit (Opera, Skype) lydgate Linux - Software 5 05-28-2016 02:57 PM
Running 32 bit apps on 64 bit OS prejudged_fire Linux - Software 2 02-16-2008 10:55 AM
Mandriva 64-bit running 32-bit apps sleepykit Mandriva 1 03-21-2007 08:44 AM
wine: installing win apps. using wine on mandrake10 dexmax Linux - Newbie 2 09-05-2005 05:40 PM
wine setup for ethernet for win apps abs Linux - Software 0 10-27-2003 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration