从官方下载google earth 6 (.bin).打开终端输入进入所在目录,加上执行权限。运行 ./GoogleEarthLinux.bin --target /uar/local/
这时候运行 ./setup.sh会出现
Verifying archive integrity... All good.
Uncompressing Google Earth for GNU/Linux 6.0.0.1735..............................................................
setup.data/setup.xml:1: parser error : Document is empty
^
setup.data/setup.xml:1: parser error : Start tag expected, '<' not found
^
Couldn't load 'setup.data/setup.xml'
类似的情况,输入下面命令修复,(内容我不怎么清楚)
先进入解压后的目录,在进入/setup.data/Linux/x86/
mv setup.gtk seup.gtk2
回到原来的目录。
执行sudo .setup.sh
这时候会出现安装界面,出现的是英文的,英文好一点的朋友应该能看的懂。install path 是安装的位置,单击begin install 就开始安装了。安装完点击start按钮,这时候有地会出现
Couldn't run Google Earth (googleearth-bin). Is GOOGLEEARTH_DATA_PATH set?
这是在你的bashrc 中没有定义文件的启动位置。进入到家目录,用vi打开bashrc,编辑。
即 cd ~
vi .bashrc
在文件的在后加入
export GOOGLEEARTH_DATA_PATH="你安装到的目录"(即在图形化安装界面install path)下面显示的位置。
保存退出。
在输入 source .bashrc
OK。
这个时候在执行googleearth应该会出现
exec: 50: ./googleearth-bin: not found
或:
googleearth: command not found
那么就应该输入
在安装 Google Earth 6之前,需要先安装 lsb-core. 在 Ubuntu中, 通过如下命令安装
sudo apt-get install lsb-core
这个时候就应该差不多了,但是有时会出现中文显示不好的问题。
没办法,把中文删掉把。rm -rf zh*
然后重启用E版本的
图片在相册中。希望这些能帮助到能够帮助的人。