LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-12-2002, 11:00 PM   #1
albean
Member
 
Registered: Sep 2002
Distribution: fc2
Posts: 113

Rep: Reputation: 15
installing a newer glibc


Hi,

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,
-Al
 
Old 11-13-2002, 09:24 AM   #2
albean
Member
 
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,
-Al
 
Old 11-13-2002, 03:12 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,335
Blog Entries: 55

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
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?..
 
  


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
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 03:22 PM
Safe glibc replacing with a newer one whiteunicorn Linux From Scratch 5 12-21-2004 04:07 PM
installing newer glib on mdk10 XBJ-9000 Mandriva 1 10-02-2004 08:06 PM
installing newer version of programs ziggie216 Linux - Software 2 04-14-2004 03:34 PM
Newer version of glibc means i cant install gcc coop Red Hat 0 09-21-2003 01:40 AM


All times are GMT -5. The time now is 12:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration