LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-01-2010, 11:12 PM   #1
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
Google Chrome - error loading libnss3.so


Hi slackers,

I upgraded my google chrome which was version 4 to version 5 using packages I got from slackbuilds. The dependencies don't have updates so I don't upgrade them (only chrome). It builds and installs.

However, when i launch it, it simply does not open. Opening via terminal reveals an error:

Code:
/usr/bin/google-chrome: error while loading shared libraries: libnss3.so.1d: cannot open shared object file: No such file or directory
What do I miss? Using slack 13.1 here.

TIA
 
Old 06-02-2010, 12:22 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Hi,

I don't know about the slackbuilds chrome package, but you miss some symlinks. You can make them by hand:
Code:
ln -s /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d
ln -s /usr/lib/libsmime3.so /usr/lib/libsmime3.so.1d
ln -s /usr/lib/libssl3.so /usr/lib/libssl3.so.1d
ln -s /usr/lib/libplds4.so /usr/lib/libplds4.so.0d
ln -s /usr/lib/libplc4.so /usr/lib/libplc4.so.0d
ln -s /usr/lib/libnspr4.so /usr/lib/libnspr4.so.0d
If you're using a 64bit Slack replace /usr/lib with /usr/lib64

Regards
 
Old 06-02-2010, 12:55 AM   #3
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Original Poster
Rep: Reputation: 39
Ummm... That's a lot. Okay I'll take note on that. Got to save that list somewhere.

Thank you very much.

Last edited by dc_eros; 06-02-2010 at 01:57 AM.
 
Old 06-02-2010, 02:47 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,311

Rep: Reputation: Disabled
Those missing files are not called "libnss3.so.1d" and such... the error message is actually two sentences and the dot marks the end of sentence one. The second sentence starts with "ld:"

So, you are actually missing the file libnss3.so which is provided by the seamonkey-solibs package. You will find that package in the "L" package directory. Installing that package will add a line to your library loader (ld) configuration file /etc/ld.so.conf like this:

Code:
/usr/lib64/seamonkey
Eric
 
Old 06-02-2010, 02:55 AM   #5
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Original Poster
Rep: Reputation: 39
Here is the screenshot: http://www.flickr.com/photos/1105939...31671/sizes/l/

I'm using 32 bit. Okay, I'll check it out. I still have those packages at home. Thanks
 
Old 06-02-2010, 03:06 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
OP is right. chrome is looking for those libraries having a 1d and 0d extension:
Code:
ldd /opt/google/chrome/chrome|grep "[0|1]d"
        libnss3.so.1d => /usr/local/lib/libnss3.so.1d (0xb6f36000)
        libnssutil3.so.1d => /usr/local/lib/libnssutil3.so.1d (0xb6f22000)
        libsmime3.so.1d => /usr/local/lib/libsmime3.so.1d (0xb6f03000)
        libplds4.so.0d => /usr/local/lib/libplds4.so.0d (0xb6f00000)
        libplc4.so.0d => /usr/local/lib/libplc4.so.0d (0xb6efc000)
        libnspr4.so.0d => /usr/local/lib/libnspr4.so.0d (0xb6eca000)
 
1 members found this post helpful.
Old 06-02-2010, 04:10 AM   #7
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
The SlackBuild has code for the library links
Code:
# We need bits of Moz, do this as dynamically as possible:
MISSING_LIBS=$(ldd opt/google/chrome/chrome | grep "not found" | cut -d\  -f1 | xargs)
for MLIB in $MISSING_LIBS ; do
  ln -s /usr/lib${LIBDIRSUFFIX}/seamonkey/${MLIB%.?d} opt/google/chrome/$MLIB
done
Even after that, chrome still does not find the needed libraries.

Here's the dirty hack I use.
Code:
#!/bin/bash
 
sed -i 's,libnss3.so.1d,libnss3.so\x00\x00\x00,g;
	s,libnssutil3.so.1d,libnssutil3.so\x00\x00\x00,g;
	s,libsmime3.so.1d,libsmime3.so\x00\x00\x00,g;
	s,libssl3.so.1d,libssl3.so\x00\x00\x00,g;
	s,libplds4.so.0d,libplds4.so\x00\x00\x00,g;
	s,libplc4.so.0d,libplc4.so\x00\x00\x00,g;
	s,libnspr4.so.0d,libnspr4.so\x00\x00\x00,g;' chrome
 
1 members found this post helpful.
Old 06-02-2010, 05:00 AM   #8
rmjohnso
Member
 
Registered: Mar 2006
Location: Wisconsin
Distribution: Slackware64-Current
Posts: 294

Rep: Reputation: 43
I've had a similar problem. The mozilla-nss build from SlackBuilds seems to work for me:

http://slackbuilds.org/repository/13...m/mozilla-nss/
 
1 members found this post helpful.
Old 06-02-2010, 12:34 PM   #9
smoooth103
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware (64 bit)
Posts: 238

Rep: Reputation: 60
I also had the same issue. I couldn't figure out why it was referencing a /usr/lib64/ when I am on 32 bit.

I changed the symlinks by hand and had them reference existing mozilla nss libraries.
 
Old 06-02-2010, 04:04 PM   #10
rmjohnso
Member
 
Registered: Mar 2006
Location: Wisconsin
Distribution: Slackware64-Current
Posts: 294

Rep: Reputation: 43
Quote:
Originally Posted by Alien Bob View Post
Those missing files are not called "libnss3.so.1d" and such... the error message is actually two sentences and the dot marks the end of sentence one. The second sentence starts with "ld:"

So, you are actually missing the file libnss3.so which is provided by the seamonkey-solibs package. You will find that package in the "L" package directory. Installing that package will add a line to your library loader (ld) configuration file /etc/ld.so.conf like this:

Code:
/usr/lib64/seamonkey
Eric
Eric, I have the seamonkey-solibs package installed, but chrome still does not see the nss libs. If I install the mozilla-nss package from SlackBuilds.org, chrome sees the nss libs just fine. Is this a chrome bug?
 
  


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
[SOLVED] Google Chrome Not Loading Pages Sporadically rmjohnso Slackware 14 06-04-2010 04:14 PM
LXer: Google Chrome Automatically Installs Google Repository in Ubuntu LXer Syndicated Linux News 3 05-07-2010 11:20 AM
Installing Google Chrome on RHEL 5.5 - Getting error pssmba Red Hat 2 04-23-2010 05:40 AM
Google Chrome raysr Suse/Novell 1 02-17-2010 10:03 PM
conflict issues between libnss3-1 & libnss3-0 hallows1 Linux - Software 0 05-22-2009 05:07 AM


All times are GMT -5. The time now is 02:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration