Skip to content

Commit

Permalink
Merge pull request #345 from digitalfabrik/enhancement/build-dependen…
Browse files Browse the repository at this point in the history
…cies

Add `libpq-dev` to system prerequisites
  • Loading branch information
timobrembeck committed Jun 19, 2022
2 parents e87f109 + 67b1da7 commit 0294c1e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions docs/src/installation.rst
Expand Up @@ -15,6 +15,8 @@ Followings are required before installing the project (install them with your ma
* `git <https://git-scm.com/>`_
* `python3.8 <https://www.python.org/downloads/release/python-380/>`_ or higher
* `python3-pip <https://packages.ubuntu.com/search?keywords=python3-pip>`_ (`Debian-based distributions <https://en.wikipedia.org/wiki/Category:Debian-based_distributions>`_, e.g. `Ubuntu <https://ubuntu.com>`__) / `python-pip <https://www.archlinux.de/packages/extra/x86_64/python-pip>`_ (`Arch-based distributions <https://wiki.archlinux.org/index.php/Arch-based_distributions>`_)
* `python3-venv <https://docs.python.org/3/library/venv.html>`__
* `libpq-dev <https://www.postgresql.org/docs/9.5/libpq.html>`__ to compile `psycopg2 <https://www.psycopg.org/docs/install.html#build-prerequisites>`__
* `gettext <https://www.gnu.org/software/gettext/>`_ and `pcregrep <https://pcre.org/original/doc/html/pcregrep.html>`_ to use the translation features
* `ffmpeg <https://ffmpeg.org/>`_ for audio processing

Expand Down
2 changes: 1 addition & 1 deletion docs/src/prod-server.rst
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lunes_cms/README.md
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions requirements.system
@@ -1,3 +1,6 @@
python3-pip
python3-venv
libpq-dev
ffmpeg
gettext
pcregrep
5 changes: 5 additions & 0 deletions tools/install.sh
Expand Up @@ -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
Expand Down

0 comments on commit 0294c1e

Please sign in to comment.