我对终端使用很新。在我的MacBook Pro(OS 10.6.8)上安装和激活本地PostgreSQL服务器时,我肯定搞砸了我的.bash_profile(可能是通过搞乱用户/超级用户和密码设置)。
实际上我通过输入运行服务器:
psql -U postgres -p 5432 -d postgres
但我没有得到额外的插件(PostGIS和osm2pgsql)来运行,可能是由于混乱的配置文件。启动终端会话后,将显示以下消息:
-bash: export: /Users/Jop/.bash_profile': not a valid identifier
而.bash_profile的内容是:
export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH source
/Users/Jop/.bash_profile
alias psql=/usr/local/pgsql-9.2/bin/psql
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/bin:$PATH" source /Users/Jop/.bash_profile
alias psql=/usr/local/pgsql-9.2/bin/psql
export PATH="/usr/local/bin:$PATH" source /Users/Jop/.bash_profile
alias psql=/usr/local/opt/postgresql/bin/psql
alias psql=/usr/local/pgsql-9.2/bin/psql
export PATH="/usr/local/bin:$PATH"
任何人都可以帮我吗?提前谢谢了!