From 193b12bf8fa7aae3b171fcfe781074b0d23ece58 Mon Sep 17 00:00:00 2001 From: Okhin Date: Sat, 24 Mar 2018 20:41:31 +0100 Subject: [PATCH] Add the activation of a needed SCL for CentOS There's a need to activate the devtool-6 SCL before running the yarn install command, to have node-gyp correctly compiling the needed binaries. --- support/doc/production.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/support/doc/production.md b/support/doc/production.md index 3a58811b0..313b57889 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -51,7 +51,11 @@ $ sudo -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/down $ sudo -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip ``` -Install Peertube +Install Peertube. If you're using CentOS7, do not forget to activate the devtoolset-6 software collection: +``` +$ scl enable devtool-6 bash +``` +And after that, follow the step as usual. Do not forget to exit the environment after installing Peertube. ``` $ cd ../ && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest $ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-lockfile -- 2.25.1