Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: bad interpreter: No such file or directory  (Přečteno 4431 krát)

vejbuch

  • Návštěvník
  • Příspěvků: 70
bad interpreter: No such file or directory
« kdy: 30 Prosince 2010, 10:27:00 »
Cau mam script start.sh kdyz dam ./start.sh  tak mi to vypise bad interpreter: No such file or directory  nevite jak to opravit :)

Henrynr

  • Aktivní člen
  • *
  • Příspěvků: 366
Re: bad interpreter: No such file or directory
« Odpověď #1 kdy: 30 Prosince 2010, 10:43:32 »
Má soubor nastaven spustitelný příznak? (http://wiki.ubuntu.cz/Spustiteln%C3%BD%20p%C5%99%C3%ADznak)
Doma i v práci Linux Mint 17

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #2 kdy: 30 Prosince 2010, 10:52:26 »
ano ma

8472

  • Aktivní člen
  • *
  • Příspěvků: 460
  • Zivot je ako rebrik do kurina, kratky a osraty ...
Re: bad interpreter: No such file or directory
« Odpověď #3 kdy: 30 Prosince 2010, 10:56:24 »
mozes sem prosim skopirovat hned prvy riadok toho scriptu?
Logic clearly dictates that the needs of the many outweigh the needs of the few.

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #4 kdy: 30 Prosince 2010, 11:06:51 »
mozes sem prosim skopirovat hned prvy riadok toho scriptu?

klidne
Citace
#!/bin/sh
 

8472

  • Aktivní člen
  • *
  • Příspěvků: 460
  • Zivot je ako rebrik do kurina, kratky a osraty ...
Re: bad interpreter: No such file or directory
« Odpověď #5 kdy: 30 Prosince 2010, 11:10:21 »
skus preverit ten subor /bin/sh , ci skutocne existuje, ci je pristupny a pod.
prip. aj skus ls -la /bin/sh , malo by ti to ukazat kam je ten file nalinkovany a napodobne.
Logic clearly dictates that the needs of the many outweigh the needs of the few.

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #6 kdy: 30 Prosince 2010, 11:14:39 »
skus preverit ten subor /bin/sh , ci skutocne existuje, ci je pristupny a pod.
prip. aj skus ls -la /bin/sh , malo by ti to ukazat kam je ten file nalinkovany a napodobne.

Takze mam to v /bin/sh
 a kdyz dam is -la /bin/sh tak my vypise
Citace
vejbuch@localhost:~/pres/016$ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 2010-12-09 10:36 /bin/sh -> dash

8472

  • Aktivní člen
  • *
  • Příspěvků: 460
  • Zivot je ako rebrik do kurina, kratky a osraty ...
Re: bad interpreter: No such file or directory
« Odpověď #7 kdy: 30 Prosince 2010, 11:22:37 »
a ten dash existuje?
mal by byt v /bin/dash

prip. mozes vyskusat vymenit ten "#!/bin/sh" za "#!/bin/bash", ci sa to pohne?
Logic clearly dictates that the needs of the many outweigh the needs of the few.

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #8 kdy: 30 Prosince 2010, 11:26:24 »
zkousel sem a nic :/

8472

  • Aktivní člen
  • *
  • Příspěvků: 460
  • Zivot je ako rebrik do kurina, kratky a osraty ...
Re: bad interpreter: No such file or directory
« Odpověď #9 kdy: 30 Prosince 2010, 11:28:43 »
skus este spustit ten tvoj script takto: 'sh +x start.sh'
a vystup sem skopiruj
Logic clearly dictates that the needs of the many outweigh the needs of the few.

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #10 kdy: 30 Prosince 2010, 11:31:45 »
Citace
vejbuch@localhost:~/pres/016$ sudo sh +x start.sh
: not found:

8472

  • Aktivní člen
  • *
  • Příspěvků: 460
  • Zivot je ako rebrik do kurina, kratky a osraty ...
Re: bad interpreter: No such file or directory
« Odpověď #11 kdy: 30 Prosince 2010, 11:44:35 »
mas tam vobec cokolvek ineho spustitelneho?
skus vytvorit nejaky jednoduchy test script, napr. s obsahom:
#!/bin/sh
echo test

sprav ten script spustitelny a spusti, ci vobec nieco ine prejde.
Logic clearly dictates that the needs of the many outweigh the needs of the few.

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #12 kdy: 30 Prosince 2010, 11:48:03 »
Citace
vejbuch@localhost:~$ sudo sh +x ss.sh
test

to jde v pohode

8472

  • Aktivní člen
  • *
  • Příspěvků: 460
  • Zivot je ako rebrik do kurina, kratky a osraty ...
Re: bad interpreter: No such file or directory
« Odpověď #13 kdy: 30 Prosince 2010, 11:51:59 »
aha, tak potom musis mat zrejme nejaku paseku v tom samotnom scripte.
ak chces, mozes sem este skopirovat obsah samotneho scriptu, aby sa na to niekto mrkol.
Logic clearly dictates that the needs of the many outweigh the needs of the few.

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #14 kdy: 30 Prosince 2010, 11:55:45 »
aha, tak potom musis mat zrejme nejaku paseku v tom samotnom scripte.
ak chces, mozes sem este skopirovat obsah samotneho scriptu, aby sa na to niekto mrkol.

zde je obsah

Citace
#!/bin/sh
  cd "/home/vejbuch/pres/016/"
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
 

 screen -A -m -d -S CS-SERVER ./hlds_run -game cstrike -binary ./hlds_i686 +port 27025 +maxplayers 12 +exec server.cfg +map de_dust2 +sv_lan 0 -secure -pingboost 2 -noipx

jinak win xp

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #15 kdy: 30 Prosince 2010, 12:09:09 »
Nejde :/

pacholik

  • Závislák
  • ***
  • Příspěvků: 2072
Re: bad interpreter: No such file or directory
« Odpověď #16 kdy: 30 Prosince 2010, 13:38:12 »
Zkus to odsaď zkopírovat do geditu a uložit do novýho skriptu. Pude to pak ?

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #17 kdy: 30 Prosince 2010, 14:52:48 »
nejde :( sakra uz

donny

  • Závislák
  • ***
  • Příspěvků: 1861
Re: bad interpreter: No such file or directory
« Odpověď #18 kdy: 30 Prosince 2010, 14:55:52 »
otevři si textový editor, do novýho souboru překopíruj text z toho skriptu, ulož a nastav spustitelný příznak a zkus ho spustit.

//edit, a sakra, neumim číst a píšu to samý co pacholik :)
archlinux @ i7-6700/GTX1080 8G/32G DDR4/.5TB NVMe/WD RED 3TB | Raspbian 8 @ Raspberry Pi
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better!

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #19 kdy: 30 Prosince 2010, 14:56:31 »
otevři si textový editor, do novýho souboru překopíruj text z toho skriptu, ulož a nastav spustitelný příznak a zkus ho spustit.

ok pak poslu co to zas udela :)

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #20 kdy: 30 Prosince 2010, 15:00:35 »
Takze ve scriptu je

Citace
#!/bin/sh
  cd "/home/vejbuch/pres/016/"
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
 

 screen -A -m -d -S CS-SERVER ./hlds_run -game cstrike -binary ./hlds_i686 +port 27025 +maxplayers 12 +exec server.cfg +map de_dust2 +sv_lan 0 -secure -pingboost 2 -noipx
odeslu
Citace
sudo chmod +x /home/vejbuch/pres/016/start.sh

odeslu
Citace
vejbuch@localhost:~$ cd pres/016
vejbuch@localhost:~/pres/016$

odeslu
Citace
./start.sh

Vypis
Citace
vejbuch@localhost:~/pres/016$ ./start.sh
-bash: ./start.sh: /bin/sh^M: bad interpreter: No such file or directory

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #21 kdy: 30 Prosince 2010, 15:03:05 »
a kdyz dam


Citace
sudo sh +x start.sh

vypise
Citace
vejbuch@localhost:~/pres/016$ sudo sh +x start.sh
cd: 2: can't cd to /home/vejbuch/pres/016/
: not found:
vejbuch@localhost:~/pres/016$ Auto-restarting the server on crash
Error:libsteam_api_c.so: cannot open shared object file: No such file or direct
ry
Unable to load engine, image is corrupt.
email debug.log to linux@valvesoftware.com
Thu Dec 30 13:59:41 UTC 2010: Server restart in 10 seconds
Error:libsteam_api_c.so: cannot open shared object file: No such file or direct

vejbuch

  • Návštěvník
  • Příspěvků: 70
Re: bad interpreter: No such file or directory
« Odpověď #22 kdy: 30 Prosince 2010, 15:21:34 »
omlouvam se :) pak sem to blbe zapinal :D

 

Provoz zaštiťuje spolek OpenAlt.