|
我是个新手,在MDK rc1中配置一个软件,配置文件为config,在csh下运行./config,出现如下提示:
[root@localhost bin]# ./config
'nknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].
[root@localhost bin]#
在Redhat7.3下则可以运行
请各位指点,谢谢
config源文件如下:
#!/bin/csh -f
onintr INTERRUPT_EXIT
set invocation = $0
setenv Program $invocation:t
if ( -d $invocation:h ) then
set script_dir = $invocation:h
else
set script_dir = `pwd`
endif
cd $script_dir
set script_dir = $cwd
cd $script_dir
setenv installdir $script_dir:h
set tclscriptdir=$installdir/bin/tcltk
setenv TCL_LIBRARY $installdir/bin/tcltk/lib/tcl76
setenv TK_LIBRARY $installdir/bin/tcltk/lib/tk42
setenv TIX_LIBRARY $installdir/bin/tcltk/lib/tix41
setenv ARCH `$installdir/bin/get_arch`
set path = ($tclscriptdir/$ARCH $path)
rehash
if ( ! -x $tclscriptdir/$ARCH/tixwish ) then
echo "$tclscriptdir/$ARCH/tixwish does not exist,"
echo "installation program abort..."
exit
endif
#setenv DISPLAY `hostname`:0
$tclscriptdir/attention.tcl $installdir/bin/readme/readme.lic 63 28
$tclscriptdir/config.tcl $installdir & |
|