Open swilkinson423 opened 1 year ago
I have a similar issue; psql
returns -bash: psql: command not found
.
Virtualbox version: 7.0.20 r163906 Vagrant version: 2.4.1 Ubuntu VM version: 21.4 (kernel 5.11.0-17-generic)
apt list --installed | grep postgresql
returns nothing, suggesting that PostgreSQL is not installed at all. I also tried snap list
, with similar results. A file named pg_config.sh
, presumably a shell script that would configure PostgreSQL after installation, is shown in the tutorial inside of the /vagrant
directory, but I can't find it there on my virtual machine.
Furthermore, the Python libraries used by forum.py
don't seem to be installed either, preventing it from running.
If others are having the same issue, it seems like a user would have to install and configure PostgreSQL and Flask themselves in order to use the VM as intended? I'm not really experienced in doing either so I can't really help with that.
I'm working on the free Introduction to Relational Databases course, and I am stuck on the last section of the second module (Elements of SQL > Installing the Virtual Machine).
In the explanation it says I need to instal Vagrant and VirtualBox to set up a virtual machine and run PostgreSQL:
I am able to install both of these, and they run fine. The version of Vagrant is 2.3.4 and the version of VirtualBox is 7.0.4r154605.
Further down the page, it clearly states that the PostgreSQL server should be automatically available in the VM:
Here is where I run into a problem. I don't think it is actually installing or running PostgreSQL. When I type the 'psql' command, the commandline returns the following:
Am I missing something? Was I supposed to install PostgreSQL myself? When I tried installing it myself, I could only install it on the local machine and don't know how to do so on the virtual machine...