Re: Running 32 bit apps on 64 bit debian

2023-11-19 Thread Greg Wooledge
On Sat, Nov 18, 2023 at 11:58:55PM -0800, Van Snyder wrote:
> I'm trying run 32 bit LinuxSusser on 64 bit Debian 12 bookworm.

You need to install some libraries and stuff.  Instructions are at
 but the short version is:

dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386

> When I try to run it, I get
> ./LinuxSusser: Command not found.
> 
> "ls -l ./LinuxSusser" respnds
> -rwxr-xr-x 1 vsnyder vsnyder 12698092 Feb  8  2013  LinuxSusser*
> 
> "dpkg --print-architecture" responds amd64
> "dpkg --print-foreign-architectures" responds i386

Oh... did you already do *part* of the Multiarch setup, but not all of
it?  That would have been useful information to include.

> "file ./LinuxSusser" responds
> ./LinuxSusser:  ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for
> GNU/Linux 2.6.0, stripped
> 
> but "ldd ./LinuxSusser" responds "not a dynamic executable"

Once the /lib/ld-linux.so.2 interpreter is there, you should get more
informative results from ldd.



Re: Running 32 bit apps on 64 bit debian

2023-11-19 Thread tomas
On Sat, Nov 18, 2023 at 11:58:55PM -0800, Van Snyder wrote:
> I'm trying run 32 bit LinuxSusser on 64 bit Debian 12 bookworm.
> 
> When I try to run it, I get
> ./LinuxSusser: Command not found.

This is misleading: the "command not found" refers to the "interpreter"
tasked with running LinuxSusser, which would be...

> "ls -l ./LinuxSusser" respnds
> -rwxr-xr-x 1 vsnyder vsnyder 12698092 Feb  8  2013  LinuxSusser*
> 
> "dpkg --print-architecture" responds amd64
> "dpkg --print-foreign-architectures" responds i386
> 
> "file ./LinuxSusser" responds
> ./LinuxSusser:  ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for
> GNU/Linux 2.6.0, stripped

...which in your case would most probably be /lib32/ld-linux.so. You want
to have at least a 32 bit version of libc installed (e.g. libc6-i386 or
something equivalent).

I have no idea what LinuxSusser is, but whoever you got that from should
be at least as fair to tell you what packages/libraries it depends on.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Running 32 bit apps on 64 bit debian

2023-11-19 Thread Alexander V. Makartsev

On 19.11.2023 12:58, Van Snyder wrote:

I'm trying run 32 bit LinuxSusser on 64 bit Debian 12 bookworm.

When I try to run it, I get
./LinuxSusser: Command not found.

"ls -l ./LinuxSusser" respnds
-rwxr-xr-x 1 vsnyder vsnyder 12698092 Feb  8  2013  LinuxSusser*

"dpkg --print-architecture" responds amd64
"dpkg --print-foreign-architectures" responds i386

"file ./LinuxSusser" responds
./LinuxSusser:  ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for
GNU/Linux 2.6.0, stripped

but "ldd ./LinuxSusser" responds "not a dynamic executable"

I used to run it in Debian 10.

What am I doing wrong?


It starts on my "bookworm" machine.
Your executable probably got corrupted somehow.
Try to download it again from author's website [1]. There you will find 
a link to DropBox file sharing service.

Install dependencies (64bit and 32bit) for this program:

   $ sudo apt install libglib2.0-0 libpango-1.0-0 libatk1.0-0 openssl
   zlib1g libexpat1

   $ sudo apt install libglib2.0-0:i386 libpango-1.0-0:i386
   libatk1.0-0:i386 zlib1g:i386 libexpat1:i386

A normal output from "ldd" and "file" for reference [2].


[1] https://www.madoverlord.com/wiki/doku.php/madoverlord:projects-sudoku
[2] https://paste.debian.net/plain/1298552
--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄

Re: Running 32 bit apps on 64 bit debian

2023-11-19 Thread Brian Sammon
On Sat, 18 Nov 2023 23:58:55 -0800
Van Snyder  wrote:

> I'm trying run 32 bit LinuxSusser on 64 bit Debian 12 bookworm.

Have you tried running a 32-bit app that was installed via apt/dpkg ?

If not, I'd recommend installing a simple 32-bit app.  Two things that may 
happen:
* it may cause the package manager to install some other packages that will fix 
the problem affecting 32-bit LinuxSusser.
* after installing the 32-bit app, that doesn't run either, in which case 
investigating why the fully-debian-supported 32-bit app doesn't work, may be a 
useful next step.

For simplicity's sake, I'd recommend a 32-bit package that you don't already 
have a 64-bit version installed for, that also has very few dependencies.

Some candidates I would suggest are:
ftp
dc
lsdvd

I strongly suspect there's at least one of those three that you don't already 
have installed as a 64-bit package, and all three have relatively few 
dependencies.



Running 32 bit apps on 64 bit debian

2023-11-18 Thread Van Snyder
I'm trying run 32 bit LinuxSusser on 64 bit Debian 12 bookworm.

When I try to run it, I get
./LinuxSusser: Command not found.

"ls -l ./LinuxSusser" respnds
-rwxr-xr-x 1 vsnyder vsnyder 12698092 Feb  8  2013  LinuxSusser*

"dpkg --print-architecture" responds amd64
"dpkg --print-foreign-architectures" responds i386

"file ./LinuxSusser" responds
./LinuxSusser:  ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for
GNU/Linux 2.6.0, stripped

but "ldd ./LinuxSusser" responds "not a dynamic executable"

I used to run it in Debian 10.

What am I doing wrong?