`

【ubuntu】Syntax error: "(" unexpected错误分析

阅读更多
这个错误至少有2种可能的原因:
1、是win下的文件到了linux下出现一些“^M”这这样的符号,使用命令dos2unix命令。
安装使用:sudo apt-get install tofrodos.
2、ubuntu有些版本默认的sh是指向dash的,ls -l sh可以看出来,sh这个软连接是指向哪个sh。需要修改sh->/bin/sh就好了。
分享到:
评论

相关推荐

    reads4w-2深4读狗

    reads4w-2深4读狗

    解决Ubuntu下使用linuxdeployqt打包Qt程序问题

    在Ubuntu环境下,使用Qt开发的程序往往需要依赖于特定版本的Qt库和其他系统库才能正常运行。为了方便在没有安装Qt环境的计算机上部署这些程序,可以利用`linuxdeployqt`工具来帮助打包。本文将详细讲解如何解决在...

    libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

    该文件可以用于解决启动verdi后的报错,verdi/platform/LINUXAMD64/bin/ Novas: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory 注意适用于64...

    qt-creator-linux-x86_64-opensource-2.8.1.run

    qt creator 2.8.1安装程序。可以在ubuntu上面进行安装。安装时修改qt-creator-linux-x86_64-opensource-2.8.1.run 具有可执行权限,然后使用./qt-creator-linux-x86_64-opensource-2.8.1.run进行安装

    linux自动化安全检查脚本

    2、如果报错:syntax error near unexpected token,执行:sed -i 's/\r$//' linuxinspect.sh) 支持linux系统(centos)进行自动化的安全检测,包括账号策略检查、重要文件权限检查、ssh配置检查、日志检查等。 ...

    在Ubuntu7.04 Linux系统中安装Jahshaka

    不幸的是,这种方法遇到了一个语法错误,提示"Syntax error: "(" unexpected",这可能是因为脚本中的某些语法与当前系统环境不兼容,或者文件本身存在格式问题。由于用户对脚本内容不熟悉,这种方法未能成功。 为了...

    powerpc平台nginx+php的交叉编译.

    objs/autotest: 1: Syntax error: "(" unexpected bytes ./configure: error: cannot detect int size ``` - **错误来源:** `auto/unix` -> ngx_type="int"; .auto/types/sizeof -> eval "$ngx_test >> $NGX_...

    8-07-14_MegaCLI for linux_windows

    LSIP200233342 (DFCT) Error message displayed while deleting all ld's in MegaCLI, SLESS11 sp2 LSIP200232922 (DFCT) MegaCLI misspell the word "package" as "pakage" under ctrl version and it does not ...

    Bochs - The cross platform IA-32 (x86) emulator

    [3053542] 64 bit mode: far-jmp instruction is error [3011112] error compile vs2008/2010 with X2APIC [3002017] compile error with vs 2010 [3009767] guest RFLAGS.IF blocks externel interrupt in VMX ...

Global site tag (gtag.js) - Google Analytics