ユーザ用ツール

サイト用ツール


サイドバー

Index

はじめてのおつかい






DokuWiki整形記法


PlayGround



os:centos:scl

Software Collections

CentOSのようなRedHat系のディストリビューションで困るのが、開発言語などのバージョンが古いこと。
それらの解消を目指したのがThe Software Collections ( SCL ) Repository1)です。 現在では以下のとおり、https://www.softwarecollections.org/ の利用が推奨されています。

Software Collections - The SCL repository contains newer versions of various programs. These packages can be installed alongside existing older packages. At the time of writing, the repository contains packages for mariadb55, mysql55, nodejs010, perl516, php54, postgres92, python27, python33 and ruby193. Note that at the time of this writing there are problems replicating the upstream SCL 1.1 packages, and using https://www.softwarecollections.org/ is advised.

提供されているパッケージには以下のようなものがあります。

  • Ruby 1.9.3 (ruby193)
  • Ruby 2.0.0 (ruby200)
  • Python 2.7 (python27)
  • Python 3.3 (python33)
  • PHP 5.4 (php54)
  • Nginx 1.4 (Nginx14)
  • Nginx 1.6 (Nginx16)
  • Perl 5.16.x (perl516)
  • Node.js 0.10 (nodejs010)
  • MariaDB 5.5 (mariadb55)
  • MySQL 5.5 (mysql55)
  • PostgreSQL 9.2 (postgresql92)
  • e.t.c

インストール

  1. Software Collections toolsをインストール
    yum install scl-utils
  2. インストールしたいソフトウェアのyumリポジトリをダウンロードしてインストール
    例:python33
    wget https://www.softwarecollections.org/en/scls/rhscl/python33/epel-6-x86_64/download/rhscl-python33-epel-6-x86_64.noarch.rpm
    yum install rhscl-python33-*.noarch.rpm

    例:ruby193

    wget https://www.softwarecollections.org/en/scls/rhscl/ruby193/epel-6-x86_64/download/rhscl-ruby193-epel-6-x86_64.noarch.rpm
    yum install rhscl-ruby193-*.noarch.rpm
  3. ソフトウェアのインストール
    例:python33
    yum install python33

    例:ruby193

    yum install ruby193
  4. 使用開始

    例:python33
    scl enable python33 bash

    例:ruby193

    scl enable ruby193 bash
  5. 確認
    # ruby -v
    ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
1)
RedHat Software Collection
os/centos/scl.txt · 最終更新: 2017/04/14 14:21 (外部編集)