LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2011, 02:36 AM   #1
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Rep: Reputation: Disabled
i have some problems with my ubuntu server again :(


Hello LQ,

I have some problems with my ubuntu:

I have a project and when i try to execute any file it says " -bash: ./pj: No such file or directory "


root@vps64558:/var/tmp/project# pwd
/var/tmp/project
root@vps64558:/var/tmp/project#


root@vps64558:/var/tmp/project# ls
clear pj srun
root@vps64558:/var/tmp/project#


root@vps64558:/var/tmp/project# ./pj
-bash: ./pj: No such file or directory
root@vps64558:/var/tmp/project#


Anybody have any idea?

Thank you
 
Old 08-11-2011, 05:23 AM   #2
bvm2607
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 2
try "ls -b" to make sure no nonprintables in "pj"
 
Old 08-12-2011, 07:18 AM   #3
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bvm2607 View Post
try "ls -b" to make sure no nonprintables in "pj"
didn't work !!!!!

---------- Post added 08-12-11 at 07:18 AM ----------

Come on LQ PLEASE HELP ME :-(
 
Old 08-12-2011, 07:32 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Post output of this command, and please enclose it in the CODE tags:
Code:
ls -bl /var/tmp/project
 
Old 08-12-2011, 07:34 AM   #5
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
Post output of this command, and please enclose it in the CODE tags:
Code:
ls -bl /var/tmp/project
here

Code:
root@vps64560:/var/tmp/project# ls -bl /var/tmp/project
total 1404
-rwxr-xr-x 1 root root     243 Nov 26  2010 clear
-rwxr-xr-x 1 root root 1415750 Dec  1  2010 pj
-rwxr-xr-x 1 root root   12288 Nov 26  2010 srun
root@vps64560:/var/tmp/project#
 
Old 08-12-2011, 07:55 AM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
And
Code:
file /var/tmp/project/pj
 
Old 08-12-2011, 07:56 AM   #7
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
And
Code:
file /var/tmp/project/pj
Code:
root@vps64560:/var/tmp/project# file /var/tmp/project/pj
/var/tmp/project/pj: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
root@vps64560:/var/tmp/project#
 
Old 08-12-2011, 07:57 AM   #8
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
And
Code:
/var/tmp/project/pj
 
Old 08-12-2011, 07:58 AM   #9
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
And
Code:
/var/tmp/project/pj
Code:
root@vps64560:/var/tmp/project# /var/tmp/project/pj
-bash: /var/tmp/project/pj: No such file or directory
root@vps64560:/var/tmp/project#
 
Old 08-12-2011, 08:00 AM   #10
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
If this file is compiled by you or you have source of it, post it. If not then I suppose that main target of this program is to printing "No such file or directory"
 
Old 08-12-2011, 08:01 AM   #11
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
If this file is compiled by you or you have source of it, post it. If not then I suppose that main target of this program is to printing "No such file or directory"
i don't have the source..... but if i format and install centos works .... only on ubuntu gives me this error
 
Old 08-12-2011, 08:06 AM   #12
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
So, from where you got this file?
 
Old 08-12-2011, 08:08 AM   #13
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
So, from where you got this file?
someone from work give it to me. i can't decomplile it ?
 
Old 08-12-2011, 08:16 AM   #14
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Then post output of this:
Code:
strace /var/tmp/project/pj
 
Old 08-12-2011, 08:17 AM   #15
AngryBeast
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
Then post output of this:
Code:
strace /var/tmp/project/pj
Code:
root@vps64560:/var/tmp/project# strace /var/tmp/project/pj
execve("/var/tmp/project/pj", ["/var/tmp/project/pj"], [/* 18 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0fbc33e000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7f0fbc33e000, 4096)            = 0
exit_group(1)                           = ?
root@vps64560:/var/tmp/project#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i have some problems with my ubuntu server AngryBeast Linux - Software 6 08-05-2011 04:59 AM
Problems with PostgreSQL 8.3 on Ubuntu Server 8.04. mrotsliah Linux - Software 1 08-16-2009 09:09 PM
Problems setting up a NTP Server on Ubuntu Server 9.04 mikesmith20001 Linux - Server 1 08-10-2009 10:14 AM
Problems logging in on Ubuntu Server lucyeve Ubuntu 2 07-03-2008 03:14 AM


All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration