error while loading share libraries:libstdc++.so.5

問題描述:

在Linux下安裝應用程序時遇到錯誤:

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

解決方法:

1. 如果是CentOS 32bit系統, 直接在終端輸入:

    yum install libstdc++.so.5

    然後yum會自動查找包含libstdc++.so.5的庫文件下載並且安裝

2. 如果是CentOS 64bit系統

    #cd /usr/lib64

    #ln -s libstdc++.so.6 libstdc++.so.5

3. 如果是Redhat系統,yum會失敗,錯誤信息是: This system is not registered with RHN. 這時候需要卸載Redhat自帶的yum,安裝CentOS的yum.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章