diff --git a/README.md b/README.md
index 1aaefd91..45d9b2ca 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,7 @@ Following packages are required before installing the project (install them with
* python3.8 or higher
* python3-pip
* python3-venv
+* libpq-dev to compile psycopg2
* gettext and pcregrep to use the translation features
* ffmpeg for audio processing
diff --git a/docs/src/installation.rst b/docs/src/installation.rst
index 71d4aaa6..82162f8c 100644
--- a/docs/src/installation.rst
+++ b/docs/src/installation.rst
@@ -15,6 +15,8 @@ Followings are required before installing the project (install them with your ma
* `git `_
* `python3.8 `_ or higher
* `python3-pip `_ (`Debian-based distributions `_, e.g. `Ubuntu `__) / `python-pip `_ (`Arch-based distributions `_)
+* `python3-venv `__
+* `libpq-dev `__ to compile `psycopg2 `__
* `gettext `_ and `pcregrep `_ to use the translation features
* `ffmpeg `_ for audio processing
diff --git a/docs/src/prod-server.rst b/docs/src/prod-server.rst
index 89a3d79f..a74d1cba 100644
--- a/docs/src/prod-server.rst
+++ b/docs/src/prod-server.rst
@@ -21,7 +21,7 @@ System requirements
2. Install system requirements::
- sudo apt -y install python3-venv python3-pip ffmpeg
+ sudo apt -y install python3-venv python3-pip libpq-dev ffmpeg
Lunes CMS Package
diff --git a/lunes_cms/README.md b/lunes_cms/README.md
index fab991eb..620a8b4b 100644
--- a/lunes_cms/README.md
+++ b/lunes_cms/README.md
@@ -19,7 +19,10 @@ Following packages are required before installing the project (install them with
* python3.8 or greater
* python3-pip
+* python3-venv
* ffmpeg
+* libpq-dev
+* [PostgreSQL](https://www.postgresql.org/) database server
* [Apache2](https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/modwsgi/) server with `mod_wsgi`
### Installation
diff --git a/requirements.system b/requirements.system
index eedc1a86..48b86b34 100644
--- a/requirements.system
+++ b/requirements.system
@@ -1,3 +1,6 @@
+python3-pip
+python3-venv
+libpq-dev
ffmpeg
gettext
pcregrep
\ No newline at end of file
diff --git a/tools/install.sh b/tools/install.sh
index 5163d5d7..2b5e55e4 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -24,6 +24,11 @@ if [[ ! -x "$(command -v pip3)" ]]; then
echo "Pip for Python3 is not installed. Please install python3-pip manually and run this script again." | print_error
exit 1
fi
+# Check if prerequisite for psycopg2 is installed
+if [[ ! -x "$(command -v pg_config)" ]]; then
+ echo "The command pg_config is not available. Please install libpq-dev manually and run this script again." | print_error
+ exit 1
+fi
# Check if nc (netcat) is installed
if [[ ! -x "$(command -v nc)" ]]; then
echo "Netcat is not installed. Please install it manually and run this script again." | print_error