cannot open output file main: Permission denied问题解决办法
2013-06-14 09:19
841 查看
/usr/bin/ld: cannot open output file main: Permission denied
collect2: ld returned 1 exit status
网上搜了一堆资料,有的不太会,有的不太懂,但总的说来应该是权限问题!
权限问题:
发现源文件夹所在目录是root权限,而源文件和makefile文件都是用户lm的权限。
解决办法:
不要在winscp中直接新建文件夹,改用mkdir建立文件夹就会默认是当前用户的权限。
然后把源文件和makefile文件等权限都改为用户权限。
then done!
collect2: ld returned 1 exit status
网上搜了一堆资料,有的不太会,有的不太懂,但总的说来应该是权限问题!
权限问题:
发现源文件夹所在目录是root权限,而源文件和makefile文件都是用户lm的权限。
解决办法:
不要在winscp中直接新建文件夹,改用mkdir建立文件夹就会默认是当前用户的权限。
然后把源文件和makefile文件等权限都改为用户权限。
then done!
相关文章推荐
- cannot open shared object file问题解决办法
- /usr/bin/ld: cannot open output file a.out: Permission denied,解决办法在最后
- 在eclipse中遇到cannot open output file xxx.exe: Permission denied 的解决办法
- CodeBlocks,cannot open output file permission denied的解决办法
- linux上运行程序问题,提示cannot open shared object file错误的解决办法
- CodeBlocks,cannot open output file permission denied的解决办法
- libreadline.so.6: cannot open shared object file 问题解决办法
- (转帖)解决CHM在英文XP上不能阅读的问题:Cannot open the file:mk:@MSITStore Navigation to the webpage was canceled
- 解决办法fatal error C1083: Cannot open precompiled header file: *.pcb
- fedora20 执行 arm-linux-gcc 出现 libz.so.1: cannot open shared object file问题解决方案
- LINK : fatal error LNK1104: cannot open file 'LIBCD.lib' 解决办法
- python3.5连接MySQL出现Cannot open include file: 'config-win.h': No such file or directory 错误解决办法
- 解决Linux: error while loading shared libraries: ...: cannot open shared object file: No such file or directory 类似问题
- linux 安装 VTK 提示libvtkNetCDF_cxx.so: cannot open shared object file: No such file or directory 的解决办法
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- 关于fatal error C1083: Cannot open precompiled header file: /'Debug…….pch/': 错 问题的解决
- Id.exe和ld.exe: cannot open output file … : Permission denied问题。
- c++开发python扩展模块:cannot open file ‘python25_d.lib’解决办法
- ubuntu解决libstdc++.so.6: cannot open shared object file: No such file or directory:问题
- 解决《R语言编程艺术》中read.pnm()中cannot open file 'logo.pgm': No such file or directory的问题