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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-09-2016, 02:46 AM
|
#1
|
LQ Newbie
Registered: Feb 2013
Posts: 8
Rep: 
|
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
|
|
|
12-09-2016, 03:09 AM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Yes, it is possible. But it's definitely not good. I would remove the older one and then reinstall the newer one.
|
|
|
12-09-2016, 03:19 AM
|
#3
|
LQ Newbie
Registered: Feb 2013
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by AwesomeMachine
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.
|
|
|
12-09-2016, 08:48 AM
|
#4
|
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
|
Quote:
Originally Posted by bokswager
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?
|
|
|
12-09-2016, 09:18 AM
|
#5
|
LQ Newbie
Registered: Feb 2013
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
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
|
|
|
12-09-2016, 09:38 AM
|
#6
|
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
|
Quote:
Originally Posted by bokswager
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.
|
|
|
12-09-2016, 09:51 AM
|
#7
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
You can also use LXC to create containers with different versions of glib.
|
|
|
12-09-2016, 01:29 PM
|
#8
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,700
|
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
|
|
|
12-09-2016, 02:38 PM
|
#9
|
Member
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421
Rep:
|
Installing multiple glibc or deviating from one provided by distro is asking for trouble.
|
|
|
12-12-2016, 02:39 AM
|
#10
|
LQ Newbie
Registered: Feb 2013
Posts: 8
Original Poster
Rep: 
|
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.
|
|
|
12-12-2016, 06:28 AM
|
#11
|
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
|
Quote:
Originally Posted by bokswager
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.
|
|
|
12-12-2016, 12:06 PM
|
#12
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,700
|
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
|
|
|
12-12-2016, 12:49 PM
|
#13
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
All times are GMT -5. The time now is 08:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|