From 2900f5ac0b8610ffb832841aa94e46b720757eaa Mon Sep 17 00:00:00 2001 From: skrzepto Date: May 25 2016 19:41:16 +0000 Subject: [PATCH 1/2] Added section about cloning repository, and also solution for missing redhat-hardened-cc1 when you try to install the requirements --- diff --git a/README.rst b/README.rst index 7fe3e92..9d50626 100644 --- a/README.rst +++ b/README.rst @@ -38,10 +38,23 @@ type ``workon hubs``, which will re-activate the virtual environment that you *made* last time. (The ``mk`` in ``mkvirtualenv`` stands for "make".) +Now we need to pull the project and change our working directory:: + + $ git clone https://pagure.io/fedora-hubs.git + $ cd ./fedora-hubs + OK -- with that done, now install the dependencies from PyPI:: $ pip install -r requirements.txt +If you get an error:: + + gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory + +You need to install ``redhat-rpm-config`` and try again:: + + $ sudo dnf install redhat-rpm-config + With that, try running the app with:: $ python populate.py # To create the db From c40b960b7f87d62e8f90151ef8d0af760117b0ad Mon Sep 17 00:00:00 2001 From: skrzepto Date: May 25 2016 20:15:50 +0000 Subject: [PATCH 2/2] moved redhat-rpm-config to the install fedora section --- diff --git a/README.rst b/README.rst index 9d50626..5ec6862 100644 --- a/README.rst +++ b/README.rst @@ -16,7 +16,7 @@ Hacking ======= Install fedora dependencies:: - $ sudo dnf install gcc gcc-c++ sqlite-devel libffi-devel openssl-devel + $ sudo dnf install gcc gcc-c++ sqlite-devel libffi-devel openssl-devel redhat-rpm-config Hubs should work on either python2 **or** python3. These instructions will show the way for python2 only, though. @@ -47,14 +47,6 @@ OK -- with that done, now install the dependencies from PyPI:: $ pip install -r requirements.txt -If you get an error:: - - gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory - -You need to install ``redhat-rpm-config`` and try again:: - - $ sudo dnf install redhat-rpm-config - With that, try running the app with:: $ python populate.py # To create the db