No such file or directory

Discussion in 'Безопасность и Анонимность' started by DiffiT, 28 Mar 2011.

  1. DiffiT

    DiffiT Member

    Joined:
    15 Dec 2009
    Messages:
    195
    Likes Received:
    12
    Reputations:
    3
    Проблема, аналогичная этой.

    Есть бинарник. Положил его в /usr/bin/ При запуске выдаёт сокраментальную фразу.

    Всё болит, ничё не помогает.

    зы: файл skype (dynamic 2.1.0.81 с офсайта), дистр - убунта 9.10
     
  2. krypt3r

    krypt3r Elder - Старейшина

    Joined:
    27 Apr 2007
    Messages:
    1,507
    Likes Received:
    389
    Reputations:
    101
    Что показывает strace /usr/bin/somebinary?
     
  3. DiffiT

    DiffiT Member

    Joined:
    15 Dec 2009
    Messages:
    195
    Likes Received:
    12
    Reputations:
    3
    Code:
    diffit@base:~$ strace /usr/bin/skype
    execve("/usr/bin/skype", ["/usr/bin/skype"], [/* 35 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|0620, st_rdev=makedev(136, 0), ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb9f1a92000
    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(0x7fb9f1a92000, 4096)            = 0
    exit_group(1)                           = ?
    
     
    #3 DiffiT, 28 Mar 2011
    Last edited: 28 Mar 2011
  4. krypt3r

    krypt3r Elder - Старейшина

    Joined:
    27 Apr 2007
    Messages:
    1,507
    Likes Received:
    389
    Reputations:
    101
    Что пишет скайп при запуске из консоли?
     
  5. DiffiT

    DiffiT Member

    Joined:
    15 Dec 2009
    Messages:
    195
    Likes Received:
    12
    Reputations:
    3
    Сабж и пишет
     
  6. PIN

    PIN Member

    Joined:
    25 Jul 2010
    Messages:
    2
    Likes Received:
    7
    Reputations:
    1
    бинарнику не хватает для полноценной работы какой то библиотеки\файла.
    очевидно же :D
     
  7. TheJon

    TheJon New Member

    Joined:
    19 Jun 2011
    Messages:
    20
    Likes Received:
    1
    Reputations:
    0
    ldd бинарник
    и смотри туда
    И вообще, для убунты есть *.deb пакеты
     
  8. Krickiy

    Krickiy New Member

    Joined:
    15 Oct 2010
    Messages:
    4
    Likes Received:
    0
    Reputations:
    0
    Если есть возможность, обнови Ubuntu и поставь через "Центр приложений".