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.
This commit is contained in:
Okhin 2018-03-24 20:41:31 +01:00 committed by Rigel Kent
parent 0414ed1066
commit 193b12bf8f
1 changed files with 5 additions and 1 deletions

View File

@ -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