Use 32-bit library on 64-bit system
-
- Level 2
- Posts: 17
- Joined: Sat Jan 15, 2011 7:40 am
Use 32-bit library on 64-bit system
When running GZDoom.exe (I guess every OpenGL app) I get the error
libGL.so.1: wrong ELF-class ELFCLASS64
This is expected because it uses /usr/lib/libGL.so.302.17 which is a 64-bit binary.
I guess it would work if I could make wine use /usr/lib32/libGL.so whcih reffers to a 32-bit binary. But how?
$ uname -a
Linux R3-S6 3.2.0-23-lowlatency #31-Ubuntu SMP PREEMPT Wed Apr 11 02:24:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ wine --version
wine-1.4
$ file /bin-win32/GZDoom/gzdoom.exe
/bin-win32/GZDoom/gzdoom.exe: PE32 executable (GUI) Intel 80386, for MS Windows
libGL.so.1: wrong ELF-class ELFCLASS64
This is expected because it uses /usr/lib/libGL.so.302.17 which is a 64-bit binary.
I guess it would work if I could make wine use /usr/lib32/libGL.so whcih reffers to a 32-bit binary. But how?
$ uname -a
Linux R3-S6 3.2.0-23-lowlatency #31-Ubuntu SMP PREEMPT Wed Apr 11 02:24:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ wine --version
wine-1.4
$ file /bin-win32/GZDoom/gzdoom.exe
/bin-win32/GZDoom/gzdoom.exe: PE32 executable (GUI) Intel 80386, for MS Windows
-
- Level 2
- Posts: 17
- Joined: Sat Jan 15, 2011 7:40 am
-
- Level 2
- Posts: 17
- Joined: Sat Jan 15, 2011 7:40 am
-
- Level 2
- Posts: 17
- Joined: Sat Jan 15, 2011 7:40 am
-
- Level 2
- Posts: 17
- Joined: Sat Jan 15, 2011 7:40 am
Solution
The problem is solved by first setting LD_LIBRARY_PATH=/usr/lib32/
I do not think this is related to the ubuntu 12.04 topic. It is just a matter of choosing correct libraries: For a 32-bit executable, the 32-bit library is needed.
I do not think this is related to the ubuntu 12.04 topic. It is just a matter of choosing correct libraries: For a 32-bit executable, the 32-bit library is needed.
Re: Solution
It is definitely a part of Ubuntu's multiarch problems. https://bugs.launchpad.net/ubuntu/+sour ... bug/944321milasudril wrote: I do not think this is related to the ubuntu 12.04 topic.