:-)).
So it is possible to replace 43 lines of a script with 3 lines. As for me, it still throws up
Code:
./ge: line 3: ./googleearth-bin: No such file or directory
So I went digging. The first thing I found was that something was looking for /usr/bin/bash :-o?
Well, I just bodged past that with an otherwise harmless symlink in /usr/bin. After all, why stand on principle after coming this far?
Then ldd showed up
Code:
bash-4.3$ sudo ldd ./googleearth-bin |grep found
libgoogleearth_free.so => not found
libglobalnew.so => not found
bash-4.3$
So /opt/google/earth/free went onto ld.so.conf. I probably should have just added it to the LD_LIBRARY_PATH, but whatever. I added a diagnostic 'ls &&' after the first '&&' in your script, and it has definitely done a cd to /opt/google/earth/free. All the above directories back to /opt are owned root:root and perms 0755
I say all the above, because it STILL returns
Code:
/opt/google/earth/free/ge: line 3: ./googleearth-bin: No such file or directory