"No such file or directory" when the file is there

4

I'm trying to run XPDF on a linux (probably red hat) OVH shared server.

I've managed to have ftp ssh access and put the 64 bits binaries onto a folder.

The problem is : even though the files are there with the right permissions, if I try running it I'm getting a file not found problem (I'm thinking about a missing link..)

Long story short :

myusername@ssh1:~/xpdf$ file pdftotext
pdftotext: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped

myusername@ssh1:~/xpdf$ ./pdftotext
-ovh: jurisedi@ssh1:~/xpdf$: No such file or directory

Any ideas ?

Pierre Arlaud

Posted 2012-06-13T07:06:47.780

Reputation: 145

1Why in the world are you pasting your command prompt at the start of your command line? – lanzz – 2012-06-13T07:15:27.940

1@paxdiablo It is apparent that this is something the user is doing. You can actually see it in the posted snippet: jurisedi@ssh1:~/xpdf$ jurisedi@ssh1:~/xpdf$ ./pdftotext I suspect a clumsy copy+paste job. – lanzz – 2012-06-13T07:22:10.613

@paxdiablo No, it could not be. You can see in the snippet the actual command line entered before the command is executed; you can see what is wrong with that command line. – lanzz – 2012-06-13T07:27:47.867

Sorry about the failed paste, I'm glad you could figure it out. – None – 2012-06-13T07:50:50.410

2looks like pdftotext is running and returning FILE_NOT_FOUND. What does ldd pdftotext show? – None – 2012-06-13T14:42:57.937

Okay ldd pdftotext returns "not a dynamic executable" =/ – None – 2012-06-15T08:16:09.933

Answers

0

I suppose that there is a problem with one of the library that pdfotext binary linked with. You need to do:

$ ldd ./pdftotext

to check if the file has some problems with libraries.

If it is not a dynamic executable, it is probably a script. When you try to run the script and get a message "no such file or directory", that can mean that the interpreter specified at the first line of the script is not existent.

Igor Chubin

Posted 2012-06-13T07:06:47.780

Reputation: 166

if he only copied the needed libraries into a subdir somewhere, they won't be indexed nor available for linking with anything. It gets complicated from here... – lornix – 2012-07-06T08:37:25.530

@lornix: Arlaud said that ldd returns Okay ldd pdftotext returns "not a dynamic executable". That means that the file is probably a shell (or perl/python) script. – Igor Chubin – 2012-07-09T16:00:47.343

@ArlaudAgbePierre: can you please check the first line of the script? It looks like that the interpreter that specified in the first line is not accessible. – Igor Chubin – 2012-07-09T16:01:51.307

0

The error message you give in your question (-ovh: jurisedi@ssh1:~/xpdf$: No such file or directory) is certainly wrong, I cannot think of any tool that would search for your shell prompt as an existing file. Please try to execute the ./pdftotext again and paste the real error message into your question. The current wrong error message is very misleading.

But it is your comment "Okay ldd pdftotext returns "not a dynamic executable"" that actually shows what is happening here: Your kernel does not support 64 bit executables.

You can either try to obtain a 32 bit version of the program you try to run or install a kernel that supports 64 bit on the machine.

holgero

Posted 2012-06-13T07:06:47.780

Reputation: 201