LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-26-2014, 12:26 PM   #1
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Google earth no longer starts.


I installed Google Earth on Sid with multilib using google-earth-stable_current_i386.deb then using dpkg-deb to remove the dependency upon lsb and create a new .deb file and installing the new .deb file with dpkg in the usual way.
Google Earth was working absolutely fine until I came to open it today, clicked on the icon I have for it, and nothing happened. Running it frmo teh command-line I see:
Code:
$ google-earth 
/usr/bin/google-earth: 43: /usr/bin/google-earth: ./googleearth-bin: not found
I've tried simlinking googleearth-bin in /usr/bin to no effect. I've even removed Google Earth, redownloaded the .deb and starteed again but to no avail either.
Anyone seen this or have any ideas how to fix it?
 
Old 01-27-2014, 09:29 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I start Google Earth with the command, "googleearth" (no hyphen).
 
Old 01-27-2014, 10:11 PM   #3
wsurfak
LQ Newbie
 
Registered: Jan 2012
Location: MA, USA
Distribution: Debian Sid
Posts: 11

Rep: Reputation: Disabled
When I make this i386 package on my amd64 multilib install (version 7.1.2.2041-r0) removing the lsb-core dependency, it installs and starts, but there are some errors and graphical issues. /usr/bin/google-earth should be a symlink to /opt/google/earth/free/googleearth, which is a script with 43 lines that determines the right library path and ends with "LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"". You should have the binary file googleearth-bin in /opt/google/earth/free/, that launches Google Earth. If that file exists, then the googleearth script must be looking for it in the wrong location.

Code:
ll /usr/bin/google-earth 
lrwxrwxrwx 1 alex alex 34 Oct  7 15:22 /usr/bin/google-earth -> /opt/google/earth/free/googleearth
$ cat /opt/google/earth/free/googleearth
#!/bin/sh
# Always run Google Earth from this shell script and not
# Google Earth directly! This script makes sure the app looks
# in the right place for libraries that might also be installed
# elsewhere on your system.
#
# Ryan C. Gordon,  Thu Jul 20 14:32:33 PDT 2006

# Function to find the real directory a program resides in.
FindPath()
{
    fullpath="`echo $1 | grep /`"
    if [ "$fullpath" = "" ]; then
        oIFS="$IFS"
        IFS=:
        for path in $PATH
        do if [ -x "$path/$1" ]; then
               if [ "$path" = "" ]; then
                   path="."
               fi
               fullpath="$path/$1"
               break
           fi
        done
        IFS="$oIFS"
    fi
    if [ "$fullpath" = "" ]; then
        fullpath="$1"
    fi

    # Is the sed/ls magic portable?
    if [ -L "$fullpath" ]; then
        #fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
        fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
    fi
    dirname $fullpath
}

script_path=$(FindPath $0);

cd $script_path;

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"
$ ll /opt/google/earth/free/goog*
-rwxr-xr-x 1 alex alex 1112 Oct  7 15:07 /opt/google/earth/free/googleearth
lrwxrwxrwx 1 alex alex   34 Oct  7 15:22 /opt/google/earth/free/google-earth -> /opt/google/earth/free/googleearth
-rwxr-xr-x 1 alex alex 5552 Oct  7 15:22 /opt/google/earth/free/googleearth-bin
-rw-r--r-- 1 alex alex  390 Oct  7 15:22 /opt/google/earth/free/google-earth.desktop
 
Old 01-28-2014, 01:10 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
When I try to run "googlearth" I get "command not found". At some stage I think both worked the same. I created a simlink in /usr/bin to /opt/google/earth/free/googleearth and now it reports the same error.
/opt/google/earth/free/googleearth-bin definitely exists. I did try creating a simlink in /usr/bin also but that resulsts in teh same original error of "/usr/bin/google-earth: 43: /usr/bin/google-earth: ./googleearth-bin: not found".
It really has me stumped as I haven't done anything related to the Google Earth packaged between it working and stopping working.
 
Old 01-28-2014, 08:57 AM   #5
wsurfak
LQ Newbie
 
Registered: Jan 2012
Location: MA, USA
Distribution: Debian Sid
Posts: 11

Rep: Reputation: Disabled
What happens when you run

Code:
LD_LIBRARY_PATH=/opt/google/earth/free:$LD_LIBRARY_PATH /opt/google/earth/free/googleearth-bin
 
Old 01-28-2014, 03:31 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Code:
$ LD_LIBRARY_PATH=/opt/google/earth/free:$LD_LIBRARY_PATH /opt/google/earth/free/googleearth-bin
bash: /opt/google/earth/free/googleearth-bin: No such file or director
 
Old 01-28-2014, 08:39 PM   #7
wsurfak
LQ Newbie
 
Registered: Jan 2012
Location: MA, USA
Distribution: Debian Sid
Posts: 11

Rep: Reputation: Disabled
If /opt/google/earth/free/googleearth-bin doesn't exist, that would be your problem. That file should be installed as part of the package. You can check:

Code:
$ dpkg-deb -W google-earth-stable_current-custom_i386.deb 
google-earth-stable     7.1.2.2041-r0

$ dpkg-deb -c google-earth-stable_current-custom_i386.deb | grep googleearth
-rwxr-xr-x alex/alex      1112 2013-10-07 15:07 ./opt/google/earth/free/googleearth
-rwxr-xr-x alex/alex      5552 2013-10-07 15:22 ./opt/google/earth/free/googleearth-bin
-rwxr-xr-x alex/alex   3645704 2013-10-07 15:22 ./opt/google/earth/free/libgoogleearth_free.so
lrwxrwxrwx alex/alex         0 2013-10-07 15:22 ./usr/bin/google-earth -> /opt/google/earth/free/googleearth
lrwxrwxrwx alex/alex         0 2013-10-07 15:22 ./opt/google/earth/free/google-earth -> /opt/google/earth/free/googleearth

$ apt-cache policy google-earth-stable:i386
google-earth-stable:i386:
  Installed: 7.1.2.2041-r0
  Candidate: 7.1.2.2041-r0
  Version table:
 *** 7.1.2.2041-r0 0
        100 /var/lib/dpkg/status
     6.0.3.2197-r0 0
        400 http://dl.google.com/linux/earth/deb/ stable/main i386 Packages

$ dpkg -L google-earth-stable | grep googleearth
/opt/google/earth/free/googleearth
/opt/google/earth/free/googleearth-bin
/opt/google/earth/free/libgoogleearth_free.so
alex@MSAK1:~/Programs$
 
Old 01-29-2014, 01:19 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
The executable definitely exists - I simlinked to it in case that worked. Nothing regarding the Google Earth package should have changed as none of the dist-upgrades I have run have touched it (since it's not installed by apt) and I don't even recall any libraries being updated though I am beginning to wonder whether the error is a red herring and I did somehow remove a 32 bit library.
Code:
$ dpkg-deb -W google-earth-i386.deb 
google-earth-stable	7.1.2.2041-r0
Code:
$ apt-cache policy google-earth-stable:i386
google-earth-stable:i386:
  Installed: 7.1.2.2041-r0
  Candidate: 7.1.2.2041-r0
  Version table:
 *** 7.1.2.2041-r0 0
        100 /var/lib/dpkg/status
     6.0.3.2197-r0 0
        500 http://dl.google.com/linux/earth/deb/ stable/main i386 Packages
Code:
$ dpkg -L google-earth-stable | grep googleearth
/opt/google/earth/free/googleearth-bin
/opt/google/earth/free/libgoogleearth_free.so
/opt/google/earth/free/googleearth
 
Old 01-29-2014, 01:24 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Following on from the above, I don't seem to have lsb:i386 installed (and can't install it due to broken dependencies) but I am not sure whether I ever did. Certainly running ldd on the Google Earth binary looks OK.
Code:
$ ldd googleearth-bin 
	linux-gate.so.1 (0xf773d000)
	libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xf76d0000)
	libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf7688000)
	libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf74d8000)
	libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf74d0000)
	libgoogleearth_free.so => not found
	libglobalnew.so => not found
	libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xf6a18000)
	libQtNetwork.so.4 => /usr/lib/i386-linux-gnu/libQtNetwork.so.4 (0xf68d0000)
	libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf6890000)
	libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf67e8000)
	libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf66b0000)
	libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf66a0000)
	libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf6688000)
	libGL.so.1 => /usr/lib/i386-linux-gnu/libGL.so.1 (0xf6580000)
	libGLU.so.1 => /usr/lib/i386-linux-gnu/libGLU.so.1 (0xf6508000)
	librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xf64f8000)
	libQtCore.so.4 => /usr/lib/i386-linux-gnu/libQtCore.so.4 (0xf6208000)
	libQtWebKit.so.4 => /usr/lib/i386-linux-gnu/libQtWebKit.so.4 (0xf4b50000)
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf4a60000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf4a40000)
	/lib/ld-lsb.so.3 => /lib/ld-linux.so.2 (0xf7718000)
	libaudio.so.2 => /usr/lib/i386-linux-gnu/libaudio.so.2 (0xf4a20000)
	libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xf4918000)
	libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xf48e8000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf48c8000)
	libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 (0xf4870000)
	libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xf4868000)
	libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xf4848000)
	libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf4820000)
	libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf47f8000)
	libnvidia-tls.so.331.38 => /usr/lib/i386-linux-gnu/tls/libnvidia-tls.so.331.38 (0xf47f0000)
	libnvidia-glcore.so.331.38 => /usr/lib/i386-linux-gnu/libnvidia-glcore.so.331.38 (0xf25a8000)
	libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xf24e8000)
	libgstapp-0.10.so.0 => /usr/lib/i386-linux-gnu/libgstapp-0.10.so.0 (0xf24d8000)
	libgstinterfaces-0.10.so.0 => /usr/lib/i386-linux-gnu/libgstinterfaces-0.10.so.0 (0xf24c0000)
	libgstpbutils-0.10.so.0 => /usr/lib/i386-linux-gnu/libgstpbutils-0.10.so.0 (0xf2498000)
	libgstvideo-0.10.so.0 => /usr/lib/i386-linux-gnu/libgstvideo-0.10.so.0 (0xf2478000)
	libgstbase-0.10.so.0 => /usr/lib/i386-linux-gnu/libgstbase-0.10.so.0 (0xf2410000)
	libgstreamer-0.10.so.0 => /usr/lib/i386-linux-gnu/libgstreamer-0.10.so.0 (0xf2320000)
	libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0xf22c0000)
	libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf22b8000)
	libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xf2278000)
	libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xf2270000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf2268000)
	libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf2260000)
	liborc-0.4.so.0 => /usr/lib/i386-linux-gnu/liborc-0.4.so.0 (0xf21c8000)
	libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 (0xf21c0000)
	libxml2.so.2 => /usr/lib/i386-linux-gnu/libxml2.so.2 (0xf2060000)
	liblzma.so.5 => /lib/i386-linux-gnu/liblzma.so.5 (0xf2038000)
 
Old 01-29-2014, 09:29 AM   #10
wsurfak
LQ Newbie
 
Registered: Jan 2012
Location: MA, USA
Distribution: Debian Sid
Posts: 11

Rep: Reputation: Disabled
Bash is saying googleearth-bin isn't in /opt/google/earth/free, where it should be:
Code:
bash: /opt/google/earth/free/googleearth-bin: No such file or director
So, where is it? What's the output of
Code:
ls -l /opt/google/earth/free/goog*
and
Code:
# updatedb
# locate googleearth-bin
?
 
Old 01-29-2014, 02:36 PM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
It is there, as it has been since I first installed Google Eeath several weeks ago:
Code:
$ ls -l /opt/google/earth/free/goog*
-rwxr-xr-x 1 me me 1112 Oct  7 20:07 /opt/google/earth/free/googleearth
lrwxrwxrwx 1 me me   34 Oct  7 20:22 /opt/google/earth/free/google-earth -> /opt/google/earth/free/googleearth
-rwxr-xr-x 1 me me 5552 Oct  7 20:22 /opt/google/earth/free/googleearth-bin
-rw-r--r-- 1 me me  390 Oct  7 20:22 /opt/google/earth/free/google-earth.desktop
However, locate returns nothing.
 
Old 01-29-2014, 08:14 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
This is truly curious.

I have a google-earth directory in /opt and it's full of Google Earth stuff.

What is the output of "whereis googleearth"?

In my case, it reports

Code:
/usr/local/bin/googleearth
which is symlinked to /opt/google-earth//googleearth, and both

Code:
/usr/local/bin/googleearth      and
/opt/google-earth/googleearth
will start the program.

Last edited by frankbell; 01-29-2014 at 08:15 PM.
 
Old 01-29-2014, 08:37 PM   #13
wsurfak
LQ Newbie
 
Registered: Jan 2012
Location: MA, USA
Distribution: Debian Sid
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by 273
It is there, as it has been since I first installed Google Eeath several weeks ago
So ls shows the file, but bash can't find it? I assume you can't execute it:
Code:
$ cd /opt/google/earth/free/
$ ./googleearth-bin                                                                            
./googleearth-bin: error while loading shared libraries: libgoogleearth_free.so: cannot open shared object file: No such file or directory
Can you run 'file' on it?
Code:
$ file googleearth-bin 
googleearth-bin: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=42a1442d99cfd87e41ca36c3b41de1dc5fdd6f81, stripped
Get an MD5 checksum?
Code:
$ md5sum googleearth-bin 
0ae3dbe0af5455e4a8bcfb554c318026  googleearth-bin
You might want to check your file system with fsck and/or check your hard drive health with gsmartcontrol.

Last edited by wsurfak; 01-29-2014 at 08:45 PM. Reason: Added 'cd /opt/google/earth/free/' and quoted message
 
Old 01-30-2014, 01:23 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
This is very strange, Google Earth now starts fine and I haven't made any changes to it since yesterday. Both file and md5sum check out fine (exactly as posted above).
I don't have time to investigate now so I'll not mark anything solved until I've a better idea what it going on.
 
Old 02-01-2014, 03:15 AM   #15
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Well, it's still working and I can't see anything obvious that's been changed by apt so I think I'll just have to mark this as solved and hope it doesn't happen again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Show Photos on Google Earth and Google Maps with*digiKam LXer Syndicated Linux News 0 10-12-2011 08:20 PM
no 'Earth' on Google earth blastradius Linux - Software 19 02-01-2009 12:05 PM
LXer: Google Maps and Google Earth KML overlays LXer Syndicated Linux News 0 10-29-2008 04:30 AM
Google Earth produces 'holes' in planet earth greengrocer Linux - Newbie 5 07-18-2006 10:57 PM
Help! My SuSe no longer starts! J_Szucs Linux - General 4 05-18-2003 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration