1.切換成root的身分來執行安裝:
| [don@localhost ~]$ su 密碼: |
2.下載安裝程式:
| [root@localhost ~]# wget http://dl.google.com/earth/client/current/GoogleEarthLinux.bin [root@localhost ~]# sh GoogleEarthLinux.bin |
3.以預設路徑開始安裝,畫面如下:

4.完裝完成如下圖:

5.安裝完成執行時,出現了以下的錯誤訊息:
[root@localhost ~]# googleearth
./googleearth-bin: error while loading shared libraries: ./libminizip.so:
cannot restore segment prot after reloc: Permission denied
6.參考這篇文章:https://bugzilla.redhat.com/show_bug.cgi?id=473806
P.S.文章中有這段爭議 Did you report this bug to google? They have built thier libraries
incorrectly. They need to be built using -PIC.
a.依據文章建議修改SELinux設定,指令如下:
selinux-policy-3.5.13-44.fc10
| [root@localhost ~]# matchpathcon /opt/google-earth/libnavigate.so /opt/google-earth/libnavigate.so system_u:object_r:textrel_shlib_t:s0 |
b.或者依據setroubleshooter設定,指令如下:
| [root@localhost ~]# cd /opt/google-earth/ [root@localhost google-earth]# chcon -t textrel_shlib_t libminizip.so librender.so libauth.so libevll.so libnavigate.so liblayer.so libgps.so libmeasure.so libbasicingest.so libgooglesearch.so libinput_plugin.so libflightsim.so |
7.更改google-earth的GUI字型設定,指令如下:
P.S.原本為標楷體,字型小、顯示不完整。
|
[root@localhost ~]# cd /opt/google-earth/ [root@localhost google-earth]# ln -s /usr/lib/libQtCore.so.4.4.3 libQtCore.so.4 |
8.修改完成後,直接在command line下google earth指令便可正常執行,如下圖:
9.最後再將安裝檔刪除,即大功告成。
| [root@localhost google-earth]# cd [root@localhost ~]# rm -f GoogleEarthLinux.bin |
Posted in Linux應用程式, 電腦資訊 | 2,733 views|