Skip to content

Instantly share code, notes, and snippets.

@hidepin
Last active November 2, 2015 15:33
Show Gist options
  • Save hidepin/5d8eb4e28c2bb621c030 to your computer and use it in GitHub Desktop.
Save hidepin/5d8eb4e28c2bb621c030 to your computer and use it in GitHub Desktop.
scl
# SCLのインストール
# yum install centos-release-SCL
# python33のインストール
# yum install python33.x86_64
# python33を使用する場合
# scl enable python33 bash
# OS起動時に使用する場合
# vi /etc/profile.d/enablepython33.sh
#!/bin/bash
source /opt/rh/python33/enable
export X_SCLS="`scl enable python33 'echo $X_SCLS'`"
# software collectionのurl
# https://www.softwarecollections.org/en/
# 外部インストールする場合
yum install scl-utils
yum install https://www.softwarecollections.org/en/scls/rhscl/rh-ruby22/epel-6-x86_64/download/rhscl-rh-ruby22-epel-6-x86_64.noarch.rpm
yum install rh-ruby22
# vi /etc/profile.d/enablerh-ruby22.sh
#!/bin/bash
source /opt/rh/rh-ruby22/enable
export X_SCLS="`scl enable rh-ruby22 'echo $X_SCLS'`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment