LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-12-2010, 03:58 AM   #1
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Rep: Reputation: 30
Shared library accessible by root and not by regular user


Hello!
I'm trying to install Google Chrome on Slackware 13.1 (32 bit) and I have a little problem with shared libraries.
The google-chrome applications looks for nss libraries with file names ending in apparently non-standard ways (for me and my system, at least): for example, it looks for libnns3.so.1d, but I have libnss3.so, so I created a symbolic link libnss3.so.1d -> libnss3.so. The problem now is that if I run google-chrome as my usual regular user I still get the missing library error, but if I run it as root I don't get the error anymore (well, it still complains about other libraries missing for the same naming reason, but anyway it's able to find the one I just renamed).
The permissions seems fine to me:
Code:
/usr/lib# ls -l | grep seamonkey
lrwxrwxrwx   1 root root       15 Jun 16 22:03 seamonkey -> seamonkey-2.0.4
drwxr-xr-x  14 root root     4096 Oct 12 10:47 seamonkey-2.0.4
Code:
/usr/lib/seamonkey# ls -l | grep nss3
-rwxr-xr-x 1 root root  873192 Apr  2  2010 libnss3.so
lrwxrwxrwx 1 root root      10 Oct 12 10:07 libnss3.so.1d -> libnss3.so
Does anybody have an explanation to this? :-)
Thank you!
 
Old 10-12-2010, 04:40 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
With user root are you able to, browse ith google chrome successfully,any site?
 
Old 10-12-2010, 10:14 AM   #3
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Original Poster
Rep: Reputation: 30
I haven't tried yet, I miss the GConf libraries, but since I'm not going to use Chrome as root, I focused on the shared library problem with my unprivileged user.
 
Old 10-12-2010, 11:14 AM   #4
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Original Poster
Rep: Reputation: 30
Ok, actually, it's not a problem regarding being root or not, but simply it seems that google-chrome cannot find the renamed libraries unless my working directory is the one those libraries are in (that is, /usr/lib/seamonkey). I don't know why this happens, since /usr/lib/seamonkey is in /etc/ld.so.conf. Any idea?
Thanks!
 
Old 10-12-2010, 11:38 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. Use "ldd" to see exactly what shared libraries an executable or library depends on, and exactly where it expects to find them.

EXAMPLES: "ldd MYPROG", or "ldd MYLIB.so"

2. Set "$LD_LIBRARY_PATH" if you need to point to another, different directory.

EXAMPLE: "export LD_LIBRARY_PATH=/opt/lib:$LD_LIBRARY_PATH"

'Hope that helps
 
Old 10-13-2010, 07:22 AM   #6
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Original Poster
Rep: Reputation: 30
It works if I run google-chrome as "LD_LIBRARY_PATH=/usr/lib/seamonkey google-chrome". Then why doesn't putting the "/usr/lib/seamonkey" line in /etc/ld.so.conf work?
 
Old 10-13-2010, 11:31 AM   #7
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
It works if I run google-chrome as "LD_LIBRARY_PATH=/usr/lib/seamonkey google-chrome"
You're welcome Prego. Glad I could help.

But better syntax would be:

"LD_LIBRARY_PATH=/usr/lib/seamonkey:$LD_LIBRARY_PATH"

PS:
If you change ld.so.conf, then you also need to run "ldconfig" to update the cache.

Last edited by paulsm4; 10-13-2010 at 01:21 PM.
 
Old 10-14-2010, 08:48 AM   #8
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Original Poster
Rep: Reputation: 30
Actually, I would like to solve the ld.so.conf problem :-) What are the possible reasons why putting the relevant line there doesn't work and using LD_LIBRARY_PATH works? And yes, I did run ldconfig after changing the file :-)
Thanks again!
 
  


Reply



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] Different date shown for regular user and root user tuxtutorials Linux - Server 6 11-27-2013 08:33 AM
Moving from root to regular user KingOfDreams Linux - General 1 01-14-2005 04:46 AM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 12:23 PM
can't login as regular user (root only) DontKnowNothing Mandriva 2 10-24-2003 01:36 PM

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

All times are GMT -5. The time now is 03:02 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
Open Source Consulting | Domain Registration