I want Deploying "hello" application on ubuntu, so i use the Deploying an Application on X11 Platforms on Qt Assistant,the said great hello.sh file in the application dir:
#!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$dirname
export LD_LIBRARY_PATH
$dirname/$appname $*
when i running this hello.sh in other ubuntu(do not install any thing software).the error is:
: not found:#!/bin/sh
hello.sh:11: Syntax error:and of file unexpected(expection "then")
how can i fix it?
Bookmarks