mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2007-11-21, 03:33   #1
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

5·701 Posts
Default 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?
jasong is offline   Reply With Quote
Old 2007-11-21, 04:10   #2
ColdFury
 
ColdFury's Avatar
 
Aug 2002

1010000002 Posts
Default

Probably because the file isn't in your PATH environment variable.
ColdFury is offline   Reply With Quote
Old 2007-11-21, 05:59   #3
Patrick123
 
Patrick123's Avatar
 
Jan 2006
JHB, South Africa

9D16 Posts
Default

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
Regards
Patrick
Patrick123 is offline   Reply With Quote
Old 2007-11-21, 06:01   #4
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

5×701 Posts
Default

Quote:
Originally Posted by Patrick123 View Post
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
Thanks for the suggestion, but that's exactly what I did.
jasong is offline   Reply With Quote
Old 2007-11-21, 06:32   #5
Patrick123
 
Patrick123's Avatar
 
Jan 2006
JHB, South Africa

100111012 Posts
Default

Is the program tagged as an executable i.e. 'chmod 0555 abc'
Patrick123 is offline   Reply With Quote
Old 2007-11-21, 10:10   #6
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

25·109 Posts
Default

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"?
paulunderwood is offline   Reply With Quote
Old 2007-11-23, 06:10   #7
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

DB116 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
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"?
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.
jasong is offline   Reply With Quote
Old 2007-11-23, 06:17   #8
Patrick123
 
Patrick123's Avatar
 
Jan 2006
JHB, South Africa

2358 Posts
Default

I'd suggest typing 'ls -l > aa.txt' then post that text file here.
Patrick123 is offline   Reply With Quote
Old 2007-11-23, 09:31   #9
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

1019110 Posts
Default

Quote:
Originally Posted by jasong View Post
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?
If your program is a script, it may begin with something like
Code:
#!/bin/perl -w
or perhaps
Code:
#!/usr/bin/sh
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
xilman is offline   Reply With Quote
Old 2007-11-23, 20:46   #10
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

5×701 Posts
Default

Quote:
Originally Posted by Patrick123 View Post
I'd suggest typing 'ls -l > aa.txt' then post that text file here.
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 is offline   Reply With Quote
Old 2007-11-23, 20:47   #11
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

5·701 Posts
Default

Quote:
Originally Posted by xilman View Post
If your program is a script, it may begin with something like
Code:
#!/bin/perl -w
or perhaps
Code:
#!/usr/bin/sh
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
Interesting, does the beta mprime have something like that? Then you could be right.
jasong is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting log files or other text files Xyzzy Forum Feedback 3 2018-12-30 19:37
Ghost PRP assignments Ovi PrimeNet 5 2017-10-14 09:36
Headless Ghost, HDMI display emulator Uncwilly Hardware 4 2015-01-08 18:48
Ghost PM1 assigments houding PrimeNet 1 2014-03-31 12:01
Help using .ini files only in v24 petrw1 PrimeNet 1 2008-10-15 03:24

All times are UTC. The time now is 10:05.

Tue Nov 24 10:05:49 UTC 2020 up 75 days, 7:16, 4 users, load averages: 1.58, 2.61, 3.00

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.