====== Software Collections ====== CentOSのようなRedHat系のディストリビューションで困るのが、開発言語などのバージョンが古いこと。\\ それらの解消を目指したのが[[http://wiki.centos.org/AdditionalResources/Repositories/SCL|The Software Collections ( SCL ) Repository]]((RedHat Software Collection))です。 現在では以下のとおり、https://www.softwarecollections.org/ の利用が推奨されています。 [[http://wiki.centos.org/AdditionalResources/Repositories/SCL|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 ===== インストール ===== - Software Collections toolsをインストールyum install scl-utils - インストールしたいソフトウェアのyumリポジトリをダウンロードしてインストール \\ 例:python33wget 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例:ruby193wget 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 - ソフトウェアのインストール \\ 例:python33yum install python33例:ruby193yum install ruby193 - 使用開始 \\ \\ 例:python33\\ scl enable python33 bash例:ruby193scl enable ruby193 bash - 確認 # ruby -v ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]