LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-17-2007, 10:46 PM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Rep: Reputation: 50
How do you fix broken libraries?


Is there a way to refresh libraries if they are showing up as broken?
 
Old 12-17-2007, 10:53 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
How do you mean "broken"?

If the library files are corrupt, you reinstall them.
 
Old 12-21-2007, 11:00 AM   #3
seandon4
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware
Posts: 24

Rep: Reputation: 16
If you are referring to libraries you compiled installed yourself, I typically like to install the libraries into /usr folder (./configure --prefix=/usr). Then other configure scripts pickup on the library by default. Maybe doesn't have to be done that way, but just my 2 cents.
 
Old 12-21-2007, 05:26 PM   #4
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
If you have a broken glibc here's Robby Workman's excellent glibc-recovery
Probably some good tips for you
 
Old 12-22-2007, 12:16 AM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
How do they show as broken? You might be talking about symlinks.
 
Old 01-04-2008, 07:25 PM   #6
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Alien, symlinks are they grey little icons with 2 black chain links? lolol Been removing and reinstalling cups and printers when I came across these little grey boxes with 2 black links:"libBrokenLocale.so.1 and libBrokenLocale-2.5.so"
Running xfce, slackware12 no network yet. Don't know if this is related but I noticed I have /home/usr directory and File system a duplicate in /home . Note this is my system steup:

/dev/hde5 swap swap defaults 0 0
/dev/hde4 /home ext3 defaults 1 2
/dev/hde1 / ext3 defaults 1 1
/dev/hde2 /usr ext3 defaults 1 2
/dev/hde6 /tmp ext3 defaults 1 2
/dev/hde7 /var ext3 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Thanks

Last edited by NightSky; 01-04-2008 at 07:33 PM.
 
Old 01-04-2008, 07:49 PM   #7
multios
Member
 
Registered: Mar 2006
Location: home
Distribution: OpenBSD, FreeBSD, Slackware, Debian
Posts: 229

Rep: Reputation: 39
Perhaps reinstall glibc-2.5-i486-4 and/or glibc-solibs-2.5-i486-4 ?


oops, sorry, read you posting incorrectly
 
Old 01-04-2008, 10:21 PM   #8
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
What are these libraries function and what are they related to?

"libBrokenLocale.so.1 and libBrokenLocale-2.5.so"

I did google them and found:

#!/bin/sh # Copyright (C) 2002, 2005 Slackware Linux, Inc ...
bin/sh # Copyright (C) 2002, 2005 Slackware Linux, Inc. .... ln -sf libBrokenLocale-2.5.so libBrokenLocale.so.1 ) ( cd lib ; rm -rf ld-linux.so.2 ) ( cd lib ...
darkstar.ist.utl.pt/slackintosh/12.0/source/l/glibc/doinst.sh-glibc-solibs - 5k -

#!/bin/sh # Copyright (C) 2002, 2005 Slackware Linux, Inc ...
File Format: Unrecognized - View as HTML
( cd lib ; ln -sf libBrokenLocale-2.5.so libBrokenLocale.so.1 ). ( cd lib ; rm -rf ld-linux.so.2 ). ( cd lib ; ln -sf ld-2.5.so ld-linux.so.2 ) ...
workaround.ch/pub/slackintosh/12.0/source/l/glibc/doinst.sh-glibc-solibs

I think they are scripts but I don't know how to use them? Thanks
 
Old 01-05-2008, 01:07 AM   #9
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Perhaps if you were to grep the contents of /var/log/packages for the filenames you're confused about, you might learn something useful.

As to your original question, mainly, I don't just throw a lot of crap into my filesystem willy-nilly and expect things not to break--to wit, I don't install anything that I don't make into a package first.
 
Old 01-05-2008, 01:27 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I remember that you tried to install your print driver as user from home directory, so it probably went to /home/usr.

Other thing about symlinks is that you can open a terminal, cd to the directory and type ls -al to check what are symlinks and where do they point (whether they are broken).
 
Old 01-05-2008, 04:41 AM   #11
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
I agree with Alien_Hominid. But I think it was not the print driver, it was the upgrade to xfce4.4.2. You did it as a user, and it must have created a filesystem in your home directory. You can check if this is what happened, you will find a /usr and /etc in your /home dir containing the files from the xfce4.4.2 package. (you can read what those files are by opening the file with that name in /var/log/packages (any text editor should work).

If you reinstalled this package as root, then the xfce files should be in the correct places as well, and you can just delete the directories mentioned from your home. I think you had better backup your data somewhere first though, this sort of thing can have unexpected consequences and you may end up having to do a complete Slack reinstall. (When I first started with linux I reinstalled several times because I kept breaking things) Anyhow you are learning...

tobyl

Last edited by tobyl; 01-05-2008 at 04:44 AM.
 
Old 01-05-2008, 07:31 PM   #12
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
No /usr or /etc in Main Home Dir or in /home/usr Dir. What I did find in the /hde4/home is usrname folder that is exact
duplicate of first /home/usrname directory but I did find an empty /Home/ftp and root protected Home/lost+found. How many lost and founds are there suposed to be? So I must have su root when I did installpkg.

Here is what I installed I thought successfully xfce4.4.2 rlw, Oo Slackbuild (no source code), src2pkg which I used to build 1 of the 4 need pixusCanon550i.tar.gz; the bjc one builded successfully and the filter and monitor pkgs failed to build because the build required I pass options I did not know howto, but I did use the -W option to cleanup build stuff.

Looked into /var/log/packages:found xfce4.4.2 rlw, openoffice. Both Oo and xfce are working. BTW slocatedb needs to be updated how do I update it? Also how would I reinstall the 2 broken libraries if that is all I have to do. tobyl, whould I just delete the /usrname folder in /dev/hde4/home? How would I clean up my system. Thanks

Last edited by NightSky; 01-05-2008 at 07:38 PM.
 
Old 01-06-2008, 12:58 AM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
updatedb - to update the db.
/home/ftp is for ftp deamon.
You need to check that none of the applications are installed into that folder,
 
Old 01-06-2008, 01:30 AM   #14
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Alien Hominid, I tried to follow your suggestion not sure I did it right but the following are results:

Code:
bash-3.1$cd /lib

-rwxr-xr-x  1 root root    7056 2007-06-19 15:57 libBrokenLocale-2.5.so
lrwxrwxrwx  1 root root      22 2007-12-07 05:11 libBrokenLocale.so.1 -> libBrokenLocale-2.5.so

lrwxrwxrwx  1 root root      17 2007-12-07 05:05 libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x  1 root root    5744 2007-01-24 22:25 libcom_err.so.2.1

bash-3.1$pwd
Desktop Docs Downloads WebBuild  (This is from a teminal inside xfce desktop. Shouldn't it be /home/usrname?)
As far as, I can tell the good thing about the broken links is that they are localized but I don't understand what they are connected to.
The libcom error is related to the canon printer driver I tried to build, I recognize the ver 2.1 .

Thanks for your imput
 
Old 01-06-2008, 04:54 AM   #15
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
How did you get this output? It's totally wrong,

Code:
alien@UFO:~$ pwd
/home/alien

alien@UFO:~$ cd /lib
alien@UFO:/lib$

alien@UFO:/lib$ pwd
/lib

alien@UFO:/lib$ ls -l
total 12292
lrwxrwxrwx 1 root root      12 2006-03-16 21:51 cpp -> /usr/bin/cpp*
-rwxr-xr-x 1 root root    7680 2005-08-05 08:11 e2initrd_helper*
drwxr-xr-x 2 root root    4096 2005-09-04 20:57 firmware/
-rwxr-xr-x 1 root root   99790 2005-09-11 01:05 ld-2.3.5.so*
-rwxr-xr-x 1 root root  104536 2006-03-13 11:20 ld-2.3.6.so*
lrwxrwxrwx 1 root root      11 2006-03-16 22:05 ld-linux.so.2 -> ld-2.3.6.so*
-rwxr-xr-x 1 root root    6862 2005-09-11 01:05 libBrokenLocale-2.3.5.so*
-rwxr-xr-x 1 root root    6862 2006-03-13 11:20 libBrokenLocale-2.3.6.so*
lrwxrwxrwx 1 root root      24 2006-03-16 22:05 libBrokenLocale.so.1 -> libBrokenLocale-2.3.6.so*
-rwxr-xr-x 1 root root   15956 2006-03-13 11:20 libSegFault.so*
..........................................................................................................................

alien@UFO:/lib$ cat /var/log/packages/*| grep Broken
usr/share/evolution-data-server-1.4/zoneinfo/Australia/Broken_Hill.ics
lib/tls/incoming/libBrokenLocale-2.3.6.so
lib/incoming/libBrokenLocale-2.3.6.so
usr/lib/libBrokenLocale.a
usr/share/zoneinfo/posix/Australia/Broken_Hill
usr/share/zoneinfo/right/Australia/Broken_Hill
usr/share/zoneinfo/Australia/Broken_Hill
usr/lib/libBrokenLocale_p.a
lib/tls/incoming/libBrokenLocale-2.3.6.so
lib/incoming/libBrokenLocale-2.3.6.so
usr/share/zoneinfo/posix/Australia/Broken_Hill
usr/share/zoneinfo/right/Australia/Broken_Hill
usr/share/zoneinfo/Australia/Broken_Hill
usr/share/jedit-4.3pre9/doc/api/org/gjt/sp/jedit/EditPlugin.Broken.html
usr/share/jedit-4.3pre9/doc/api/org/gjt/sp/jedit/class-use/EditPlugin.Broken.html
usr/lib/jre1.5.0_06/lib/zi/Australia/Broken_Hill
opt/kde/share/apps/libical/zoneinfo/Australia/Broken_Hill.ics
scummvm: non-SCUMM games, currently these are Beneath a Steel Sky, Broken
Broken symlinks are shown as red, working as green.

You can see that I have BrokenLocale installed. It comes from glibc package. If you're missing it, I doubt that you could compile anything.

Last edited by Alien_Hominid; 01-06-2008 at 05:04 AM.
 
1 members found this post helpful.
  


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
gdm broken, how can i fix? Geminias Linux - Newbie 1 11-19-2007 11:37 PM
Aptitude--How to fix broken package kkruecke Debian 1 08-29-2006 03:12 PM
Fonts in games are broken... please help to fix webdevel Linux - Games 2 11-03-2005 04:15 PM
X.ORG Broken... is it possible to fix!? electronique Slackware 19 11-27-2004 05:13 PM
Manually Fix Broken Dependancies? kiteless Linux - Software 0 09-09-2003 02:33 PM


All times are GMT -5. The time now is 08:28 AM.

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