Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Software] No such file or folder for executable file with commands file and ldd

$
0
0
I wrote a program by custom built of GMP 6.3.0 for GDB debugging .... I wrote the app and then compiled by :

Code:

gcc -g -o ~/program ~/program.c -lgmp -L/usr/local/lib/libgmp.a
and then created a core dump file because of my segfault error .... A " core " file created ..... I edited my code and compiled it again and for making sure the new " core " file will be created I erased the former one ....... And then tried again but Terminal showed " No such file or directory " ..... I tried to execute my own written program , But faced with " No such file or directory " .....

I searched web for error and I found 2 useful commands ldd :

Code:

ldd ~/programlinux-vdso.so.1 (0x00007ffc8cfaf000)libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0e44674000)/lib64/ld-linux-x86-64.so.2 (0x00007f0e448c6000)
and file :

Code:

file ~/program/home/lovelorn/program: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=fda5dc6c7ee58c836d52154e6fb344ef25bedd4e, for GNU/Linux 3.2.0, with debug_info, not stripped
Both show no problem but I still have the problem ...... Can anyone help ? Thanks

Statistics: Posted by Hadi_Lovelorn — 2024-08-15 08:37 — Replies 0 — Views 29



Viewing all articles
Browse latest Browse all 3474

Trending Articles