2017-06-17 2 views
0

Je suis en train d'exécuter la commande psql après l'exécution de la commande vagrant up puis vagrant ssh commandeVagrant -bash: psql: command not found sur Windows - Git Bash

$ 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 

`

J'ai essayé ces solutions:

psql: command not found Mac

PostgreSQL command psql not found, trouble adding to $PATH

Avec commande locate psql pour mettre mon propre chemin

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

Mais encore psql pas trouvé

Toute aide?

Répondre

0

Vous devez installer psql sur la machine virtuelle, pour cela, vous devez installer postgresql et postgresql-contrib paquets comme suit:

$ 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