以電子郵件用戶端thunderbird為例:
今天在debian下安裝了thunderbird。
下載下傳位址:http://www.mozilla.com/en-US/thunderbird/
一、下載下傳thunderbird-2.0.0.0.tar.gz到/home/lana/downloads
>cd /home/lana/downloads
>tar -xzf thunderbird-2.0.0.0.tar.gz
解壓後在/home/lana下産生thunderbird目錄,進入該目錄發現裡沒有configure檔案,而且該目錄下有一個thunderbird執行檔案。可見thunderbird已經被編譯過了。
>./thunderbird
執行提示出錯:
lanazou:/home/lana/downloads/thunderbird# ./thunderbird
./thunderbird-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
解決方法:
apt-get install -u libstdc++5
再執行./thunderbird就可以正常運作thunderbird
二、都正常運作之後,在“應用程式”并沒有出現thunderbird的快捷圖示。
到/usr/share/applications/下查找也沒有thunderbird.desktop檔案,是以“應用程式”就不會有thunderbird的圖示了。
解決方法:
>cd /usr/share/applications
>vi thunderbird.desktop
在thunderbird.desktop中輸入如下内容:
[Desktop Entry]
Name=Thunderbird
Comment=Read/Write Mail/News with Mozilla Thunderbird
Exec=/usr/bin/thunderbird
Icon=/home/lana/downloads/thunderbird-2.0.0.0/icons/mozicon50.xpm
Terminal=false
Type=Application
Categories=Application;Network;
注意:裡面的檔案路徑根據自己檔案存放位置不同來寫的。
退出thunderbird.desktop,儲存。再打開“應用程式”--“internet”就會發現thunderbird的圖示,點選可以正常運作。