12.04.4 LTS用のlibstdc ++.so.5を取得する方法は?

12.04.4 LTS用のlibstdc ++.so.5を取得する方法は?

以前のAdaptecアレイコントローラを監視するためにいくつかのソフトウェアを実行し、次のような結果を得ました。

error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

だから検索しようとしましたが、何もリストされていません。

   $ sudo apt-cache search libstd*
    libstonith1 - Reusable cluster libraries -- libstonith1
    libstdc++6-4.6-dev - GNU Standard C++ Library v3 (development files)
    libstdc++6 - GNU Standard C++ Library v3
    perl - Larry Wall's Practical Extraction and Report Language
    libruby1.8 - Libraries necessary to run Ruby 1.8
    libstartup-notification0 - library for program launch feedback (shared library)

他の場所で推奨されているsedトリックを試しましたが、オンラインリポジトリが以前のバージョンで機能しなくなったため、apt-getの更新に失敗しました。

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

次に、以下からDVD ISOをダウンロードしました。ここきれいな/etc/apt/sources.listに追加しましたが、まだ満足していません。

これは現在のsource.listファイルです:

# CD
deb file:/media/ubuntu-12.04.5-iso/ precise main  restricted

# DVD
#deb file:/media/ubuntu-12.04.5-dvd-iso/ precise main  restricted

$ sudo apt-get update
Get:1 file: precise Release.gpg [198 B]
Get:2 file: precise Release [4,595 B]
Ign file: precise/main TranslationIndex
Ign file: precise/restricted TranslationIndex
Ign file: precise/main Translation-en_AU
Ign file: precise/main Translation-en
Ign file: precise/restricted Translation-en_AU
Ign file: precise/restricted Translation-en
Reading package lists... Done

DVDとCD ISOを試してみました。

その後、以下から.debファイルをダウンロードしてインストールしてみました。 http://old-releases.ubuntu.com/ubuntu/pool/main/g/gcc-3.3/libstdc++5_3.3.6-15ubuntu2_amd64.deb

$ sudo gdebi libstdc++5_3.3.6-15ubuntu2_amd64.deb 
[sudo] password for zanotech: 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Building data structures... Done 
Building data structures... Done 
This package is not able to be installed
Dependency is not satisfiable: gcc-3.3-base (>= 1:3.3.6-15ubuntu2)

もちろん、このサーバーはgcc-4.6-baseを実行しています。

比較のために、Centos 7サーバーでこの問題を解決しました。

# yum -y install compat-libstdc++-33

私はどこで間違っていますか?

ユーティリティを実行しているディレクトリに古いlibstdc ++をインストールする方法はありますか?

ベストアンサー1

これは非常に推測に過ぎず、絶対に推奨されません。しかし、共有オブジェクトファイルが本当に欲しいものであれば、古いものと古いUbuntuのバージョン(必要に応じて作成したばかりのもの、例えば仮想ボックス)で始めるのはどうですか?

おすすめ記事