Ubuntu Forums Archive Viewer

Make Google Earth use system libraries

Archived thread 1116072 from Outdated Tutorials & Tips. Markdown source: Outdated_Tutorials_&_Tips/thread_1116072_Make_Google_Earth_use_system_libraries.md

Original URL About this archive
#1

Idea from here: http://forums.gentoo.org/viewtopic-t-735431.html

Step 1: Install Google Earth

Step 2: Paste this in google-earth-libraries.sh:

#!/bin/bash 
 
cd /opt/googleearth 
 
find . -maxdepth 1 -type f -regex '^\./lib.*so\..*' -printf '%f\n' | while read lib 
do 
        echo "Searching for $lib ..." 
        find /lib /usr/lib/ -name "$lib" \ 
                -exec echo -n "Replacing $lib with {} ... " \; \ 
                -exec ln -fs '{}' "$lib" \; \ 
                -exec echo "OK" \; 
done

Step 3. Run the script.

sudo sh google-earth-libraries.sh

You are now the proud owner of an extra 19MB!