2012年12月9日日曜日

RedHat Linuxへ libstdc++ を導入

Rehat enterprise linux 6 にi-Filter Ver7.5 を導入したときにモジュールが不足しているとエラーが出ました。

Linuxで不足しているモジュールを登録する手順を記載します。

yum でモジュールを追加しようとしてもRedhat network に登録していないとアップデートできません。

Redhat社から案内のメールが担当者へ届いているので、メールにあるリンクから登録し、サイトにあるインストール番号を登録します。



★yumでインストール時にRedhat network に登録されていないとエラーが出ます。


[root@linux tmp]#

[root@linux tmp]# yum install libstdc++
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Nothing to do
[root@linux tmp]#

[root@linux tmp]#



★モジュールが不足していると以下のエラー


[root@linux tmp]#

[root@linux tmp]# rpm -Uvh i-FILTER-Proxy-7.50_jp-05-20120328.i386.rpm
エラー: 依存性の欠如:
libstdc++.so.5 は i-FILTER-Proxy7-7.50_jp-05.i386 に必要とされています
libstdc++.so.5(CXXABI_1.2) は i-FILTER-Proxy7-7.50_jp-05.i386 に必要とされています
libstdc++.so.5(GLIBCPP_3.2) は i-FILTER-Proxy7-7.50_jp-05.i386 に必要とされています
libstdc++.so.5(GLIBCPP_3.2.2) は i-FILTER-Proxy7-7.50_jp-05.i386 に必要とされています
[root@linux tmp]#

[root@linux tmp]#



★Redhat network へ登録後、再度モジュールをインストールします。


[root@linux tmp]#

[root@linux tmp]# yum install compat-libstdc++-33-3.2.3
Loaded plugins: refresh-packagekit, rhnplugin
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.i686 0:3.2.3-69.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
compat-libstdc++-33 i686 3.2.3-69.el6 rhel-i386-server-6 189 k

Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 189 k
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
compat-libstdc++-33-3.2.3-69.el6.i686.rpm | 189 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : compat-libstdc++-33-3.2.3-69.el6.i686 1/1

Installed:
compat-libstdc++-33.i686 0:3.2.3-69.el6

Complete!



★これでインストール完了!



[root@linux tmp]#

[root@linux tmp]# rpm -Uvh i-FILTER-Proxy-7.50_jp-05-20120328.i386.rpm
準備中... ########################################### [100%]
1:i-FILTER-Proxy7 ########################################### [100%]
[root@linux tmp]#

[root@linux tmp]#