bin/sh -c:line 1 Syntax Error:unexpected end of file的解决方法
2014-11-15 16:56
676 查看
android ndk编译,之前一直很正常,但是后来不知道修改了什么,编译时会出现这样的错误。
bin/sh -c:line 1 Syntax Error:unexpected end of file
make: *** [ libs-armeabi-gdbserver] Error 1
之前以为是我的代码问题,但是尝试了ndk自带sample问题依旧。感觉是环境配置错误。
经多方尝试,发现问题是系统Path环境变量配置错误。
1、环境变量里面不要有 cygwin/bin 目录
2、其他一些gun目录(比如MinGW)也可能导致这个问题。
bin/sh -c:line 1 Syntax Error:unexpected end of file
make: *** [ libs-armeabi-gdbserver] Error 1
之前以为是我的代码问题,但是尝试了ndk自带sample问题依旧。感觉是环境配置错误。
经多方尝试,发现问题是系统Path环境变量配置错误。
1、环境变量里面不要有 cygwin/bin 目录
2、其他一些gun目录(比如MinGW)也可能导致这个问题。
相关文章推荐
- bin/sh -c:line 1 Syntax Error:unexpected end of file的解决方法
- 关于Qt for Android 编译时出错/usr/bin/sh: -c: line 1: syntax error: unexpected end of file 时的解决方法
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- 【问题解决】syntax error: unexpected end of file或-bash: ./full_build.sh: /bin/bash^M: bad interpreter: No
- 【问题解决】syntax error: unexpected end of file或-bash: ./full_build.sh: /bin/bash^M: bad interpreter: No
- Parse error: syntax error, unexpected end of file in *.php on line * 解决方法
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- syntax error: unexpected end of file解决方法
- 在执行shell脚本时,出现“syntax error : unexpected end of file"错误的解决方法
- bash: /home/x/.bash_profile: line 48: syntax error: unexpected end of file的解决
- 配置NDK syntax error: unexpected end of file 解决
- Parse error: syntax error, unexpected end of file in * 的解决办法
- .bashrc: line 123: syntax error: unexpected end of file
- 修改文件.bash_profile后报错 /home/tomcat/.bash_profile: line 18: syntax error: unexpected end of file
- 配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
- 出现此问题的解决方法: unexpected end of file while looking for precompiled header directive
- 解决shell错误:syntax error: unexpected end of file
- linux下执行sh出现异常"syntax error: unexpected end of file"
- 编译VC++6.0时出出现unexpected end of file while looking for precompiled header directived解决方法