LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-01-2004, 11:46 PM   #1
AnhTuan
LQ Newbie
 
Registered: Sep 2004
Location: Viet Nam
Distribution: Slackware 10.0
Posts: 3

Rep: Reputation: 0
my slack can't load shared library


Hi, guys!!! It's my first post in our slack board.

Last night, I used swaret to upgrade my slack (10.0). But when it installed new packages, console was printing out "/sbin/agetty: error loading shared lib xlibX11.so.6".
I knew that 'cause slack don't check dependence and i got that error

And now i can't start my slack
Anyone can help me rescue him?
Sorry for my English
 
Old 10-02-2004, 02:28 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Re: my slack can't load shared library

Quote:
Originally posted by AnhTuan
Hi, guys!!! It's my first post in our slack board.

Last night, I used swaret to upgrade my slack (10.0). But when it installed new packages, console was printing out "/sbin/agetty: error loading shared lib xlibX11.so.6".
I knew that 'cause slack don't check dependence and i got that error

And now i can't start my slack
Anyone can help me rescue him?
Sorry for my English :D :cry:
Welcome to LQ!

Why do you say " i can't start my slack?" How do you try to start Slack?
What happens when you do this? What are the error messages?
 
Old 10-02-2004, 07:32 AM   #3
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,


I think that Slack boots normally and then when it should open login prompt in different tty, he gets his error message (so no login prompt) cause Slack can't run agetty...
I think that the esaiest way to solve this is to take a Linux live CD, boot from it and chroot your Slack to add the missing library

Oliv'
 
Old 10-03-2004, 07:15 AM   #4
AnhTuan
LQ Newbie
 
Registered: Sep 2004
Location: Viet Nam
Distribution: Slackware 10.0
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your reply!!!
To Chinaman:
Oliv's post said all my problem. But i don't know what "different tty" is.
Yes, now my slack is no loginpromt when i start him.

To Oliv:
Can you explain for me that problem?
And how to i rescue my slack with a live cd (i had a knoppix)
Thanks!!!
 
Old 10-03-2004, 08:21 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

I didn't realize but I did an "ldd" on agetty exec on my slack10. Here is the result:
Code:
[15:05][root@slack /sbin]# ldd agetty
        libc.so.6 => /lib/libc.so.6 (0x40026000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
So agetty doesn't need xlibX11.so.6 shared library... And so your problem is stranger than I thought
Do you start with X or with a text console? If you start with X, try to type: Ctrl+Alt+F6 and see if you can login... If you succeed, you'll be able to repair your Slack i.e. download the missing library

Oliv'
 
Old 10-03-2004, 08:30 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
AnhTuan and Oliv'

I did the same thing, plus a search for the library:
Code:
root@james:/sbin# ldd agetty
     libc.so.6 => /lib/libc.so.6 (0x4002c000)
     /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
root@james:/sbin# find / -iname '*xlibX11.so.6*' 2>/dev/null
root@james:/sbin# exit
exit
mingdao@james:~$ cat /etc/slackware-version
Slackware 10.0.0
mingdao@james:~$ uname -r
2.6.7
and don't even have that library in my system, so I've waited
for your response. I believe it's something with the programs
that swaret installed, rather than something already on the
system.

Oliv' - I can't help with swaret, because I compile everything
from source and have never used it - but it seems that a log
of what swaret d/led would be helpful in tracking this error.

Edit: Were you updating Xorg during this swaret session?

Edit 2: Oliv' it's probably in X
ftp://ftp.slackware.com/pub/slackwar.../source/x/x11/

Last edited by Bruce Hill; 10-03-2004 at 08:38 AM.
 
Old 10-03-2004, 09:27 AM   #7
AnhTuan
LQ Newbie
 
Registered: Sep 2004
Location: Viet Nam
Distribution: Slackware 10.0
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, Oliv and Chinaman

To Oliv:
I'll feel happy if i get terminal.
Now when i start my computer, slack start until that error message print out. And i can't do something.

To Chinaman:
You're right. I saw swaret upgrade X on my system.
I think i must use a live cd and copy that file to path.
Oliv and Chinaman, thank you very much

Oh my slack, why do you leave me ?
 
  


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
Where can I get every shared library at? Balkman Linux - General 2 08-28-2004 10:56 PM
help shared library jingle_mj Linux - Newbie 1 08-13-2004 04:36 PM
help shared library jingle_mj Linux - General 1 08-13-2004 03:11 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
shared object library won't load (libstdc++) sleepylight Linux - General 4 04-27-2004 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:10 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