簡體   English   中英

重新啟動/注銷/登錄后,如何使Python3.6 Red Hat Software Collection持久存在?

[英]How can I make Python3.6, Red Hat Software Collection, persist after a reboot/logout/login?

我試圖在重新啟動后啟用rh-python36軟件收集,所以我可以避免一直調用“ scl enable”。
解壓縮並安裝軟件包后:

yum install -y tmp/rpms/*

我使用以下腳本在/etc/profile.d下創建了一個新文件“ python36.sh”:

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

重新啟動或重新啟動實例后,我得到: No such file or directoryenable
我正在使用CentOS版本6.10(最終版)

嘗試這個:

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

參考文檔: https : //access.redhat.com/solutions/527703

如果您具有root特權,則將下面的代碼行添加到根目錄中的.bash_profile文件中:

source /opt/rh/rh-python36/enable

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM