bash: /usr/bin/cmake: No such file or directory

这篇具有很好参考价值的文章主要介绍了bash: /usr/bin/cmake: No such file or directory。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题描述

当在linux 下 源码安装 cmake ,验证安装 cmake --version, 出现以下错误:
bash: /usr/bin/cmake: No such file or directory

解决方法:

将编译生成的 cmake 复制到 /usr/bin 文件夹下文章来源地址https://www.toymoban.com/news/detail-725921.html

cp ./cmake-3.x/bin/cmake /usr/bin/

到了这里,关于bash: /usr/bin/cmake: No such file or directory的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • 解决 /bin/bash^M: bad interpreter: No such file or directory

    解决 /bin/bash^M: bad interpreter: No such file or directory

    linux 系统中知行*.sh 文件报/bin/bash^M: bad interpreter: No such file or directory 原因: .sh文件是在windows系统编写的,在linux执行就有问题 转化下格式执行如下命令 # dos2unix app.sh  结果bash: dos2unix: command not found 需要安装下dos2unix 接着执行:# yum install -y dos2unix 接着再执行:# dos2unix app.

    2024年02月08日
    浏览(9)
  • 解决/usr/bin/env: ‘python3\r’: No such file or directory

    解决/usr/bin/env: ‘python3\r’: No such file or directory

    1.异常原因: DOS系统下和Linux系统下对于换行键的表示不同。 在windows下,用连续的’r’和’n’两个字符进行换行。‘r’为回车符,’n’为换行符,比如原来的’aaabbb’更改为’aaa n bbb’后输出的结果为:aaa 换行 bbb。 #!/usr/bin/env pythonrn 在Linux下,用’n’进行换行。

    2024年02月08日
    浏览(10)
  • FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/cuda-10.2:/bin/nvcc‘

    FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/cuda-10.2:/bin/nvcc‘

    完整报错:FileNotFoundError: [Errno 2] No such file or directory: \\\'/usr/local/cuda-10.2:/bin/nvcc\\\' 亲测有效!!!!! 解决方法:  安装成功! 参考:FileNotFoundError: [Errno 2] No such file or directory: \\\':/usr/local/cuda:/usr/local/cuda-10.1/bin/nvcc\\\': \\\':/usr/local/cuda:/usr/local/cuda-10.1/bin/nvcc\\\' · Issue #368 · NVIDIA/apex ·

    2024年02月13日
    浏览(7)
  • 运行命令出现错误 /bin/bash^M: bad interpreter: No such file or directory

    运行命令出现错误 /bin/bash^M: bad interpreter: No such file or directory

    在系统上运行一个 Linux 的命令的时候出现下面的错误信息: -bash: ./build.sh: /bin/bash^M: bad interpreter: No such file or directory 这个是在 Windows 作为 WSL 的时候出的错误。 出现问题的原因在于脚本在 Windows 中使用的回车换行和 Linux 使用的回车换行不一样。 如果你的代码是在 Windows 下被

    2024年02月11日
    浏览(9)
  • chroot: failed to run command ‘/bin/bash’: No such file or directory

    chroot: failed to run command ‘/bin/bash’: No such file or directory

    在busybox的环境下,执行 报错如下: 根据报错应该rootfs文件系统中缺少/bin/bash,进入查看确实默认是sh,换成 依然报错 通过查阅资料发现,/bin/sh链接/bin/busybox,busybox为动态执行文件,直接进入缺少动态链接库,如下: 需要拷贝相应的动态到rootfs文件系统,如下: 然后再执

    2024年01月24日
    浏览(8)
  • Linux中执行bash脚本报错/bin/bash^M: bad interpreter: No such file or directory

    Linux中执行bash脚本报错/bin/bash^M: bad interpreter: No such file or directory

    运行bash脚本会出现两个文件, 1037.err 和 1037.out 。 1037.err的文件内容如下: /data/home/user12/.lsbatch/1694577957.1037: /data/home/user12/.lsbatch/1694577957.1037.shell: /bin/sh^M: bad interpreter: No such file or directory 第一步 执行命令行:cat -A xxx.sh 第二步 使用下述命令直接替换结尾符为unix格式 命令行

    2024年02月07日
    浏览(37)
  • /usr/lib64/atlas/libsatlas.so: No such file or directory

    ref: software installation - g++: error: /usr/lib64/atlas/libsatlas.so: No such file or directory - Ask Ubuntu 

    2024年02月15日
    浏览(10)
  • 【c++ debug】cmake编译报错 No such file or directory

    【c++ debug】cmake编译报错 No such file or directory

      重要: (1)首先确认文件是否存在,不存在才会报no such file/directory (2)确认查找路径是否正确,搜索路径错了自然找不到目标文件,头文件就检查include_directories,库文件就检查target_libraries 1. 报错:error while loading shared libraries: libprotoc.so.24: cannot open shared object file: No s

    2024年02月01日
    浏览(11)
  • Linux报错:-bash: 路径xx: No such file or directory解决方法

    Linux报错:-bash: 路径xx: No such file or directory解决方法

    事情起因:当我在用OpenFOAM的时候,提示内存不足,然后我将OpenFOAM移动到了我新挂载的文件上,于是出现了图中的错误   于是在询问了朋友和前辈之后,发现是配置文件的问题,于是我进入到配置文件中,将我新的路径复制了进去 第一步:输入命令   vim ~/.bashrc  进入bashr

    2024年02月17日
    浏览(10)
  • 【小程序】报错:no such file or directory, access ‘wxfile://usr/miniprogramLog/log2‘

    【小程序】报错:no such file or directory, access ‘wxfile://usr/miniprogramLog/log2‘

    出现场景 在微信小程序开发中,使用真机调试的时候,出现这个错误 解决方式 将真机调试由2.0切换到1.0

    2024年02月11日
    浏览(18)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包