Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-13-2002, 12:00 AM   #1
Registered: Sep 2002
Distribution: fc2
Posts: 113

Rep: Reputation: 15
installing a newer glibc


I've determined that I need to install a newer version of glibc. But because it is the heart of many programs that dynamically link to it I'm a little worried about running an rpm to install it. But... I'd rather not compile it from source because I'm sure I will never get it running right.

I've noticed that QT has a number of symbolic links to different libs and I'm wondering if there is some way to do this w/ glibc. (a google search did not turn up anything useful.)

Or should I just run the rpm and keep my fingers crossed?

Thanks in advance for you input,
Old 11-13-2002, 10:24 AM   #2
Registered: Sep 2002
Distribution: fc2
Posts: 113

Original Poster
Rep: Reputation: 15
I've learned a few things along the way to installing a newer version of glibc but I still have some questions.

For those newbies out there like me here's what I've learned so far (questions follow below):
1) For rpm based systems, if a package was installed by rpm you can:
rpm -q glibc
this will return the version of it
rpm -ql glibc
this will return every file that was installed with glibc rpm.
(Thanks to neo77777)

2) You can use mc to browse and extract individual files from an rpm. I needed to do this because I wanted to read the README and INSTALL files the package before I installed it. Just type mc, navigate to the rpm, then navigate to the file in the rpm you are interested in and copy it to your Desktop.
(Thanks to acid_kewpie)

3) The answer to my original question from the FAQ in the glibc package I want to install:
""Can I replace the libc on my Linux system with GNU libc?

{UD} You cannot replace any existing libc for Linux with GNU libc. It is binary incompatible and therefore has a different major version. You can, however, install it alongside your existing libc.""

I was sure that I could not replace the libc I had on my system. But I need to install glibc 2.3 for a mysql program. I read the section "How should I avoid damaging my system when I install GNU libc?" in the FAQ and I now understand what the usr/local directories are for.

Here's my question:

How can make sure that when I run rpm that glibc is installed into usr/local? Is there a way to force this. I've looked at the rpm man page but I don't see anything like what i need.

Thanks for reading this long post,
Old 11-13-2002, 04:12 PM   #3
Registered: May 2001
Posts: 29,394
Blog Entries: 55

Rep: Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565
If the package is built with relocation in mind you could try using --prefix in conjunction with --relocate, or try rebuild the src.rpm if any, with your path specs. I'm not sure this will be very usefull, and if you only need the libs/headers for one app, why not dump the rpm contents somewhere, search and replace libs/include stuff in the config/Makefile, build a static app and then ditch the whole 2.3?..


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
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 04:22 PM
Safe glibc replacing with a newer one whiteunicorn Linux From Scratch 5 12-21-2004 05:07 PM
installing newer glib on mdk10 XBJ-9000 Mandriva 1 10-02-2004 09:06 PM
installing newer version of programs ziggie216 Linux - Software 2 04-14-2004 04:34 PM
Newer version of glibc means i cant install gcc coop Red Hat 0 09-21-2003 02:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration