我正在努力解决.bash_profile问题,在加载shell时我会立即收到以下警告。
Last login: Wed Nov 6 11:09:22 on ttys000
-bash: /Users/Matthew/.bash_profile: line 1: unexpected EOF while looking for matching ``'
-bash: /Users/Matthew/.bash_profile: line 2: syntax error: unexpected end of file
Matthews-MacBook-Pro-2:~ Matthew$
我的.bash_profile在这里:
/usr/libexec/java_home -v 1.7`export PATH
=/usr/local/bin:/Applications/Postgres.app/Contents/MacOS/bin:/usr/local/rvm/gems/ruby-
1.9.3-p448/bin:/usr/local/rvm/gems/ruby-1.9.3-p448@global/bin:/usr/local/rvm/rubies/ruby-
1.9.3-p448/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/o
pt/ImageMagick/bin
提前致谢!
答案 0 :(得分:1)
你有一个额外的`
这一行:
/usr/libexec/java_home -v 1.7`export PATH
应该是
/usr/libexec/java_home -v 1.7 export PATH