Portál AbcLinuxu, 7. prosince 2025 13:47
file armyops200-lnx.run?chmod +x armyops200-lnx.run && ./armyops200-lnx.run?head armyops200-lnx.run. To co ti z toho vyleze oznat levym tlacitkem mysi (kliknout, tahnout, pustit). Prepni se zpet do sveho prohlizece (nevypinej konzoli!) a klikni prostrednim tlacitkem (koleckem, nebo na dvoutlacitkove mysi zaroven levym a pravym) do mista za tim prvnim <pre> a klikni na Náhled a potom na Dokonči. Právě se snažím dopátrat proč ti to píše: bad interpreter: No such file or directory
[ondrej@localhost NET]$ head armyops200-lnx.run
#!/bin/sh
# This script was generated using Makeself 2.1.3
CRCsum="657746537"
MD5="7cf914a292e2a8a399b0d96384b8c53b"
TMPROOT=${TMPDIR:=/tmp}
label="ArmyOps 2.0.0 for GNU/Linux"
script="./unpack_setup_stuff.sh"
scriptargs=""
targetdir="armyops-200-x86"
[ondrej@localhost NET]$
#!/bin/sh
# This script was generated using Makeself 2.1.3
CRCsum="657746537"
MD5="7cf914a292e2a8a399b0d96384b8c53b"
TMPROOT=${TMPDIR:=/tmp}
label="ArmyOps 2.0.0 for GNU/Linux"
script="./unpack_setup_stuff.sh"
scriptargs=""
targetdir="armyops-200-x86"
filesizes="686448640"
keep=n
print_cmd_arg=""
if type printf > /dev/null; then
print_cmd="printf"
elif test -x /usr/ucb/echo; then
print_cmd="/usr/ucb/echo"
else
print_cmd="echo"
fi
MS_Printf()
{
$print_cmd $print_cmd_arg "$1"
}
MS_Progress()
{
while read a; do
MS_Printf .
done
}
MS_dd()
{
blocks=`expr $3 / 1024`
bytes=`expr $3 % 1024`
dd if="$1" ibs=$2 skip=1 obs=1024 conv=sync 2> /dev/null | \
{ test $blocks -gt 0 && dd ibs=1024 obs=1024 count=$blocks ; \
test $bytes -gt 0 && dd ibs=1 obs=1024 count=$bytes ; } 2> /dev/null
}
MS_Help()
{
cat << EOH >&2
Makeself version 2.1.3
1) Getting help or info about $0 :
$0 --help Print this message
$0 --info Print embedded info : title, default target directory, embedded script ...
$0 --lsm Print embedded lsm entry (or no LSM)
$0 --list Print the list of files in the archive
$0 --check Checks integrity of the archive
2) Running $0 :
$0 [options] [--] [additional arguments to embedded script]
with following options (in that order)
--confirm Ask before running embedded script
--keep Do not erase target directory after running
the embedded script
--nox11 Do not spawn an xterm
--nochown Do not give the extracted files to the current user
--target NewDirectory Extract in NewDirectory
-- Following arguments will be passed to the embedded script
EOH
}
MS_Check()
{
OLD_PATH=$PATH
PATH=${GUESS_MD5_PATH:-"$OLD_PATH:/bin:/usr/bin:
/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
MD5_PATH=`exec 2>&-; which md5sum || type md5sum`
MD5_PATH=${MD5_PATH:-`exec 2>&-; which md5 || type md5`}
PATH=$OLD_PATH
MS_Printf "Verifying archive integrity..."
offset=`head -n 343 "$1" | wc -c | tr -d " "`
verb=$2
i=1
for s in $filesizes
do
crc=`echo $CRCsum | cut -d" " -f$i`
if test -x "$MD5_PATH"; then
md5=`echo $MD5 | cut -d" " -f$i`
if test $md5 = "00000000000000000000000000000000"; then
test x$verb = xy && echo " $1 does not contain an embedded MD5 checksum." >&2
else
md5sum=`MS_dd "$1" $offset $s | "$MD5_PATH" | cut -b-32`;
if test "$md5sum" != "$md5"; then
echo "Error in MD5 checksums: $md5sum is different from $md5" >&2
exit 2
else
test x$verb = xy && MS_Printf " MD5 checksums are OK." >&2
fi
crc="0000000000"; verb=n
fi
fi
if test $crc = "0000000000"; then
test x$verb = xy && echo " $1 does not contain a CRC checksum." >&2
else
sum1=`MS_dd "$1" $offset $s | cksum | awk '{print $1}'`
if test "$sum1" = "$crc"; then
test x$verb = xy && MS_Printf " CRC checksums are OK." >&2
else
echo "Error in checksums: $sum1 is different from $crc"
exit 2;
fi
fi
i=`expr $i + 1`
offset=`expr $offset + $s`
done
echo " All good."
}
UnTAR()
{
tar $1vf - 2>&1 || { echo Extraction failed. > /dev/tty; kill -15 $$; }
}
finish=true
xterm_loop=
nox11=n
copy=none
ownership=y
verbose=n
initargs="$@"
))
Potom pochopíš proč to nefunguje.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.