/usr/bin/ld: cannot open output file a.out: Permission denied,解决办法在最后
来源:互联网 发布:java 1秒等于多少毫秒 编辑:程序博客网 时间:2024/05/22 06:52
这种情况发生的原因有很多种,今天列举一种,如后遇到再补充,先描述现象:
笔者,这种情况是发生在:两个终端,其中一个终端生成并且正在执行a.out文件,在另外一个终端相同目录下,编译另外一个.c文件,出现在这种情况,根据我的描述大家也差不多知道这种情况的发生,笔者以前也遇到这样的情况,不过不是这种情况,但是解决办法都是相同的,首先我们首先想到kill函数,因为没有pid,或者说我们没有看到a.out的pid,所以要抓一下啊a.out的pid,用 ps -ef|grep a.out,得到a.out的pid,终端输入kill pid就行了
或者只能用更暴力的了,killall,杀死一切与我为敌的人。
以后遇到其他情况,我会继续补充,欢迎大家交流补充
阅读全文
0 0
- /usr/bin/ld: cannot open output file a.out: Permission denied,解决办法在最后
- /usr/bin/ld:cannot open output file a.out: Permission denied collect2: ld returned 1 exit status
- /usr/bin/ld:cannot open output file:Is a directory
- 调试程序出错/usr/bin/ld: cannot open output file test: Is a directory
- usr/bin/ld: cannot open output file test: Is a directory
- CodeBlocks,cannot open output file permission denied的解决办法
- CodeBlocks,cannot open output file permission denied的解决办法
- Linux中fork系统调用编译出错/usr/bin/ld: cannot open output file fork_test: Is a directory co
- Id.exe和ld.exe: cannot open output file … : Permission denied问题。
- cannot open output file debug\hello1.exe: Permission denied
- cannot open output file main: Permission denied问题解决办法
- /usr/bin/ld: cannot find -lxxx解决办法
- /usr/bin/ld: cannot find -lopencv_dep_cudart解决办法
- open output file xxx.exe: Permission denied
- open output file xxx.exe: Permission denied
- eclipse for c++程序调试中的问题:cannot open output file study.exe: Permission denied
- :-1: 错误:cannot open output file release/first.exe: Permission denied
- 对于CodeBlocks里经常出现cannot open output file ****(文件名) permission denied的原因
- HDUOJ 2066 一个人的旅行(dijkstra算法)
- UI 一一 自定义等高cell (纯代码-Frame)方式
- 微信小程序 wx:key详细介绍
- MindManager安装环境
- 【PRML】—— 共轭分布
- /usr/bin/ld: cannot open output file a.out: Permission denied,解决办法在最后
- nginx 上传大文件超时
- JZOJ5275. 水管
- MySQL 存储过程
- 架构师---(大型网站技术架构核心原理与案例分析)1大型网站架构演化
- gdut
- Maven 打包 关于线下能运行不能打包的原因
- UE4 在蓝图类里面得到关卡蓝图的画布/button等
- Codeforces Round #303 (Div. 2) D. Queue 【贪心】