Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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:
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:
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.