2017-06-17 68 views
0

我試圖運行psql命令運行vagrant up命令然後vagrant ssh命令流浪-bash:PSQL:命令不能在Windows找到 - 蹦擊

$ vagrant ssh 
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-75-generic i686) 

0 packages can be updated. 
0 updates are security updates 

Last login: Sat Jun 17 02:55:00 2017 from 10.0.2.2 

[email protected]:~$ psql 
-bash: psql: command not found 

`

我想這些解決方案之後:

psql: command not found Mac

PostgreSQL command psql not found, trouble adding to $PATH

隨着locate psql命令把我自己的路

/usr/share/bash-completion/completions/psql 

但還是psql沒有找到

任何幫助嗎?

回答

0

您需要在虛擬機上安裝PSQL,爲此,你需要安裝postgresqlpostgresql-contrib套餐如下:

$ vagrant ssh 
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-75-generic i686) 

0 packages can be updated. 
0 updates are security updates 

Last login: Sat Jun 17 02:55:00 2017 from 10.0.2.2 

[email protected]:~$ sudo apt-get update 
[email protected]:~$ sudo apt-get install postgresql postgresql-contrib