bash: ../configure: /bin/sh^M: bad interpreter: No such file or directory

bash: ../configure: /bin/sh^M: bad interpreter: No such file or directory

这个错误通常是由于Windows平台下的文本格式导致的,而在Linux下则会被解释为错误。解决这个问题的方法之一是使用dos2unix命令将脚本转换为Unix格式。

dos2unix ../configure

然后重新运行配置步骤:

../configure \ -opensource \ -confirm-license \ -release \ -prefix /usr/local/Qt \ -nomake examples \ -nomake tests

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-27 07:44:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-27 07:44:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-27 07:44:03       87 阅读
  4. Python语言-面向对象

    2024-04-27 07:44:03       96 阅读

热门阅读

  1. 人脸识别开发项目汇总

    2024-04-27 07:44:03       28 阅读
  2. spring boot 部署jar包瘦身 jar和lib分离

    2024-04-27 07:44:03       31 阅读
  3. Qt下载地址与版本选择指南

    2024-04-27 07:44:03       32 阅读
  4. mediasoupWork中引入本地so库

    2024-04-27 07:44:03       34 阅读
  5. MacOS 12安装V8Js

    2024-04-27 07:44:03       38 阅读
  6. vue3 html5-qrcode 实现扫描二维码 仿照wx扫码样式

    2024-04-27 07:44:03       38 阅读