* [Buildroot] How to run an executable file
@ 2022-05-20 5:22 Ugroon} Hackerone
2022-05-20 5:24 ` Baruch Siach via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Ugroon} Hackerone @ 2022-05-20 5:22 UTC (permalink / raw)
To: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 229 bytes --]
Hi,
I have an executable file and when I try to run it with "chmod +x file" and
"./file" I'm getting command not found: ./file error. So I just want to
learn how to execute this file?
Note: The output of "file file" is Elf x64
[-- Attachment #1.2: Type: text/html, Size: 335 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] How to run an executable file
2022-05-20 5:22 [Buildroot] How to run an executable file Ugroon} Hackerone
@ 2022-05-20 5:24 ` Baruch Siach via buildroot
2022-05-20 10:17 ` David Laight
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach via buildroot @ 2022-05-20 5:24 UTC (permalink / raw)
To: Ugroon} Hackerone; +Cc: buildroot
Hi Ugroon,
On Fri, May 20 2022, Ugroon} Hackerone wrote:
> I have an executable file and when I try to run it with "chmod +x
> file" and "./file" I'm getting command not found: ./file error. So I
> just want to learn how to execute this file?
>
> Note: The output of "file file" is Elf x64
The most common reason for "not found" error on running an executable is
that one or more of needed shared library is missing. The command
readelf -d file
will list the needed libraries, as well as more information on the
dynamic section of the ELF executable. Make sure you have all listed
shared libraries.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] How to run an executable file
2022-05-20 5:24 ` Baruch Siach via buildroot
@ 2022-05-20 10:17 ` David Laight
0 siblings, 0 replies; 3+ messages in thread
From: David Laight @ 2022-05-20 10:17 UTC (permalink / raw)
To: 'Baruch Siach', Ugroon} Hackerone; +Cc: buildroot@buildroot.org
From: Baruch Siach
> Sent: 20 May 2022 06:25
>
> On Fri, May 20 2022, Ugroon} Hackerone wrote:
> > I have an executable file and when I try to run it with "chmod +x
> > file" and "./file" I'm getting command not found: ./file error. So I
> > just want to learn how to execute this file?
> >
> > Note: The output of "file file" is Elf x64
>
> The most common reason for "not found" error on running an executable is
> that one or more of needed shared library is missing. The command
>
> readelf -d file
>
> will list the needed libraries, as well as more information on the
> dynamic section of the ELF executable. Make sure you have all listed
> shared libraries.
You can also be missing the required 'elf interpreter'.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-20 10:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-20 5:22 [Buildroot] How to run an executable file Ugroon} Hackerone
2022-05-20 5:24 ` Baruch Siach via buildroot
2022-05-20 10:17 ` David Laight
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox