mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   ghost files (https://www.mersenneforum.org/showthread.php?t=9621)

jasong 2007-11-21 03:33

ghost files
 
Can anyone explain to me how I could install a program, have it appear to be installed, type ls and see it listed, and yet when I try to run it the OS tells me the file doesn't exist?

ColdFury 2007-11-21 04:10

Probably because the file isn't in your PATH environment variable.

Patrick123 2007-11-21 05:59

Change to that sub-directory, then type a ./ before the program name to force Linux to run the program in that folder.

Thus is the program's name was 'abc', you would type:

[QUOTE]./abc[/QUOTE]

Regards
Patrick

jasong 2007-11-21 06:01

[QUOTE=Patrick123;118896]Change to that sub-directory, then type a ./ before the program name to force Linux to run the program in that folder.

Thus is the program's name was 'abc', you would type:



Regards
Patrick[/QUOTE]
Thanks for the suggestion, but that's exactly what I did.

Patrick123 2007-11-21 06:32

Is the program tagged as an executable i.e. 'chmod 0555 abc'

paulunderwood 2007-11-21 10:10

Jason, what is the application? What is the operating system? Are you trying to run a 32-bit program on a 64-bit Linux? If so, have you installed "ia32-libs"?

jasong 2007-11-23 06:10

[QUOTE=paulunderwood;118907]Jason, what is the application? What is the operating system? Are you trying to run a 32-bit program on a 64-bit Linux? If so, have you installed "ia32-libs"?[/QUOTE]
If the problem were the "bitness", wouldn't it at least acknowledge that the file was there when I tried to run it. It listed when I type ls, but if I try to execute it, even in the directory with the ./ before it, it claims the file doesn't exist.

Patrick123 2007-11-23 06:17

I'd suggest typing 'ls -l > aa.txt' then post that text file here.

xilman 2007-11-23 09:31

[QUOTE=jasong;118891]Can anyone explain to me how I could install a program, have it appear to be installed, type ls and see it listed, and yet when I try to run it the OS tells me the file doesn't exist?[/QUOTE]If your program is a script, it may begin with something like
[code]#!/bin/perl -w[/code] or perhaps [code]#!/usr/bin/sh[/code] or the like.

If you don't have Perl installed on your machine, or if your sh is actually /bin/sh, the OS is trying to tell you that the interpreter for that script doesn't exist, or doesn't exist where the script claims it to be.


Paul

jasong 2007-11-23 20:46

[QUOTE=Patrick123;119019]I'd suggest typing 'ls -l > aa.txt' then post that text file here.[/QUOTE]
I've reinstalled since I had that problem and it hasn't shown up since then, if it DOES come up again , I'll do what you ask. :)

jasong 2007-11-23 20:47

[QUOTE=xilman;119022]If your program is a script, it may begin with something like
[code]#!/bin/perl -w[/code] or perhaps [code]#!/usr/bin/sh[/code] or the like.

If you don't have Perl installed on your machine, or if your sh is actually /bin/sh, the OS is trying to tell you that the interpreter for that script doesn't exist, or doesn't exist where the script claims it to be.


Paul[/QUOTE]
Interesting, does the beta mprime have something like that? Then you could be right.


All times are UTC. The time now is 11:18.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.