LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2012, 11:28 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
Can't install or uninstall RPM file


Hey all, I was trying to install Google Earth (RPM file) using the right-click and Software Install method. That seemed to work but then I couldn't open Google Earth. I tried to reinstall it using rpm -ivh but I got a message saying it was already installed. Well, then I tried to remove it with rpm -ev and I got a message saying it wasn't installed. Sigh. Then I tried an old Windows trick and tried to open it from a command prompt and found this error:

Code:
linux-kfoa:/home/jobee # /usr/bin/google-earth
./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
I tried a zypper search for libgl and nothing came up that looked like it belonged. Google searches weren't much help either. So, the way I see it, I either need to remove a program that isn't there or reinstall a program that was never installed in the first place. Any ideas?

Thanks,

Joe B
 
Old 10-06-2012, 11:33 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
Do you run a 64 bit system? This error looks like you have installed the 32 bit version on a 64 bit system.
 
Old 10-06-2012, 11:35 PM   #3
cuil
LQ Newbie
 
Registered: Sep 2010
Location: chennai
Posts: 5
Blog Entries: 1

Rep: Reputation: 0
Try this command

#rpm -qa "package name"

If it shows your rpm package then you can confirm it it was installed
 
Old 10-07-2012, 12:39 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605
i had to GUESS that this is a opensuse install
but there is no way to know if this is
OpenSUSE 11.4
Opensuse 12.1
opensuse 12.2

and 32 bit or 64 bit

so there is a choice of SIX operating systems here

so


HOW did you install google earth???
for "google-earth-stable_current_x86_64.rpm"

Code:
su -
cd /to/the/location/that/you/saved/it/to
zypper in google-earth-stable_current_x86_64.rpm
------------
32 bit .rpm (For Fedora/openSUSE)
64 bit .rpm (For Fedora/openSUSE)
google-earth-stable_current_x86_64.rpm
--------------

Quote:
I tried a zypper search for libgl and nothing came up
it is part of mesa and should be installed by default
if not
Code:
zypper se mesa
--- then from the list ---
zypper in Mesa
( note if you ARE USING the Nvidia.run driver THIS WILL REPLACE PART OF IT WITH AN INCOMPATIBLE lib
the nvidia GL.h will be incompatible with this .so )


on Opensuse 12.1 64 bit the 64 bit rpm runs just fine
 
Old 10-07-2012, 11:08 AM   #5
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
--> TobiSGD, I double-checked and it's the 64 bit rpm package.

--> cuil, I ran the command and nothing popped up.

--> JohnVV, yeah, I totally missed that one. I'm running OpenSUSE 12.1 64 bit. Sorry. I tried to zypper in Mesa but I get a message that it's already installed and that there isn't an update candidate available.

SO, one command says it's not installed and another command says it is. Any other ideas?

Thanks for the help,

Joe B
 
Old 10-07-2012, 04:30 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605
and you looked in
/usr/lib64 for "libGL.so.1 "
it is a link to /usr/lib/libGL.so.1.2 "
or
if you have a nvidia card and using the .run ( like i do -- " the hard way" ) then "libGL.so.1 " will be a link to "libGL.so.304.51"

i get no error on Opensuse 12.1 64 bit with the 64 bit google earth
 
Old 10-08-2012, 01:34 AM   #7
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Hi John VV, I looked in /usr/lib64 and I did find a libGS.so.1 link to libGL.so.1.2 in there. Do I need to do something like re-register the link?
 
Old 10-08-2012, 02:48 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605
how are you starting google earth ?
i have NO problems with just typing in ( as a normal user)
Code:
google-earth
or the yast2 icon( the windows "start" )
applications / internet / more programs/ 3d planet viewer

have you made changes to the system $PATH or the $LD_LIBRARY_PATH
to double check that your environment is still set correctly
run ( as a normal user )
Code:
echo $PATH
---- then ----
echo $LD_LIBRARY_PATH
in the second one /usr/lib64 should be there

if not
did you manually edit /etc/profile ???

you might need to add /etc/profile.local
with something like this in it
--- edited to remove my settings --
--- you might need to add to this
Code:
PATH=$PATH

PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig     

LD_LIBRARY_PATH=/usr/lib64:/usr/lib

export PATH PKG_CONFIG_PATH LD_LIBRARY_PATH
 
Old 10-08-2012, 12:23 PM   #9
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
how are you starting google earth ?
i have NO problems with just typing in ( as a normal user)
Code:
google-earth
or the yast2 icon( the windows "start" )
applications / internet / more programs/ 3d planet viewer
I've tried running Google Earth from the Applications window and from the CLI. Neither way works.

Quote:
have you made changes to the system $PATH or the $LD_LIBRARY_PATH
to double check that your environment is still set correctly
run ( as a normal user )
Code:
echo $PATH
---- then ----
echo $LD_LIBRARY_PATH
in the second one /usr/lib64 should be there
I haven't made any changes to any of my environment files. When I ran the first "echo" command I saw what appears to be the normal output. When I ran the second command all I received was a blank stare from my terminal window so...

Quote:
if not
did you manually edit /etc/profile ???

you might need to add /etc/profile.local
with something like this in it
--- edited to remove my settings --
--- you might need to add to this
Code:
PATH=$PATH

PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig     

LD_LIBRARY_PATH=/usr/lib64:/usr/lib

export PATH PKG_CONFIG_PATH LD_LIBRARY_PATH
I've added the above statements to a newly created profile.local file and now when I try to run Google Earth from the CLI I get the following error message:

Code:
jobee@linux-kfoa:~> google-earth
./googleearth-bin: error while loading shared libraries: libGL.so.1: wrong ELF class: ELFCLASS64
jobee@linux-kfoa:~>
FWIW I've downloaded the RPM file again and tried to zypper it in but still no joy. Any other ideas? Oh, I've installed OpenSUSE 12.2 and I'm still getting the same error messages.

Thanks,

Joe B
 
Old 10-08-2012, 12:27 PM   #10
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Ok, I just did another zypper in -f and now I'm back to the previous "shared libraries" error:

Code:
linux-kfoa:/home/jobee/Downloads # google-earth
./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
linux-kfoa:/home/jobee/Downloads #
Sigh, I'm trying to get this working because I do a lot of dual-sport motorcycle riding and there are LOTS of roads/trails around where I live. I like Google Earth because it has better speed and better displays than Google Maps (that I've found). Thanks for your help, I really appreciate it.

Thanks,

Joe B

Last edited by jbruyet; 10-08-2012 at 12:28 PM.
 
Old 10-08-2012, 01:42 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
I just had a look at the 64 bit Google Earth RPM offered on their website and in fact it is only a re-packaged 32 bit executable, so you need 32 bit compatibility libraries.
Since I am not a Suse user I can't comment on how to install them, but I think one of the members already participating in this thread can help you with that.
 
Old 10-09-2012, 06:08 PM   #12
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by TobiSGD View Post
I just had a look at the 64 bit Google Earth RPM offered on their website and in fact it is only a re-packaged 32 bit executable, so you need 32 bit compatibility libraries.
"If it weren't for bad luck I'd have no luck at all." Thanks very much TobiGSD for going the extra mile on this.

Quote:
Since I am not a Suse user I can't comment on how to install them, but I think one of the members already participating in this thread can help you with that.
If not I'll check when I get home and see if I can get the "32 bit compatibility libraries" installed.

Thanks again for the help,

Joe B
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to uninstall a software installed with tar.gz file..or .rpm file av.dubey Linux - Newbie 3 06-21-2008 02:27 PM
RPM or Install/Uninstall Manager ? pandasonic Fedora 2 11-19-2004 04:52 AM
RPM Install and Uninstall problems. pradsy90 Linux - Software 1 09-12-2004 01:44 AM
RPM install/uninstall jonlake Linux - Software 2 06-14-2004 09:45 PM
install, uninstall rpm aizkorri Linux - Software 2 05-06-2002 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration