Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th June 2011, 10:20 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
linuxredhatfirefox
Accidentally using 32 bit library on 64 bit system?

When trying to run google-chrome, I am getting:

error while loading shared libraries: libnss3.so.1d: wrong ELF class: ELFCLASS32

I am on a 64bit system and downloaded the 64bit google-chrome. I believe the error above means it is trying to use a 32bit library? That file is a symlink I made to /usr/lib/libnss3.so - why would this not be 64bit?

Thanks,

David
Reply With Quote
  #2  
Old 16th June 2011, 10:23 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,487
linuxfirefox
Re: Accidentally using 32 bit library on 64 bit system?

Quote:
Originally Posted by daviddoria View Post
When trying to run google-chrome, I am getting:

error while loading shared libraries: libnss3.so.1d: wrong ELF class: ELFCLASS32

I am on a 64bit system and downloaded the 64bit google-chrome. I believe the error above means it is trying to use a 32bit library? That file is a symlink I made to /usr/lib/libnss3.so - why would this not be 64bit?

Thanks,

David
Because /usr/lib/libnss3.so is the 32bit library, the 64bit you want is in /usr/lib64/libnss3.so

Fedora in general puts the 32bit compatibility libraries in /usr/lib and 64bit ones in /usr/lib64
Reply With Quote
  #3  
Old 16th June 2011, 10:28 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
linuxredhatfirefox
Re: Accidentally using 32 bit library on 64 bit system?

Ah, great. This is my first day on a 64 bit system

An unrelated question (maybe I should make a new thread):
Some programs seem to look for libraries with extra extensions. E.g. I had libnss3.so in /usr/lib64, but it was looking for libnss3.so.1d, so I had to make a symlink. Is there a reason for this (i.e. what does the exension 1d or 0d mean?) and is there a way to tell it "just use the one without the extension" so I don't have to make symlinks for so many libraries?

Thanks,

David
Reply With Quote
  #4  
Old 16th June 2011, 11:02 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,487
linuxfirefox
Re: Accidentally using 32 bit library on 64 bit system?

Lots of packages will make the symlinks for you but some aren't set up for it. So in those cases you'll have to make some symlinks. The number is a version number, it's for when a library changes in a way so that the new API is incompatible with the old one. Since other programs might still need the old version of the library, that stays on disk as libnss3.so.1 and the new one libnss3.so.2 is for the new app.
This covers a lot of this topic if you want to see more on how libraries work:

http://tldp.org/HOWTO/Program-Librar...libraries.html

especially sections 3.1.1 and 3.2
Reply With Quote
Reply

Tags
accidentally, bit, library

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nice library feature in KDE4 system activity tool marko Using Fedora 0 19th December 2010 12:23 AM
Modifying system call library coo Programming & Packaging 1 18th September 2009 05:53 PM
Where are the reference manuals for GNU C Library and C++ Library ? WarrenTang Programming & Packaging 9 30th March 2008 04:15 AM
Gnome: Accidentally deleted the system tray from my top panel childofasuka Using Fedora 3 29th June 2007 05:09 AM
list library function of a shared library .so powah Programming & Packaging 2 26th April 2006 03:50 AM


Current GMT-time: 22:51 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat