#1 06.12.09 22:39
[Ubuntu] Ошибка bash при выполнении configure
Решил поставить QT для S60, скачал с оффсайта, по инструкции начал выполнять configure, и тут такое:
Код::
fire@Template:~/tmp/qt$ ./configure bash: ./configure: /bin/sh^M: плохой интерпретатор: No such file or directory
Это повергло меня в шок...
Искал в инете, безрезультатно((
пробовал еще так:
Код::
fire@Template:~/tmp/qt$ bash configure : команда не найдена : команда не найдена : No such file or directory : команда не найдена 'onfigure: line 81: ошибка синтаксиса около неожиданной лексемы ` 'onfigure: line 81: `shellEscape()
Код::
fire@Template:~/tmp/qt$ dash configure : not found42: : not found46: cd: 51: can't cd to . : not found54: configure: 91: Syntax error: word unexpected (expecting "in")
Код::
fire@Template:~/tmp/qt$ sh configure : команда не найдена : команда не найдена : No such file or directory : команда не найдена 'onfigure: line 81: ошибка синтаксиса около неожиданной лексемы ` 'onfigure: line 81: `shellEscape()
Самое интересное что другие скрипты нормально выполняются...
еще ls:
Код::
fire@Template:~/tmp/qt$ ls -li /bin/*sh* 208 -rwxr-xr-x 1 root root 875596 2009-09-14 12:09 /bin/bash 256 -rwxr-xr-x 1 root root 92132 2009-09-21 06:49 /bin/dash 1847 lrwxrwxrwx 1 root root 4 2009-11-25 05:05 /bin/rbash -> bash 254 lrwxrwxrwx 1 root root 9 2009-12-06 20:50 /bin/sh -> /bin/bash 288 lrwxrwxrwx 1 root root 4 2009-11-25 05:06 /bin/sh.distrib -> bash
небольшая часть этого самого configure:
Код::
#!/bin/sh
#############################################################################
##
## Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
## Contact: Nokia Corporation (qt-info@nokia.com)
##
## This file is the build configuration utility of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:LGPL$
## No Commercial Usage
## This file contains pre-release code and may not be distributed.
## You may use this file in accordance with the terms and conditions
## contained in the Technology Preview License Agreement accompanying
## this package.
##
## GNU Lesser General Public License Usage
## Alternatively, this file may be used under the terms of the GNU Lesser
## General Public License version 2.1 as published by the Free Software
## Foundation and appearing in the file LICENSE.LGPL included in the
## packaging of this file. Please review the following information to
## ensure the GNU Lesser General Public License version 2.1 requirements
## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
##
## In addition, as a special exception, Nokia gives you certain additional
## rights. These rights are described in the Nokia Qt LGPL Exception
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
##
## If you have questions regarding the use of this file, please contact
## Nokia at qt-info@nokia.com.
##
##
##
##
##
##
##
##
## $QT_END_LICENSE$
##
#############################################################################
#-------------------------------------------------------------------------------
# script initialization
#-------------------------------------------------------------------------------
# the name of this script
relconf=`basename $0`
# the directory of this script is the "source tree"
relpath=`dirname $0`
relpath=`(cd "$relpath"; /bin/pwd)`
# the current directory is the "build tree" or "object tree"
outpath=`/bin/pwd`
#license file location
LICENSE_FILE="$QT_LICENSE_FILE"
[ -z "$LICENSE_FILE" ] && LICENSE_FILE="$HOME/.qt-license"
if [ -f "$LICENSE_FILE" ]; then
tr -d '\r' <"$LICENSE_FILE" >"${LICENSE_FILE}.tmp"
diff "${LICENSE_FILE}.tmp" "${LICENSE_FILE}" >/dev/null 2>&1 || LICENSE_FILE="${LICENSE_FILE}.tmp"
fi
# later cache the command line in config.status
OPT_CMDLINE=`echo $@ | sed "s,-v ,,g; s,-v$,,g"`
# initialize global variables
QMAKE_SWITCHES=
QMAKE_VARS=
QMAKE_CONFIG=
QTCONFIG_CONFIG=
QT_CONFIG=
SUPPORTED=
QMAKE_VARS_FILE=.qmake.vars
:> "$QMAKE_VARS_FILE"
#-------------------------------------------------------------------------------
# utility functions
#-------------------------------------------------------------------------------
shellEscape()
{
echo "$@" | sed 's/ /\ /g'
}
# Adds a new qmake variable to the cache
# Usage: QMakeVar mode varname contents
# where mode is one of: set, add, del
QMakeVar()
{
case "$1" in
set)
eq="="
;;
add)
eq="+="
;;
del)
eq="-="
;;
*)
echo >&2 "BUG: wrong command to QMakeVar: $1"
;;
esac
echo "$2" "$eq" "$3" >> "$QMAKE_VARS_FILE"
}
# relies on $QMAKESPEC being set correctly. parses include statements in
# qmake.conf and prints out the expanded file
getQMakeConf()
{
tmpSPEC="$QMAKESPEC"
if [ -n "$1" ]; then
tmpSPEC="$1"
fi
$AWK -v "QMAKESPEC=$tmpSPEC" '
/^include\(.+\)$/{
fname = QMAKESPEC "/" substr($0, 9, length($0) - 9)
while ((getline line < fname) > 0)
print line
close(fname)
next
}
{ print }' "$tmpSPEC/qmake.conf"
}
# relies on $TEST_COMPILER being set correctly
compilerSupportsFlag()
{
cat >conftest.cpp <<EOF
int main() { return 0; }
EOF
"$TEST_COMPILER" "$@" -o /dev/null conftest.cpp
ret=$?
rm -f conftest.cpp conftest.o
return $ret
}
# relies on $TEST_COMPILER being set correctly
linkerSupportsFlag()
{
lflags=-Wl
for flag
do
safe_flag=`shellEscape "$flag"`
lflags=$lflags,$safe_flag
done
compilerSupportsFlag "$lflags" >/dev/null 2>&1
}
#-------------------------------------------------------------------------------
# operating system detection
#-------------------------------------------------------------------------------
# need that throughout the script
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
#-------------------------------------------------------------------------------
# window system detection
#--------------------------------------------------------------объясните мне, пожалуйста, что за фигня...
Как-то не верится что Nokia предоставляет нерабочие программы...
Исправлено Fire Stream (06.12.09 22:41)
Offline
#3 07.12.09 11:53
Re: [Ubuntu] Ошибка bash при выполнении configure
спасибо, заработало)
правда сейчас другие ошибки, но они решаемы))
Offline

