■リポジトリの一時的「有効」と「無効」。
[bibo-roku@centos ~]$ sudo yum install --disablerepo=base,extras,updates --enablerepo=ius httpd ←リポジトリ「IUS」を一時的に有効にする。
エラー: パッケージ: httpd24u-2.4.12-5.ius.centos6.i686 (ius)
要求: /etc/mime.types ←「mime.types」をインストールする必要あり。
|
|
最新の「apache」を提供しているリポジトリは「CentALT」という情報を見かけたのですが、「FireFox」で訪れてみると警告が発せられたのでパスしました。
リポジトリ「IUS」で最新のパッケージを確認したのでこれを利用することにしました。
が、現在
http://westbird.blog.so-net.ne.jp/2015-04-20
で設定したとおり、デフォルトで利用できるリポジトリはID「base」「extras」「updates」だけです。
そしてこれらは今回不要なので、「yum」のオプション「--disablerepo=base,extras,updates」とし無効化します。
次に必要なリポジトリ「IUS」を「--enablerepo=ius」で有効化します。これでインストールを実施します。
するとエラーが発生したので下記でこれに対処します。
■必要なファイルを「yum provides」コマンドで検索する。
エラー: パッケージ: httpd24u-2.4.12-5.ius.centos6.i686 (ius)
要求: /etc/mime.types ←「mime.types」をインストールする必要あり。
[bibo-roku@centos ~]$ sudo yum provides /etc/mime.types ←含まれるパッケージを検索。
---省略---
base | 3.7 kB 00:00
mailcap-2.1.31-2.el6.noarch : Helper application and MIME type associations for
: file types
リポジトリー : base
一致 :
ファイル名 : /etc/mime.types
[bibo-roku@centos ~]$ sudo yum install mailcap
---省略---
インストール:
mailcap.noarch 0:2.1.31-2.el6
完了しました!
|
|
CentOS6.6がminimalインストールなので、インストールするために必要な依存関係のあるパッケージが不足している状態です。
ゆえに、今後も何かインストールするたびに要求されることと思いますが、そのパッケージが名前の通りのものであれば楽ですが、何かのパッケージ内にしか存在しない場合などもあるようで、その場合にパッケージを検索するのに「yum」のオプション「provides」が使えます。
今回は「mailcap」をインストールすることで「mime.types」もインストールされました。
■最新の「apache 2.4.12-5」を「yum」でインストールする。
[bibo-roku@centos ~]$ sudo yum install --disablerepo=base,extras,updates --enablerepo=ius httpd ←先ほど失敗したので再度インストール。
インストール:
httpd24u.i686 0:2.4.12-5.ius.centos6
依存性関連をインストールしました:
apr15u.i686 0:1.5.1-3.ius.centos6
apr15u-util.i686 0:1.5.4-3.ius.centos6
httpd24u-filesystem.noarch 0:2.4.12-5.ius.centos6
httpd24u-tools.i686 0:2.4.12-5.ius.centos6
完了しました!
|
|
ここでは実際にインストールした順で記載しているのでエラーもそのまま書き記しておりますが、「httpd(apache)」をインストールする前に「mailcap」をインストールして置いても良いと思います。
■「httpd-devel」をインストールする。
[bibo-roku@centos ~]$ sudo yum install --disablerepo=base,extras,updates --enablerepo=ius httpd-devel
エラー: パッケージ: apr15u-util-devel-1.5.4-3.ius.centos6.i686 (ius)
要求: expat-devel(x86-32) ←含まれているパッケージを調べる。
エラー: パッケージ: apr15u-util-devel-1.5.4-3.ius.centos6.i686 (ius)
要求: openldap-devel(x86-32) ←含まれているパッケージを調べる。
エラー: パッケージ: apr15u-util-devel-1.5.4-3.ius.centos6.i686 (ius)
要求: db4-devel(x86-32) ←含まれているパッケージを調べる。
[bibo-roku@centos ~]$ sudo yum provides expat-devel
---省略---
expat-devel-2.0.1-11.el6_2.i686 : Libraries and header files to develop
[bibo-roku@centos ~]$ sudo yum provides openldap-devel
---省略---
openldap-devel-2.4.39-8.el6.i686 : LDAP development libraries and header files
[bibo-roku@centos ~]$ sudo yum provides db4-devel
---省略---
db4-devel-4.7.25-18.el6_4.i686 : C development files for the Berkeley DB
[bibo-roku@centos ~]$ sudo yum install expat-devel openldap-devel db4-devel ←必要と言われたファイルをまとめてインストール。
---省略---
インストール:
db4-devel.i686 0:4.7.25-18.el6_4 expat-devel.i686 0:2.0.1-11.el6_2
openldap-devel.i686 0:2.4.39-8.el6
依存性関連をインストールしました:
cyrus-sasl-devel.i686 0:2.1.23-15.el6_6.2 db4-cxx.i686 0:4.7.25-18.el6_4
依存性を更新しました:
cyrus-sasl.i686 0:2.1.23-15.el6_6.2 cyrus-sasl-lib.i686 0:2.1.23-15.el6_6.2
完了しました!
[bibo-roku@centos ~]$ sudo yum install --disablerepo=base,extras,updates --enablerepo=ius httpd-devel ←再度インストール。
---省略---
インストール:
httpd24u-devel.i686 0:2.4.12-5.ius.centos6
依存性関連をインストールしました:
apr15u-devel.i686 0:1.5.1-3.ius.centos6
apr15u-util-devel.i686 0:1.5.4-3.ius.centos6
完了しました!
|
|
前項目と同様、依存関係で必要な物をインストールしてあげます。
■最新の「httpd-manual」をインストールする。
[bibo-roku@centos ~]$ sudo yum --disablerep=base,update,extra --enablerepo=ius install httpd-manual
---省略---
インストール:
httpd24u-manual.noarch 0:2.4.12-5.ius.centos6
完了しました!
|
|
マニュアル関係のファイルなのでしょうかね。
2015-04-24 00:01
nice!(0)
コメント(1)
トラックバック(0)
共通テーマ:パソコン・インターネット
Elton John is my favourite musician of all time. I’m very glad to present for you this tour list. Check <a href=http://eltonjohntour2019.com>Elton John tour dates schedule 2019</a> website to get your tickets for the final Elton John tour 2019.
by EJhuppy (2019-01-01 06:10)