LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2009, 04:22 AM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 670
Blog Entries: 7

Rep: Reputation: 31
Getting file does not exist..but file is there


Hi
As root I am trying to execute a file but I get file does not exist.


app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# ls wrapper-linux-x86-64
wrapper-linux-x86-64
app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# ./wrapper-linux-x86-64
-bash: ./wrapper-linux-x86-64: No such file or directory
app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# uname -a
Linux app01 2.6.29.2.20090503.x3550 #1 SMP Sun May 3 12:57:31 CDT 2009 x86_64 GNU/Linux
app01:/usr/local/tungsten-enterprise-2009-1.2/cluster-home/bin# file wrapper-linux-x86-64
wrapper-linux-x86-64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, not stripped


Please advice.
 
Old 12-15-2009, 04:42 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
show a few lines of the wrapper-linux-x86-64 script
 
Old 12-15-2009, 08:47 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Possibly a dynamic-linker problem similar to the one in this LQ thread.
 
Old 12-15-2009, 11:14 AM   #4
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 670
Blog Entries: 7

Original Poster
Rep: Reputation: 31
Hi This is the first part of it


^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^B^@>^@^A^@^@^@�0@^@^@^@^@^@@^@^@^@^@^@^@^@<88>�^A^@^@^@^@^@^@^@^@^@@^@ 8^@^H^@@^@!^@^^^@^F^@^@^@^E^@^@^@@^@^@^@^@^@^@^@@^@@$
^@^@^@^@^@^@^@y^@^@^@^@^@^@^@^@^@^@^@<96>^@^@^@<84>^@^@^@^@^@^@^@m^@^@^@^@^@^@^@T^@^@^@V^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@$
^@^@^@^@^@^@^@�^B^@^@^Q^@^X^@^L<99>Q^@^@^@^@^@^D^@^@^@^@^@^@^@�^B^@^@^Q^@^X^@��Q^@^@^@^@^@<80>^L^@^@ ^@^@^@^@^M^C^@^@^Q^@^X^@�<98>Q^@^@^@^@^@^H^@^@^@^@^@$
^@^@^@^@^@^@^@i^F^@^@^Q^@^X^@<80>�Q^@^@^@^@^@^@^D^@^@^@^@^@^@{^F^@^@^Q^@^X^@ȩQ^@^@^@^@^@^H^@^@^@^@^@ ^@^@<83>^F^@^@^Q^@^W^@<98><97>Q^@^@^@^@^@^D^@^@^@^@$
^@^@^@^@^@^@^@^@^@^@^@^@<95>Q^@^@^@^@^@^G^@^@^@^K^@^@^@^@^@^@^@^@^@^@^@^H<95>Q^@^@^@^@^@^G^@^@^@^L^@ ^@^@^@^@^@^@^@^@^@^@^P<95>Q^@^@^@^@^@^G^@^@^@^M^@^@^$
i^Q^@�%^Li^Q^@<90><90><90><90>�%
i^Q^@h^@^@^@^@������%^Bi^Q^@h^A^@^@^@������%�h^Q^@h^B^@^@^@������%�h^Q^@h^C^@^@^@������%�h^Q^@h^D^@^ @^@������%�h^Q^@h^E^@^@^@�<90>����%�h^Q^@h^F^@^@^@�<$
^@^@^@�@����%�h^Q^@h^K^@^@^@�0����%�h^Q^@h^L^@^@^@� ����%�h^Q^@h^M^@^@^@�^P����%<9A>h^Q^@h^N^@^@^@�^@����%<92>h^Q^@h^O^@^@^@������%<8A>h^Q^@h^P^@^@^@��� $
h^Q^@h ^@^@^@������%^Bh^Q^@h!^@^@^@������%�g^Q^@h"^@^@^@������%�g^Q^@h#^@^@^@������%�g^Q^@h$^@^@^@������%�g ^Q^@h%^@^@^@�<90>����%�g^Q^@h&^@^@^@�<80>����$
g^Q^@h@^@^@^@������%^Bg^Q^@hA^@^@^@������%�f^Q^@hB^@^@^@������%�f^Q^@hC^@^@^@������%�f^Q^@hD^@^@^@�� ����%�f^Q^@hE^@^@^@�<90>����%�f^Q^@hF^@^@^@�<80>����$
�<83>�^@^@^@����D<8B>K0E<85>�^O<84><87>^M^@^@H<8B>^E�P^Q^@H<8D>5��^@^@�^@�^B^@H<8B>8�s�^@^@<8D>^T�^@ ^@^@^@H<8D>5��^@^@<8D>^DB�^@�^B^@<89>C8H<8B>^E�P^Q^@$
^@^@^@H<8B>8踱^@^@<89><83>�^@^@^@H<8B>^E^[N^Q^@H<8D>5n�^@^@I<8B>^_�^^^@^@^@H<8B>8�<94>�^@^@<89><83>�^@^@^@H<8B>^E�M^Q^@H<8D>5b�^@^@I<8B>^_�^^^ @^@^@H<8B$
^@^@=<80>Q^A^@^O<8F>� ^@^@I<8B>^G<8B><90>�^@^@^@<85>�~^Q<8B><88>�^@^@^@<83>�^E9�^O<8C>^]
^@^@I<8B>^G<8B><90>�^@^@^@<85>�~D<8B><80>�^@^@^@<85>�~^H9�^O<8F>k
^@^@I<8B>^W<8B><82>�^@^@^@<85>�~^L;<82>�^@^@^@^O<8C>o
^@^@I<8B>^W<8B><82>�^@^@^@<85>�~^L;<82>�^@^@^@^O<8C>^\
 
Old 12-15-2009, 06:21 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.3
Posts: 17,548

Rep: Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423
You'll need to ensure it's got executable perms first. Show
ls -l wrapper-linux-x86-64
 
Old 12-15-2009, 10:32 PM   #6
18Googol2
Member
 
Registered: Oct 2008
Distribution: FreeBSD, RedHat, Centos, Solaris, AIX
Posts: 34

Rep: Reputation: 17
Sound like there is a file called within that application but it doesnt exist. Can you debug it with strace and post the output?
 
Old 12-15-2009, 11:51 PM   #7
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 670
Blog Entries: 7

Original Poster
Rep: Reputation: 31
app01:/usr/local/tungsten-enterprise-2009-1.2# ls -l ./cluster-home/bin/wrapper-linux-x86-64
-rwxr-xr-x 1 root staff 126194 2009-12-15 05:13 ./cluster-home/bin/wrapper-linux-x86-64
app01:/usr/local/tungsten-enterprise-2009-1.2# strace ./cluster-home/bin/wrapper-linux-x86-64
execve("./cluster-home/bin/wrapper-linux-x86-64", ["./cluster-home/bin/wrapper-linux"...], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f0e000
_llseek(3, 0, 0xffe2bf38, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or dir"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0xf7f0e000, 4096) = 0
exit_group(1) = ?
app01:/usr/local/tungsten-enterprise-2009-1.2#
 
Old 12-16-2009, 12:03 AM   #8
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 670
Blog Entries: 7

Original Poster
Rep: Reputation: 31
app01:/usr/local/tungsten-enterprise-2009-1.2# readelf -l ./cluster-home/bin/wrapper-linux-x86-64

Elf file type is EXEC (Executable file)
Entry point 0x4030f0
There are 8 program headers, starting at offset 64

Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
PHDR 0x0000000000000040 0x0000000000400040 0x0000000000400040
0x00000000000001c0 0x00000000000001c0 R E 8
INTERP 0x0000000000000200 0x0000000000400200 0x0000000000400200
0x000000000000001c 0x000000000000001c R 1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x00000000000190c4 0x00000000000190c4 R E 100000
LOAD 0x00000000000190c8 0x00000000005190c8 0x00000000005190c8
0x0000000000000798 0x00000000000036f8 RW 100000
DYNAMIC 0x00000000000190f0 0x00000000005190f0 0x00000000005190f0
0x00000000000001b0 0x00000000000001b0 RW 8
NOTE 0x000000000000021c 0x000000000040021c 0x000000000040021c
0x0000000000000020 0x0000000000000020 R 4
GNU_EH_FRAME 0x00000000000171d0 0x00000000004171d0 0x00000000004171d0
0x000000000000066c 0x000000000000066c R 4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 8

Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame
03 .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
04 .dynamic
05 .note.ABI-tag
06 .eh_frame_hdr
07
app01:/usr/local/tungsten-enterprise-2009-1.2#
 
  


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
Need to find if a matching file exist from a list of possible file names wit_273 Linux - General 5 10-25-2007 09:47 AM
Samba- on "put file x" says file does not exist? achtung_linux Linux - Software 3 08-22-2006 01:30 PM
trying to redirect text to a file to cat at later point. says file doesn't exist. dr_zayus69 Programming 1 10-02-2005 08:10 AM
The file or directory file:/misc/cdrom does not exist rangerssg Linux - Newbie 5 08-29-2004 05:17 AM
File does not exist/Large file support dreamtheater Linux - General 3 04-19-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:33 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