supertight wrote: ↑2018/01/23 03:30:37
This is the set of commands.
Code: Select all
scl enable devtoolset-4 bash
cmake3 /home/xmr-stak
make /home/xmr-stak/install
I used vim and set the commands into xmr.install.sh with chmod +x
I think, but I'm not sure, the cmake3 command on line 3 isn't correct. Same with make install on line 4.
Yes, you do have an issue there.
Line 1 executes bash in devtoolset-4 environment. (Why the 4? That is old by now.)
In the script, once the bash completes,
Line 2 executes cmake3 in system default environment.
Line 3 executes make in system default environment.
If you do want to run SCL version of cmake3 and make, then you either make that bash run the commands,
or
Code: Select all
scl enable devtoolset-4 cmake3 /home/xmr-stak
scl enable devtoolset-4 make /home/xmr-stak/install
Edit:
Sourcing SCL environment in .bashrc can turn fatal.
For one, prepending to PATH will reoccur on every shell instance, not just in the login shell.
More importantly, you will always hide system default versions for your user. That might be tolerable with devtoolset, but imagine the consequences of enabling, say rh-python36. The 'yum' requires python 2.7. It does run /usr/bin/python, which is 2.7, but the rh-python36 prepends python 3.6's path to mess things up.