配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
来源:互联网 发布:二维码标签机打印软件 编辑:程序博客网 时间:2024/05/21 22:48
可以在cygwin中通过vim修改,也可以在windows安装目录中修改 home\<你的用户名>\.bash_profile 文件中最后添加环境变量
NDKROOT=/cygdrive/e/Andriod/develop/android-ndk-r8
export NDKROOT
其中NDK=/cygdrive/<你的盘符>/<android ndk 目录> ,"NDK"这个名字随便起,以后经常用不要太长。
重启cygwin,输入:
cd $NDK
可进入ndk对应目录说明设置OK。
这时候 出现错误
-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中回车符是不相同的。
0 1
- 配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
- Cygwin配置NDK修改bash_profile后的问题:syntax error: unexpected end of file
- 配置NDK syntax error: unexpected end of file 解决
- 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
- syntax error : unexpected end of file 问题的解决
- PHP关于syntax error语法错误的问题(Parse error: syntax error, unexpected end of file in xxxxxxxx)
- 关于cygwin的“-$'\r': command not found和syntax error: unexpected end of file
- 解决shell错误:syntax error: unexpected end of file
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- -bash: /root/.bash_profile: line 15: syntax error: unexpected end of file
- syntax error: unexpected end of file
- syntax error: unexpected end of file
- shell:syntax error:unexpected end of file
- syntax error: unexpected end of file解决方法
- syntax error:unexpected end of file
- syntax error: unexpected end of file
- syntax error, unexpected end of file
- OC基础:NSString NSNumber 如何学习苹果帮助文档
- 杭电ACM1129——Do the Untwist~~解密 密文
- mysql 学习总结
- Modbus重点部分描述
- NEUQ 1022:二叉树
- 配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
- Qt获取控件位置,坐标总结
- VC获取操作系统版本和名称
- TCP打洞技术
- iOS——播放声音和振动
- erlang创建进程
- 长按桌面进入小部件,选择“设置快捷方式”里任意一个添加到桌面,在设置中将语音设置为英语,添加的快捷方式依然是中文
- 线程同步
- iOS 自定义colletionView(纯代码)