You are not logged in.

#1 2018-05-20 10:16:12

fanis
New Member
Registered: 2018-05-20
Posts: 2

how can I run a 32bit executables?

I installed latetest 64bit bunsenlabs yesterday and trying various games. 32bit games do not run and can not find what I should do.

I have tried:

sudo dpkg --add-architecture i386
sudo apt update

but still 32bit executables do not work.
for example

$ ./PapersPlease 
bash: ./PapersPlease: No such file or directory

this is a strange/stupid error message as there is such file and I am in the right directory of course

papers please (and other 32bit executables) does run fine on the same machine on my old 32bit crunchbang (debian wheezy) installation and also runs fine on my other computer with 64bit manjaro installation.

64bit executables run fine on bunsenlabs.

So what is missing that I need to do? I googled with no result sad

Offline

#2 2018-05-20 10:25:38

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: how can I run a 32bit executables?

sudo apt-get install libc6-i386

Then do

ldd ./PapersPlease 

and install any other missing dynamic libraries, or follow the instructions of the software.

Offline

#3 2018-05-20 10:30:38

fanis
New Member
Registered: 2018-05-20
Posts: 2

Re: how can I run a 32bit executables?

nice smile
still does not work but I have progress (did not know about ldd)

$ ldd ./PapersPlease 
	linux-gate.so.1 (0xf77bb000)
	libpthread.so.0 => /lib32/libpthread.so.0 (0xf7786000)
	libdl.so.2 => /lib32/libdl.so.2 (0xf7781000)
	libstdc++.so.6 => not found
	libm.so.6 => /lib32/libm.so.6 (0xf772c000)
	libgcc_s.so.1 => not found
	libc.so.6 => /lib32/libc.so.6 (0xf7575000)
	/lib/ld-linux.so.2 (0xf77bd000)

how do I find these libraries?

Last edited by fanis (2018-05-20 10:31:18)

Offline

#4 2018-05-20 10:41:34

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: how can I run a 32bit executables?

sudo apt-get install lib32gcc1 lib32stdc++6

Going from the Arch Linux ports definition @ https://aur.archlinux.org/packages/papersplease/, you're probably also going to need at least

libgl1-mesa-glx:i386
libgl1-mesa-glx
libasound2:i386
libpulse0:i386

Offline

#5 2018-05-20 11:48:22

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: how can I run a 32bit executables?

fanis wrote:

nice smile
still does not work but I have progress (did not know about ldd)

$ ldd ./PapersPlease 
	linux-gate.so.1 (0xf77bb000)
	libpthread.so.0 => /lib32/libpthread.so.0 (0xf7786000)
	libdl.so.2 => /lib32/libdl.so.2 (0xf7781000)
	libstdc++.so.6 => not found
	libm.so.6 => /lib32/libm.so.6 (0xf772c000)
	libgcc_s.so.1 => not found
	libc.so.6 => /lib32/libc.so.6 (0xf7575000)
	/lib/ld-linux.so.2 (0xf77bd000)

how do I find these libraries?

Try searching 'debian package libstdc++.so.6' and 'debian package libgcc_s.so.1'.

Based on search results, and looking for 32bit (Intel!) architecture, I should say you should install:

$ sudo apt-get install lib32stdc++6 libgcc1

or

$ sudo apt-get install lib32stdc++6 libgcc1:i386

Note: I'm not in position to test it ... therefore, be careful and don't do it if not sure how to revert your system back to previous state. You can always try to add switch '-s' to the 'apt-get' to simulate what will happen. I have a rule that if attempted install will not try to remove existing packages, and will install not too many dependencies, then it is probably safe to install the particular package. Also, if possible try it inside virtual machine.

(For example: of two packages above, on my setup I already have the second one, and the first one will install another two as dependency, only. I would consider it safe to install them.)

Last edited by iMBeCil (2018-05-20 11:49:34)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#6 2018-05-20 12:41:47

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: how can I run a 32bit executables?

@OP: this

$ ./PapersPlease 
bash: ./PapersPlease: No such file or directory

actually may mean that the 'PapersPlease' is not marked as executable ... if you are positively definitely sure that you are in right directory.

You can check it with

$ ls -Al | grep Papers

(in the correct dir, of course).

Last edited by iMBeCil (2018-05-20 12:44:26)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#7 2018-05-20 13:03:15

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: how can I run a 32bit executables?

iMBeCil wrote:

actually may mean that the 'PapersPlease' is not marked as executable ... if you are positively definitely sure that you are in right directory.

No.

The message in this case will be 'permission denied'.

Offline

#8 2018-05-20 15:37:31

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: how can I run a 32bit executables?

^Quite ... you are right. My bad.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#9 2018-05-21 05:42:11

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,669
Website

Re: how can I run a 32bit executables?

multiarch-support is no longer needed in Debian Stretch?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#10 2018-05-21 06:02:25

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: how can I run a 32bit executables?

^ The OP claims to have already done that but I suppose we should check:

dpkg --print-foreign-architectures

Offline

Board footer

Powered by FluxBB