LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-15-2005, 02:58 AM   #1
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Rep: Reputation: 15
Unhappy red hat 9: conflict between glib-2.6.3 and gnome?


Hi

I have a big problem concerning my display. Here i try to give as many details as possible, i hope someone can help me.

i have Red Hat 9.0, kernel 2.4.20-31.9 installed on a laptop: Dell inspiron 600m. My video card is an ATI rage mobility 9000 with 32 Megabytes.

i don't know Gnome version, but if i write "pkg-config --modversion gnome" i get as an answer "1.4.1.2"

Everything worked fine at the beginning, then i decided to install gxine from source.

I had installed the following libraries:

Glib-2.2.1
pango-1.2.1
atk-1.2.0
gtk+-2.2.1

but gxine needed gtk+ >= 2.4.0 so I installed from source the following libraries

Glib-2.6.3
pango-1.8.1
atk-1.9.0
gtk+-2.6.3

first i tried to install by using

./configure
make
make install

it seemed to install everything smoothly, but it didn't work, gxine couldn't see the libraries, then i tried

./configure --prefix=/usr
make
make install

and it worked fine, i have been able to compile correctly gxine and it worked perfectly, even with firefox plugins. I have to say that i called ldconfig here and there, i know that this is quite a "windows" way of doing things...

Then i shut down the computer, and the next time i turned it up it was unable to load the display... i can still log in as a single user in text mode, but the display can't be loaded. I see the usual log in screen for a fraction of a second, then i get a blank screen and the mouse pointer becomes a small black cross. if i try to move the mouse the blanck screen goes away and i get and ascii screen with a small smile in a corner, prompting me to choose yes or no, i think the system is trying to load the display. if i answer no, i get two or three times the same screen, then the system says that it tryed to install the display but failed and i get the blanck screen with the cross pointer and i am unable to do anything. If i answer yes i get the same screen, but with unreadable ascii characters.

what can i do? i hope someone can help me.

Thank you in advance

Gevero

 
Old 03-15-2005, 03:30 AM   #2
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
Re: red hat 9: conflict between glib-2.6.3 and gnome?

Quote:
first i tried to install by using

./configure
make
make install

it seemed to install everything smoothly, but it didn't work, gxine couldn't see the libraries,
/usr/local is the default prefix for most source code tarballs. Effectively, you also installed pkg-config templates below /usr/local, where your system's pkg-config tool doesn't find them unless you adjust its search path.

Quote:
then i tried

./configure --prefix=/usr
make
make install
And with that, you overwrote your system's libraries and broke many dependencies.

Quote:
I have to say that i called ldconfig here and there, i know that this is quite a "windows" way of doing things...
Calling ldconfig only affects run-time, not compile-time.
 
Old 03-15-2005, 03:39 AM   #3
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
Thank you very much for your answer.

now i know what i did, but i need to know what to do.

Is there something i can do now to recover the system or do i have to re install linux? how can i install new libraries without breaking dependencies?

thank you once more
 
Old 03-15-2005, 03:49 AM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
You can downgrade the listed packages with rpm --oldpackage -Uvh ... using the older versions which come with Red Hat Linux 9.

Quote:
how can i install new libraries without breaking dependencies?
That depends on whether multiple versions of the same library can coexist and where you install them. Non-RPM based installation of files directly into your system's core directories is not recommended.
 
Old 03-15-2005, 03:56 AM   #5
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
sorry, but i am a very very newbie, so you mean that i have to "upgrade" the system with the package manager, so i will overwrite the new bad libraries and reinstall the old ones, also restoring the dependencies.

and, if i want to install new libraries such as glib, i should also use rpm? did i understand right?

thank you very much for your patience
 
Old 03-15-2005, 08:30 AM   #6
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
I tried to do rpm--oldpackage -Uvh ... but it doesn't work, i am told that packages are already installed. I tried also with --force, rpm installs, but if i try "pkg-config --modversion glib-2.0" i get always "2.6.3"

i also discovered that, if i login as root in text mode and launch "starx" gnome works... it seems that problems comes out with the login screen, is it possible.


thank you

gevero
 
Old 03-15-2005, 09:05 AM   #7
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
To only replace existing package versions (instead of downgrading them), other options are needed, e.g. --replacepkgs -Uvh

Any files not installed via RPM, and not tracked in the local RPM database, would still be present in the file system. E.g. your newer glib pkg-config template in /usr/lib/pkgconfig. You would need to remove such files manually (if a make uninstall target is not available).

Whether the graphical greeter and its dependencies are damaged, is difficult to examine remotely. Did you use GDM? /usr/bin/gdm* and package "gdm". You could verify the binary and see with "ldd" what libraries it needs and which ones it finds.

I'm surprised as a newbie you upgraded core packages with software built from source tarballs.
 
Old 03-15-2005, 09:18 AM   #8
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
I have a "make uninstall" target for each of the libraries: if i untar the sources and then:

./configure --prefix=/usr
make uninstall

pkg-config doesn't see glib anymore

do you think that uninstalling this way and then downgrading would work?

installing glib 2.6.3 from rpm would also be a correct option?

You are surprised i installed from source? i still didn't know of dependencies hell... i didn't know i was upgrading core packages... and finally i reasoned as i was working with windows... to bad ... but now i know something more...


i don't know what's gdm, and ldd, but i can learn quickly i hope...

thank you very much

gevero
 
Old 03-15-2005, 09:22 AM   #9
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
ok, now i know what you meant with gdm and ldd.
 
Old 03-15-2005, 11:10 AM   #10
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
Ok

I have gdm and the problem is right there. If I run gdm from the shell i get the blank screen described in my first post.

I tried to run "ldd /usr/bin/gdm" but i get :"not a dynamic executable "

now what is the next step?

thank you very much

gevero
 
Old 03-15-2005, 11:14 AM   #11
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
/usr/bin/gdm is a shell script. Display it, it executes /usr/bin/gdm-binary

Since I really don't know files you have overwritten, I cannot say whether it's just libraries and not also data files.
 
Old 03-15-2005, 11:24 AM   #12
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
ok

i ldd gdm-binary worked fine... it displays a lot of .so files, libraries i guess...

what should i do now? should i check if all libraries are in place? what do you mean with data files?

thanks a lot
 
Old 03-15-2005, 11:40 AM   #13
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
To the left in the display are library names. To the right you see the path where they are found in the filesystem. Possible damage I could think of is that incompatible library versions are picked up. Hence I would run "rpm -qf" on every path displayed at the right and see whether the corresponding RPM package is okay, e.g.

$ rpm /usr/lib/libatk-1.0.so.0
atk-1.8.0-2
$ rpm -V atk
$

You can also verify all installed RPM packages, e.g. with "rpm -Va" or "rpm -qa | xargs -n 1 -t rpm -V &> rpm-Va.txt" The output is displayed in "man rpm". You should not see many changes files. Mostly config files should be marked as '5' (i.e. MD5 checksum changed).

You could also look for log errors logged in the X server's log file below /var/log.
 
Old 03-15-2005, 11:45 AM   #14
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
thank you very much

you have been so kind and you gave me a lot of help

now i have to go (i am logged at the university), i will try this evening what you told me!!!

may be i will find you tomorrow? thank you so much

gevero
 
Old 03-16-2005, 02:18 AM   #15
gevero
LQ Newbie
 
Registered: Mar 2005
Location: Belluno (Italy)
Distribution: Red Hat
Posts: 21

Original Poster
Rep: Reputation: 15
Here i am

i did what I was told to

concernig the "rpm -qf" part for gdm i got different answers:

for some libraries the corresponding package was found for some others i was told that the libraries wasn't owned by any package, here are some examples, but there are more:

/usr/local/lib/libpangoxft-1.0.so.0
/usr/local/lib/libpangox-1.0.so.0
/usr/local/lib/libpango-1.0.so.0
/usr/local/lib/libpangoft2-1.0.so.0

/usr/local/lib/libglib-2.0.so.0

and also other libs

concerning the "rpm -Va" part i executed the command i was told and then read the txt file...

for packages such as glib2 or gtk2 the output gave me a lot of:

S.5.L.

and some broken dependencies for XFree86 were found... i can give you the txt file if it can help you. what can I do now?

thank you very much

Gevero
 
  


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
Red Hat AS 3 Update 3 conflict with Openssh-3.9p1 !!?? jiawj Red Hat 0 09-13-2004 08:43 PM
GLib 1.2.8 & 1.2.10 conflict eeverde Linux - Newbie 0 08-04-2004 02:15 AM
2 versions of glib conflict toships Linux - Newbie 2 02-21-2004 03:29 PM
Red Hat 8 and Compaq Presario 2100 conflict? TelecasterMan Linux - Laptop and Netbook 4 10-20-2003 09:43 PM
NVIDIA conflict with Red Hat 9.0 phishman Linux - Hardware 2 10-17-2003 03:34 PM


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