配置NDK时出现:-bash: /home/Administrator/.bash_profile: line 47: syntax error: unexpected .
2013-11-07 10:57
429 查看
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=/cygdrive/e/android-ndk-r8e-windows-x86 export NDK
在启动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 Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
- bash: /home/x/.bash_profile: line 48: syntax error: unexpected end of file的解决
- ndk环境配置修改bash_profile文件时出现的问题
- 修改文件.bash_profile后报错 /home/tomcat/.bash_profile: line 18: syntax error: unexpected end of file
- MacOSX配置java_home找不到.bash_profile 文件的解决办法
- 配置NDK syntax error: unexpected end of file 解决
- 11.2 oracle 用户的配置文件 /home/oracle/.bash_profile
- 11.2 grid 用户的配置文件 /home/grid/.bash_profile
- openwrt移植程序时出现line 1: syntax error: unexpected "("
- Shell中EOF出现syntax error: unexpected end of file
- 错误:line 1: syntax error: "(" unexpected
- MyEclipse中出现Multiple annotations found at this line: - Syntax error, insert "}" to complete 错误解决方法
- linux下系统启动时,几个配置文件 /etc/profile、~/.bash_profile 等几个文件的执行过程,先后顺序
- Linux下文件 ~/.bashrc 和 ~/.bash_profile 和 /etc/bashrc 和 /etc/profile 的区别 | 用户登录后加载配置文件的顺序
- 环境配置文件: login, non-login shell, /etc/profile, ~/.bash_profile, source, ~/.bashrc
- mac ~/.bash_profile 配置
- 可执行程序无法在Linux上运行,显示line 1: syntax error: word unexpected (expecting ")
- linux下系统启动时,几个配置文件 /etc/profile、~/.bash_profile 等几个文件的执行过程,先后顺序