'No such file or directory' starting program
-
Hi guru
Sorry. It sounds good but I looked for it and I am not able to find out how to start my application in command mode. All the references I found only talk about QTcreator command mode.
Please, can you give me a link to where it is explained?
Thank you
-
Hello
I have a linux compiled with Yocto running in a iMX6Q Sabre Lite board.
Thank you
-
Hello
I think you were talking about a special mode for QT applications.
That is what I am doing. I go to the linux console, then to my directory and then I try to run it. This is what I got:
./myapp
-sh: ./myapp: No such file or directoryThis is due, as Graham pointed, to failed dependencies. We have a new recompiled program already running with the new versions. But it would be interesting to know what file or directory is not finding the starting routines of a QT application instead of that message. As newbies we were totally confused about it when we saw it.
Thank you any way
-
Hello
Yes, we saw that utility at the link posted previously.
However:
- ldd on the revised and working version shows the implied libraries
- ldd on the old version shows the error:
/usr/bin/ldd: line 115 ./myprogram : No such file or directory
I deleted a libsomeone file used by working program and ldd does not crash. It lists libraries and it says libsomeone not found.
Curious?
Thanks.
-
Is your app executable ? Or just do chmod 777 yourapp
-
Hi
I login as root. It is -rwxr-xr-x. However I did:
chmod 777 myapp
chown root.root myappand nothing changes:
-sh: ./myoldapp: No such file or directoryThanks
-
Ok. May be its the problem related to compilation. Maybe you have compiled on a 64 bit machine and trying to run on 32 bit.
-
Hello
I have a iMX6Q board. I upgraded the board with a linux complete image. The old image must have a Qt version and the new image is another Qt version.
myoldprogram runs on oldimage but it does not run on newimage.
I understood I have to recompile the program and I did so. mynewprogram runs fine in newimage.
The 'no such file ..' error comes from broken dependencies (it seems). But the cuestions remaining is: Is there any way to display what file is not there?
Thanks
-
To see dependencies use ldd.
Try
@ldd appname ¦ grep -i not@This will display the deps. which are not found
-
Hi
Tested before. Not working
Best regards
[quote author="controlhorus" date="1380900225"]
- ldd on the old version shows the error:
/usr/bin/ldd: line 115 ./myprogram : No such file or directory
[/quote]
- ldd on the old version shows the error:
-
I had the same annoying problem (linux diagnostics rules!). I moved into LSB-ready linux, or moved executable from LSB linux into non-LSB one (I'm not sure now). Try to install LSB package or create fake mappings into your system libraries to simulate LSB libraries. I didn't find any tool which could diagnose this problem properly, let me know if you have one.