Page 1 of 1

[SOLVED] Mageia 8 and google-earth-pro - error message

PostPosted: Mar 8th, '21, 12:50
by bbfuller
I've successfully upgraded three installations of Mageia 7 to Mageia 8 now.

All three of those version 7 installations had the google-earth-pro rpm installed from the Google website and were working well.

After the upgrade, none of the google earths will run.

So far, the most I've done is to uninstall, re-download, remove the ".googleearth" folder and reinstall with no change in what happens.

Issuing the command "google-earth-pro" from the command line gives the following error message:

Code: Select all
google-earth-pro
/usr/bin/google-earth-pro: line 21: 373650 Segmentation fault      (core dumped) "$(dirname "$(readlink -f "$0")")/googleearth-bin" "$@"


Is anybody else having the same problem?

If it's of interest, the basis of the machines is;

Code: Select all
Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
Intel Corporation 4th Generation Core Processor Family Integrated Graphics Controller


Any suggestions as to what an ordinary user might try to get it working again?

Thanks for any interest shown.

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 8th, '21, 19:02
by doktor5000
Do you use 32bit or 64bit google earth ?

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 8th, '21, 19:16
by bbfuller
Thanks for the interest.

It's the 64 bit Google Earth download. It was a 64 bit Earth installed on Mageia 7 that appeared to fail after the upgrade to Mageia 8.

I've since downloaded a new 64 bit version from Google which behaves the same.

Today there was a new Kernel for the installations, I've updated that with the same result.

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 8th, '21, 19:52
by doktor5000
Just tested, fails the same way here on a fresh installation. strace shows it fails after reading /etc/crypto-policies/back-ends/opensslcnf.config
Some recent reports about similar segfaults mention that his might be because it is incompatible with newer curl versions (which was updated due to security vulnerabilities)
See https://support.google.com/earth/thread/99717203?hl=en

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 8th, '21, 19:57
by bbfuller
Reading between the lines, I guess we're at the mercy of Google to release an updated version.

I've added my "upvote" to the link you supplied.

Thanks for the information.

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 8th, '21, 20:48
by doktor5000
I'm not sure that'll happen soon. Peeking a bit at the archlinux package, seems you can workaround it partially like this in the meantime:

Code: Select all
ln -sf /usr/lib64/libcrypto.so /opt/google/earth/pro/libcrypto.so.1.0.0
ln -sf /usr/lib64/libssl.so /opt/google/earth/pro/libssl.so.1.0.0


That at least allows it to load, but then it crashes, seems it still has issues loading some certificates.

I've tried replacing all the Qt5 bundled libraries with symlinks to the system ones, then it loads and hangs at "initializing" - or maybe I just didn't wait long enough ...

Code: Select all
ln -sf /usr/lib64/libQt5Core.so.5 /opt/google/earth/pro/libQt5Core.so.5
ln -sf /usr/lib64/libQt5DBus.so.5 /opt/google/earth/pro/libQt5DBus.so.5
ln -sf /usr/lib64/libQt5Gui.so.5 /opt/google/earth/pro/libQt5Gui.so.5
ln -sf /usr/lib64/libQt5Multimedia.so.5 /opt/google/earth/pro/libQt5Multimedia.so.5
ln -sf /usr/lib64/libQt5MultimediaWidgets.so.5 /opt/google/earth/pro/libQt5MultimediaWidgets.so.5
ln -sf /usr/lib64/libQt5Network.so.5 /opt/google/earth/pro/libQt5Network.so.5
ln -sf /usr/lib64/libQt5OpenGL.so.5 /opt/google/earth/pro/libQt5OpenGL.so.5
ln -sf /usr/lib64/libQt5Positioning.so.5 /opt/google/earth/pro/libQt5Positioning.so.5
ln -sf /usr/lib64/libQt5PrintSupport.so.5 /opt/google/earth/pro/libQt5PrintSupport.so.5
ln -sf /usr/lib64/libQt5Qml.so.5 /opt/google/earth/pro/libQt5Qml.so.5
ln -sf /usr/lib64/libQt5Quick.so.5 /opt/google/earth/pro/libQt5Quick.so.5
ln -sf /usr/lib64/libQt5Script.so.5 /opt/google/earth/pro/libQt5Script.so.5
ln -sf /usr/lib64/libQt5ScriptTools.so.5 /opt/google/earth/pro/libQt5ScriptTools.so.5
ln -sf /usr/lib64/libQt5Sensors.so.5 /opt/google/earth/pro/libQt5Sensors.so.5
ln -sf /usr/lib64/libQt5Sql.so.5 /opt/google/earth/pro/libQt5Sql.so.5
ln -sf /usr/lib64/libQt5Svg.so.5 /opt/google/earth/pro/libQt5Svg.so.5
ln -sf /usr/lib64/libQt5WebChannel.so.5 /opt/google/earth/pro/libQt5WebChannel.so.5
ln -sf /usr/lib64/libQt5WebKit.so.5 /opt/google/earth/pro/libQt5WebKit.so.5
ln -sf /usr/lib64/libQt5WebKitWidgets.so.5 /opt/google/earth/pro/libQt5WebKitWidgets.so.5
ln -sf /usr/lib64/libQt5Widgets.so.5 /opt/google/earth/pro/libQt5Widgets.so.5
ln -sf /usr/lib64/libQt5X11Extras.so.5 /opt/google/earth/pro/libQt5X11Extras.so.5
ln -sf /usr/lib64/libQt5XcbQpa.so.5 /opt/google/earth/pro/libQt5XcbQpa.so.5

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 25th, '21, 18:42
by doktor5000
FWIW, somebody in the german forum mentioned simply moving away /opt/google/earth/pro/libcrypto.so.1.0.0 worked for them and got google earth to start normally, maybe you want to try that.

Re: Mageia 8 and google-earth-pro - error message

PostPosted: Mar 26th, '21, 02:16
by bbfuller
And it does indeed work. I'll give it a longer workout tomorrow morning and mark the thread "Solved" if it stays fixed.

In the meantime, my thanks to you and to whoever in the German Forum worked that out.

Re: [SOLVED] Mageia 8 and google-earth-pro - error message

PostPosted: Mar 26th, '21, 11:13
by bbfuller
Still working fine this morning as far as I can tell. I wonder what purpose it originally served if it can be discarded so easily.

Re: [SOLVED] Mageia 8 and google-earth-pro - error message

PostPosted: Mar 26th, '21, 12:16
by morgano
I guess the version of that file was incompatible with Mageia, but when it is removed the corresponding file in Mageia gets used.

Re: [SOLVED] Mageia 8 and google-earth-pro - error message

PostPosted: Mar 26th, '21, 20:18
by doktor5000
Strange thing is why symlinking to the Mageia library is different then completely removing the library ... but anyways, at least it's working again.

Re: [SOLVED] Mageia 8 and google-earth-pro - error message

PostPosted: Jun 11th, '21, 21:36
by akbrian
Running;
Code: Select all
touch /opt/google/earth/pro/libcurl.so.4

as root also appears to solve the problem.

Re: [SOLVED] Mageia 8 and google-earth-pro - error message

PostPosted: Apr 10th, '23, 19:48
by marchugo
I just add this solution here, as a help for people searching for a way to eleminatie the install problems of Google Earth on Mageia 8.

Excellent help in the section Wike.mageia.org. Helped me in a few minutes, after I had to reinstall MGA 8 after a crash.

Marc.


https://wiki.mageia.org/en/Google_Earth


Download

Mageia does not include Google Earth Pro in the official repositories, so you have to download it manually.

As of now, Google Earth does not offer a 32-bit version anymore.

Visit Google and select the appropriate .rpm (Fedora/openSUSE) option for your system.

If you agree with Google's Terms of Service, save the package.

Install

Go to the location you saved google-earth-pro-stable-current.x86_64.rpm. Right click the file and select program installer, or use urpmi from command line. If you try to launch Google Earth now, you might get a segmentation fault. To correct this, as root:

cd /opt/google/earth/pro/
ln -s libssl.so.1.0.0 libssl.so.1.1
ln -s libcrypto.so.1.0.0 libcrypto.so.1.1

Now you can access the program via Menu > Internet > Google Earth Updates

To recieve updates via Software Center you have to add the Google repositories manually. As root:

urpmi.addmedia --update google-earth https://dl.google.com/linux/earth/rpm/stable/x86_64/
rpm --import https://dl-ssl.google.com/linux/linux_signing_key.pub

As google has not specified the key in the repository, the file /etc/urpmi/urpmi.cfg must be manually edited, to specify the key id to use for verifying packages.

For example:

google-earth https://dl.google.com/linux/earth/rpm/stable/x86_64 {
key-ids: 7fac5991
update
}