LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-09-2016, 02:46 AM   #1
bokswager
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Rep: Reputation: Disabled
multiple glibc version on centos 6


hi,
is it possible to have multiple glibc version one is running glibc-2.12.x86_64 and the other one is glibc-2.5.x86_64.

Thanks advance
 
Old 12-09-2016, 03:09 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Yes, it is possible. But it's definitely not good. I would remove the older one and then reinstall the newer one.
 
Old 12-09-2016, 03:19 AM   #3
bokswager
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Yes, it is possible. But it's definitely not good. I would remove the older one and then reinstall the newer one.
Thanks for the replied.
removing existing one will destroy all shared libraries associated in it. linux will not boot.
 
Old 12-09-2016, 08:48 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bokswager View Post
Thanks for the replied.
removing existing one will destroy all shared libraries associated in it. linux will not boot.
What distro are you running?

What is depending on the old, and maybe has not been updated to depend on the new?
 
Old 12-09-2016, 09:18 AM   #5
bokswager
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
What distro are you running?

What is depending on the old, and maybe has not been updated to depend on the new?

Thanks for the replied.

I'm running centos 6.6 and i'm need to load also lower glibc from atleast centos 5 below
 
Old 12-09-2016, 09:38 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bokswager View Post
Thanks for the replied.

I'm running centos 6.6 and i'm need to load also lower glibc from atleast centos 5 below
Have you thought of setting yourself up a VM environment, so you can run multiple of glib without worry? Or if you are installing them from source, you could try to isolate each version in a pool setup in /opt for example using prefix=/opt, then point to each one as needed.
 
Old 12-09-2016, 09:51 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You can also use LXC to create containers with different versions of glib.
 
Old 12-09-2016, 01:29 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you can also use a build forder and install it out of system

i some times need to do this for gimp-development code

sometimes the version required is very new


i use a "config.site " file for autotools and build the software in a folder that IS NOT!!!! IN THE SYSTEM $PATH !!!!!

but BE WARNED
Warning:
a typo might make your system unbootable!!!!
be very careful
 
Old 12-09-2016, 02:38 PM   #9
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Installing multiple glibc or deviating from one provided by distro is asking for trouble.
 
Old 12-12-2016, 02:39 AM   #10
bokswager
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I tried to install compile glibc 2.4 on existing glibc 2.12 and it prompted me on these errors. any thoughts on this. TIA


checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20.51.0.2, bad
checking for ld... ld
checking version of ld... 2.20.51.0.2, bad
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.4.7, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
 
Old 12-12-2016, 06:28 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bokswager View Post
I tried to install compile glibc 2.4 on existing glibc 2.12 and it prompted me on these errors. any thoughts on this. TIA


checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20.51.0.2, bad
checking for ld... ld
checking version of ld... 2.20.51.0.2, bad
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.4.7, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
that is all I can see, what as is I have no idea, but ld, states that it too is bad. I'd start there.

Last edited by BW-userx; 12-12-2016 at 12:16 PM.
 
Old 12-12-2016, 12:06 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you are using a out of path build folder you also NEED to build and install to that folder ALL!!!!! the prerequisites

and this might be 80% of the operating system for some things
or one or two programs
 
Old 12-12-2016, 12:49 PM   #13
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
When you uninstall the old version and reinstall the newer version, it just updates the generic library links to point to the new versions, which are backwards compatible. If it were any other way the result would absolute chaos.
 
  


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
[SOLVED] centos5 both 32bit glibc and 64 glibc exist, how to delete the 32bit version zousheng Linux - Newbie 2 04-03-2013 09:17 AM
Program aborted on CentOS with glibc-2.5 and not on Fedora with glibc 2.9 Thiyagarajan R Linux - General 1 06-16-2009 11:58 AM
i have an error when i try to install Glibc(5.7. Glibc-2.8-20080929, Version 6.4) robineecc1 Linux From Scratch 0 12-14-2008 11:45 AM
Had to get different version glibc. 95se Linux From Scratch 0 11-15-2004 09:23 PM
glibc version kpachopoulos Linux - Newbie 4 09-09-2004 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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