星期三, 5月 10, 2017

Linux 程式執行在函式庫找不到特定函式問題

Firefox 更新後從命令列執行時發生錯誤訊息如下:
/usr/bin/firefox.real: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/bin/firefox.real)
不夠新的函式庫檔案會發生這種錯誤,

用指令 strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
可以檢查現有函式庫是否有需要函式,,
換新的檔案,ln 到新檔案可以解決問題。
( Firefox 有其他問題未解決)

參考: IT笔录

1 則留言:

coffeewhale 提到...

從 command prompt 用指令 iceweasel 也可以執行 firefox.