Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: "No Such File" even though the file is clearly there

  1. #1
    Join Date
    Jun 2006
    Location
    Chicago
    Beans
    10
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Question "No Such File" even though the file is clearly there

    So first I show the file I want as in the current directory
    Code:
    randy@diablo:~/.juniper_networks/network_connect$ ls -l ncs*
    -rwxr-xr-x 1 root root 1167208 2009-03-11 08:40 ncsvc
    Now I verify that a program can interact with it, and tell me it's type
    Code:
    randy@diablo:~/.juniper_networks/network_connect$ file ncsvc 
    ncsvc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped
    Now I'll even take a look at the beginning of the file's contents
    Code:
    randy@diablo:~/.juniper_networks/network_connect$ xxd ncsvc | head
    0000000: 7f45 4c46 0101 0100 0000 0000 0000 0000  .ELF............
    0000010: 0200 0300 0100 0000 80d5 0408 3400 0000  ............4...
    0000020: e0ca 1100 0000 0000 3400 2000 0800 2800  ........4. ...(.
    0000030: 1d00 1c00 0600 0000 3400 0000 3480 0408  ........4...4...
    0000040: 3480 0408 0001 0000 0001 0000 0500 0000  4...............
    0000050: 0400 0000 0300 0000 3401 0000 3481 0408  ........4...4...
    0000060: 3481 0408 1300 0000 1300 0000 0400 0000  4...............
    0000070: 0100 0000 0100 0000 0000 0000 0080 0408  ................
    0000080: 0080 0408 4145 1000 4145 1000 0500 0000  ....AE..AE......
    0000090: 0010 0000 0100 0000 0050 1000 00d0 1408  .........P......
    Now I try to execute the file
    Code:
    randy@diablo:~/.juniper_networks/network_connect$ ./ncsvc 
    bash: ./ncsvc: No such file or directory
    I'm now totally lost. How can I list the file in the directory, interact with it's contents, and even display it's contents, but then when I try to run it Bash can't find it?

    I'll be most grateful to anyone that can clear this up for me!

  2. #2
    Join Date
    Jan 2007
    Location
    Michigan, USA
    Beans
    1,184
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "No Such File" even though the file is clearly there

    try chmod a+x file

    if that doesn't work try giving it 777 permissions as a test, this looks permission related.

  3. #3
    Join Date
    Jun 2006
    Location
    Chicago
    Beans
    10
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: "No Such File" even though the file is clearly there

    Code:
    randy@diablo:~/.juniper_networks/network_connect$ sudo chmod a+x ncsvc 
    [sudo] password for randy: 
    randy@diablo:~/.juniper_networks/network_connect$ ./ncsvc 
    bash: ./ncsvc: No such file or directory
    randy@diablo:~/.juniper_networks/network_connect$ sudo chmod 777 ncsvc 
    randy@diablo:~/.juniper_networks/network_connect$ ./ncsvc 
    bash: ./ncsvc: No such file or directory
    randy@diablo:~/.juniper_networks/network_connect$ ls -l ncsvc 
    -rwxrwxrwx 1 root root 1167208 2009-03-11 08:40 ncsvc
    No luck.

  4. #4
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: "No Such File" even though the file is clearly there

    any chance you are running a 64 bit install attempting to run a 32 bit application?

    see the following for a similar problem:
    http://www.linux.co.uk/forums/help-a...ered/879177638

    resolution there seemed to be "Installing the ia32-libs corrected the problem"

  5. #5
    Join Date
    Jan 2007
    Location
    Michigan, USA
    Beans
    1,184
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "No Such File" even though the file is clearly there

    have you tried fully qualifying the file as in /home/somewhere/something/program?

  6. #6
    Join Date
    Jul 2008
    Location
    /dev/null
    Beans
    Hidden!

    Re: "No Such File" even though the file is clearly there

    Quote Originally Posted by t4thfavor View Post
    have you tried fully qualifying the file as in /home/somewhere/something/program?
    He is in that directory where the file is since "ls -l" is listing the file.

    This file has no exension yet it's executable? Are you sure it's not ncsvc.sh or something?

  7. #7
    Join Date
    Jan 2007
    Location
    Michigan, USA
    Beans
    1,184
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: "No Such File" even though the file is clearly there

    I know he's in the same directory, but its a wierd problem, it could take a wierd solution.

  8. #8
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: "No Such File" even though the file is clearly there

    It's probably a missing library.

    I've seen it happen before, in my case the program tried to access a 32 bit library that I didn't happen to have and echo'd back to the prompt "no such file or directory" confused the heck out of me.
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  9. #9
    Join Date
    Jun 2006
    Location
    Chicago
    Beans
    10
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Smile Re: "No Such File" even though the file is clearly there

    Quote Originally Posted by mbeach View Post
    any chance you are running a 64 bit install attempting to run a 32 bit application?

    see the following for a similar problem:
    http://www.linux.co.uk/forums/help-a...ered/879177638

    resolution there seemed to be "Installing the ia32-libs corrected the problem"
    That fixed it! Thank you so very much!!

  10. #10
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: "No Such File" even though the file is clearly there

    no problem, glad it worked out for you. Probably one of those errors that will get a better description at some point in the future. 'Attempting to run 32 bit application...'

    mb.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •