1

I am trying to enable rh-python36 software collection after reboot So I can avoid calling "scl enable" all the time.
After unzipping and installing the package:

yum install -y tmp/rpms/*

I created a new file "python36.sh" under /etc/profile.d with the following script:

#!/bin/bash
source /opt/rh/rh-python36/enable
export X_SCLS="`scl enable rh-python36 'echo $X_SCLS'`"

After restarting or rebooting the instance, I am getting : No such file or directoryenable
I am using CentOS release 6.10 (Final)

4

2 回答 2

0

如果您具有 root 权限,则将以下代码行添加到您的根目录中的 .bash_profile 文件中:

source /opt/rh/rh-python36/enable
于 2019-05-27T09:19:11.253 回答
0

尝试这个:

#!/bin/bash
source scl_source enable rh-python36

参考文档: https ://access.redhat.com/solutions/527703

于 2019-05-13T17:49:55.687 回答