2013-01-16 96 views
5

我試圖運行名爲GlimmerHMM程序,但是當我嘗試調用程序我得到這個錯誤:錯誤而載入共享庫的libstdC++ so.5的

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

所以,我試圖下載和安裝:

sudo apt-get install libstdc++5 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
The following packages were automatically installed and are no longer required: 
html2text libmail-sendmail-perl libsys-hostname-long-perl 
Use 'apt-get autoremove' to remove them. 
The following NEW packages will be installed: libstdc++5 
0 upgraded, 1 newly installed, 0 to remove and 183 not upgraded. 
Need to get 255 kB of archives. 
After this operation, 1,155 kB of additional disk space will be used. 
Get:1 http://archive.ubuntu.com/ubuntu/ precise/universe libstdc++5 amd64 1:3.3.6-25ubuntu1 [255 kB] 
Fetched 255 kB in 4s (54.0 kB/s)      
Selecting previously unselected package libstdc++5. 
(Reading database ... 176303 files and directories currently installed.) 
Unpacking libstdc++5 (from .../libstdc++5_1%3a3.3.6-25ubuntu1_amd64.deb) ... 
Setting up libstdc++5 (1:3.3.6-25ubuntu1) ... 
Processing triggers for libc-bin ... 
ldconfig deferred processing now taking place 

但我仍然在調用該程序時出現同樣的錯誤。提前致謝!

+0

您是否在/ usr/lib/now中找到libstdC++。so.5了?在/ usr/lib /中有 –

+0

有libstdC++。so,libstdC++。so.5,libstdC++。so.5.0.7,然後是幾個libstdC++。so.6文件。 – user1784467

回答

8

如果您運行的程序年齡足以需要libstdc++ v5,它也是一個32位應用程序,所以它不能使用您安裝的(64位)libstdc++5。安裝ia32-libs包。

+0

這似乎是伎倆,非常感謝。 – user1784467

+0

它沒有爲我工作。但我試了一下,然後工作:sudo ln -s /usr/lib64/libstdc++.so.5/usr/lib/ –

+0

我成功地通過使用'sudo apt-get install libstdC++ 5.i386'來獲得32-位版本到'/ usr/lib/i386-linux-gnu/libstdC++。so.5'中 –

相關問題