在ubuntu中安装Google Earth 6




Google Earth 6昨天发布了(查看新特性请到这里)。然而,在Linux中安装它是那么的困难,总是有这样那样的错误。这里有一篇文章介绍在Linux中如何正确安装和运行Google Earth 6。

1. Ubuntu (或是其他基于DebianLinux发行版):

在开始之前,确定你添加了Multiverse库。
1.1)如果你在安装Google Earth 6之前没有安装lsb-core包, 会得到如下错误:

exec: 50: ./googleearth-bin: not found

或是:

googleearth: command not found

所以,首先安装 lsb-core:

sudo apt-get install lsb-core

1.2) 安装可以自动生成Google Earth .deb的Google Earth包。

32:

sudo apt-get install googleearth-package

make-googleearth-package –force

64:

sudo apt-get install googleearth-package ia32-libs

make-googleearth-package –force

1.3) 上面的最后一条命令可以在你的home文件夹中生成Google Earth .deb文件 (在我的系统中是/googleearth_6.0.0.1735+0.5.7-1_i386.deb). 像安装其他.deb文件一样安装它就可以了.

现在Google Earth 6应该可以正常运行了。

2. 手动安装 (任何 Linux发行版, 包括Ubuntu)

2.1) 在安装 Google Earth 6之前,需要先安装 lsb-core. 在 Ubuntu中, 通过如下命令安装

sudo apt-get install lsb-core

2.2) 下载最新版 Google Earth 6 (.bin) 存放在你的home目录下.

2.3)运行如下命令:

cdchmod +x GoogleEarthLinux.bin./GoogleEarthLinux.bin –target /tmp/ge

2.4) 这时你会得到如下错误(或者类似的错误):

./GoogleEarthLinux.binVerifying archive integrity… All good.Uncompressing Google Earth for GNU/Linux 5.1.3533.1731………………………………………………………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’

不用担心,我们用下面的命令修复它:

cd /tmp/ge/setup.data/bin/Linux/x86/mv setup.gtk setup.gtk2cd /tmp/gesudo ./setup.sh

备注: 我只试验了第一种方法 (仅在32位机器上), 但是第二种方法应该也可以.
最后,还是要拜托Google不要把自己的应用程序做的这么难安装吧。

原文地址:Webupd8

原创文章如转载请注明:转自Ubuntu之家 {www.ubuntuhome.com}

本文地址:在ubuntu中安装Google Earth 6


Leave a comment

6 Comments.

  1. LZ 我在UBUNTU10.10上有问题 美报错 只是提示 Aborted
    另外

    dongbincpp 回复:

    截图发我邮箱里:dongbin04@gmail.com

  2. dongbincpp

    自己试了下,需要将
    sudo apt-get install googleearth-packagecd && make-googleearth-package –force

    改为
    sudo apt-get install googleearth-package
    make-googleearth-package –force
    就可以了,不过没有解决中文乱码问题,期待高手解答

  3. http://article.yeeyan.org/view/181899/155088

    转载要说明翻译出处啊

    dongbincpp 回复:

    @vallycn,
    http://article.yeeyan.org/view/181899/155088这个也是我翻译的啊。而且我提交的时候是贴上了www.webupd8.org/2010/11/install-google-earth-6-in-ubuntu-linux.html
    的原文地址的。结果发布后就变成了这种情况:
    原文地址:Webupd8
    能不能改一下??????

    Fcola 回复:

    @dongbincpp, 也是直接链接到原文的,只是缩短了一下 :cry:

Leave a Reply


[ Ctrl + Enter ]

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。