DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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?
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
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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
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:
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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
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
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.