我一直试图在我的bash_profile中安装一些东西,如下所示:
# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
我试图将路径添加到我的pg_config文件中:/Applications/Postgres.app/Contents/Versions/9.6/bin
所以我的bash_profile看起来像:
# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:/Applications/Postgres.app/Contents/Versions/9.6/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
当我尝试来源文件时,我得到了:
-bash:/usr/local/bin:/Applications/Postgres.app/Contents/Versions/9.6/bin ::没有这样的文件或目录
当我尝试打开bash_profile时,我得到:
-bash:vim:找不到命令
我做错了什么?
附加信息
我已经通过Homebrew安装了Python,PGAdmin4和Django,同时还下载了Postgress.app,并试图安装psycopg2,但它告诉我没有pg_config。所以我试图将路径添加到我的bash_profile中。我认为这是正确的做法
我认为@melpomene和@Jdamian就在这里。我无法找到然后打开我的bash_profile时遇到了麻烦,因为我无法使用终端运行:
defaults write com.apple.finder AppleShowAllFiles YES
值得庆幸的是,这个答案有所帮助:https : //apple.stackexchange.com/a/186378/70982
我在finder中导航到〜/文件夹,然后运行⌘ CMD+ ⇧ SHIFT+.
崇高地打开,我的道路是这样写的:
export PATH=/usr/local/bin:/Applications/Postgres.app/Contents/Versions/9.6/bin: $PATH
因此,我卸下了回车架,使它们全部装在一条线上,这似乎有所帮助。我现在可以打开Vim
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句