User forums > Help

'No such file or directory' error running in terminal

<< < (3/3)

markpotts:
There is nothing written to dmesg when the error occurs
apparmor is running by default but no effect if disabled

The file command output may contain a clue. The working version compiled from the command line is an "ELF 64-bit LSB shared object, not stripped". The CB compiled version that runs from the IDE but fails from the command line is an "ELF 64-bit LSB executable, stripped".

~/Source/Barcode$ file Barcode
Barcode: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=492d894beb613937df192d803629005eb8b17095, for GNU/Linux 3.2.0, not stripped

~/Source/Barcode/bin/Release$ file Barcode
Barcode: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=923304fc1cda1c3474db62bb3d70b5c230fed520, stripped

oBFusCATed:
Stripping doesn't matter.
Either remove -g from the compiler or add -s to the linker and it will be the same, but it won't solve the problem.
What happens if you execute the same commands from the build log?
You should get the same effect.

Navigation

[0] Message Index

[*] Previous page

Go to full version