LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2008, 01:40 PM   #1
dctopcat
LQ Newbie
 
Registered: Jun 2006
Location: Washington, DC
Distribution: Fedora Core 2,3 and 5
Posts: 5

Rep: Reputation: 0
System can't find a library that is there


I am trying to get my Xwindows to work and I am getting the following error:
error while loading shared libraries:libfreetype.so.6:cannot open shared object file:no such file or directory

But if I do a which libfreetype.so.6, it is found in /usr/lib.

I think that I have a config problem where the library is not being recognized properly, but I haven't been able to resolve it. I am using openSUSE 10.3. Thanks in advance for any help or ideas.
 
Old 11-16-2008, 01:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What's the output of ldconfig -v ?
What does ls -l /usr/lib/libfreetype.so.6 say?


Cheers,
Tink
 
Old 11-16-2008, 03:07 PM   #3
dctopcat
LQ Newbie
 
Registered: Jun 2006
Location: Washington, DC
Distribution: Fedora Core 2,3 and 5
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
What's the output of ldconfig -v ?
What does ls -l /usr/lib/libfreetype.so.6 say?


Cheers,
Tink
ldconfig -v shows it as a link libfreetype.so.6->libfreetype.so.6.3.16. If there is something else you are looking for in this, please let me know as the file is over 1000 lines long and since I can't run a browser on that machine right now I can't cut and paste it. I'll be glad to look through it if you can give me some idea of what I am looking for.

For the second question, when I do a ls -l /usr/lib/libfreetype.so.6 it shows it as a link
/usr/lib/libfreetype.so.6->libfreetype.so.6.3.16

When I do a ls -l on libfreetype.so.6.3.16 it shows it as a file of size 529780

Thanks for any help.
 
Old 11-16-2008, 03:29 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
What is the output of /usr/bin/Xorg? This should give a list of the shared objects on which the Xorg executable depends along with their absolute path. Please use code tags to embed the copy/pasted output. This is mine on openSuSE 10.3:
Code:
# ldd /usr/bin/Xorg
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7f3f000)
        libXfont.so.1 => /usr/lib/libXfont.so.1 (0xb7ed9000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e6a000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7e66000)
        libfontenc.so.1 => /usr/lib/libfontenc.so.1 (0xb7e5f000)
        libz.so.1 => /lib/libz.so.1 (0xb7e4c000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7e45000)
        libm.so.6 => /lib/libm.so.6 (0xb7e20000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e14000)
        libc.so.6 => /lib/libc.so.6 (0xb7ce1000)
        /lib/ld-linux.so.2 (0xb7f60000)
 
Old 11-16-2008, 03:48 PM   #5
dctopcat
LQ Newbie
 
Registered: Jun 2006
Location: Washington, DC
Distribution: Fedora Core 2,3 and 5
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
What is the output of /usr/bin/Xorg? This should give a list of the shared objects on which the Xorg executable depends along with their absolute path. Please use code tags to embed the copy/pasted output. This is mine on openSuSE 10.3:
Code:
# ldd /usr/bin/Xorg
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7f3f000)
        libXfont.so.1 => /usr/lib/libXfont.so.1 (0xb7ed9000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e6a000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7e66000)
        libfontenc.so.1 => /usr/lib/libfontenc.so.1 (0xb7e5f000)
        libz.so.1 => /lib/libz.so.1 (0xb7e4c000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7e45000)
        libm.so.6 => /lib/libm.so.6 (0xb7e20000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e14000)
        libc.so.6 => /lib/libc.so.6 (0xb7ce1000)
        /lib/ld-linux.so.2 (0xb7f60000)
My outout is very similar to the one you have here except for the libfreetype.so.6 line saying "not found". Also, I do not have the linux-gate.so.1 or the libgcc_s.so.1 in my list. Unfortunately I cannot do a copy/paste right now because I cannot get to a graphical interface at all. I may have not said that the way I got to this problem was when I was trying to do a startx command.

Thanks for your help.
 
Old 11-16-2008, 04:22 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Ok. The startx command is a shell script which (most likely) runs the /usr/bin/Xorg executable. I think the problem is simply that for some reason your system misses the libfreetype.so link. Check it and eventually re-create the link as
Code:
# cd /usr/lib
# ln -s libfreetype.so.6.3.16 libfreetype.so
 
Old 11-16-2008, 06:00 PM   #7
dctopcat
LQ Newbie
 
Registered: Jun 2006
Location: Washington, DC
Distribution: Fedora Core 2,3 and 5
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Ok. The startx command is a shell script which (most likely) runs the /usr/bin/Xorg executable. I think the problem is simply that for some reason your system misses the libfreetype.so link. Check it and eventually re-create the link as
Code:
# cd /usr/lib
# ln -s libfreetype.so.6.3.16 libfreetype.so
I tried this and it doesn't seem to help. I think I am getting close to the "reinstall" point.
 
Old 11-17-2008, 09:12 AM   #8
dctopcat
LQ Newbie
 
Registered: Jun 2006
Location: Washington, DC
Distribution: Fedora Core 2,3 and 5
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dctopcat View Post
I tried this and it doesn't seem to help. I think I am getting close to the "reinstall" point.
Well, I finally did a system repair and ended up adding a bunch of system libraries. Somewhere in that process it fixed itself.
 
Old 11-17-2008, 09:23 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Nice to hear good news!
 
  


Reply

Tags
library


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
c++ compiler doesn't find library Y0jiMb0 Linux - General 7 12-27-2010 05:27 AM
How to find OpenGL library? Hnefi Slackware 5 02-22-2007 07:46 AM
cant find a library alaios Linux - Software 2 01-31-2006 04:05 PM
cant find library buffed317 Linux - Software 5 02-21-2005 09:32 PM
How To Find Out What A Library Does? nysb Linux - Software 1 05-27-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

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