配置NDK时出现:-bash: /home/Administrator/.bash_profile: line 47: syntax error: unexpected .
来源:互联网 发布:超市商品条码数据库 编辑:程序博客网 时间:2024/06/03 11:09
android NDK开发中,在window环境下需要安装cygwin来模拟linux环境,在网上配置文章较多,不详述,在配置的过程中,需要修改cybwin\home\XXX(you computer name)目录下的.bash_profile中末尾添加:
在启动cygwin,会显示
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: /home/lenovo/.bash_profile: line 47: syntax error: unexpected end of file
解决方法:在cygwin中输入:dos2unix -n .bash_profile .bash_profile
关闭重新打开cygwin,ok了。所以再一次提醒,不要用window里的记事本或者写字本打开修改,使用UltraEdit不要转化格式,因为在window下和linux中回车符是不相同的。
转自: http://blog.csdn.net/xdhywj/article/details/9665023
- 配置NDK时出现:-bash: /home/Administrator/.bash_profile: line 47: syntax error: unexpected
- 配置NDK时出现:-bash: /home/Administrator/.bash_profile: line 47: syntax error: unexpected .
- 配置NDK时出现:-bash: /home/Administrator/.bash_profile: line 47: syntax error: unexpected
- bash: /home/x/.bash_profile: line 48: syntax error: unexpected end of file的解决
- 修改文件.bash_profile后报错 /home/tomcat/.bash_profile: line 18: syntax error: unexpected end of file
- -bash: /root/.bash_profile: line 15: syntax error: unexpected end of file
- 配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
- Cygwin配置NDK修改bash_profile后的问题:syntax error: unexpected end of file
- openwrt移植程序时出现line 1: syntax error: unexpected "("
- line 1: syntax error: unexpected "("
- line 1:syntax error: unexpected "("
- line 1: syntax error: "(" unexpected
- line 1: syntax error: "(" unexpected
- line 1: syntax error: "(" unexpected
- line 1: syntax error: unexpected "("
- Parse error: syntax error, unexpected T_STRING in /home/wwwroot/request_handler.php on line 60
- 配置NDK syntax error: unexpected end of file 解决
- ./HelloWorld line 1: syntax error: "(" unexpected问题解决
- ssh无密码访问
- Java与WCF交互(一):Java客户端调用WCF服务
- 2、面向接口_什么是面向接口
- jseclipse插件和myeclipse的使用优化Tips
- LINUX内核设计思想之进程调度
- 配置NDK时出现:-bash: /home/Administrator/.bash_profile: line 47: syntax error: unexpected .
- 商务英语口语 笔记
- GDB命令总结
- 在证书存储区中找不到清单签名证书
- 计算机毕业设计开发(vb,vb.net,c#)
- [体感游戏]关于体感游戏的一些思考(二) --- POV和基本场景
- 解析web.xml
- jQuery Ajax 实例 全解析
- Android 针对WebView开发