今天想要在linux下上網看個電影,結果開啟瀏覽器,提示沒有安裝flash player外掛程式,點擊自動安裝,卻提示系統不支援最新版本的外掛程式,我的系統是用的RHEL 5.5。沒辦法,google一番,下載到一個軟體包
install_flash_player_11_linux.i386.tar.gz。安裝方法如下,做個總結:
將軟體包解壓:
[root@test /]# tar zxvf install_flash_player_11_linux.i386.tar.gz /tmp/flashplayer
[root@test /]# ls /tmp/flashplayerlinux
usr libflashplayer.so
我們看到解壓出來的東西有個usr檔案夾,一個庫檔案。庫檔案需要放在Firefox瀏覽器安裝外掛程式的路徑下。但當時我不知道這個路徑。搜尋一下:
[root@test /]# find /usr/ -name firefox
/usr/lib/firefox-3.0.18/firefox
切換到這個路徑看到firefox是個檔案,不是目錄,並沒有找到plugin的路徑。繼續搜尋,換一個關鍵詞mozilla:
[root@test /]# find /usr -name mozilla
/usr/lib/mozilla
/usr/share/mozilla
看這次搜尋結果,切換到/usr/lib/mozilla/下,果然在這裡
[root@test /]# cd /usr/lib/mozilla/
[root@test /]# ls
extensions plugins plugins-wrapped
[root@test /]#
好了,這下就可以執行下面的操作了:
[root@test /]# cp /tmp/flashplayer/libflashplayer.so /usr/lib/mozilla/plugins/ -rf
[root@test /]# chmod 755 /usr/lib/mozilla/plugins/libflashplayer.so
[root@test /]# cp /tmp/flashplayer/usr/* /usr/ -rf
偷了個懶,直接給libflashplayer.so賦755的許可權。
這樣就已經安裝完畢,然後重啟Mozilla firefox就可以啦!!
Ubuntu下Firefox瀏覽器安裝Flash及書籤使用相關事項