1

我正在努力解决 .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

提前致谢!

4

1 回答 1

1

你有一个额外的`

这一行:

/usr/libexec/java_home -v 1.7`export PATH

应该

/usr/libexec/java_home -v 1.7 export PATH
于 2013-11-06T16:31:01.713 回答