Re: [gentoo-user] two glibcs with different version
On 4 May, Kraus Philipp wrote: > > Am 04.05.2010 um 13:09 schrieb Neil Bothwick: > >> On Sat, 1 May 2010 12:58:34 +0200, Kraus Philipp wrote: >> I would suggest dual-booting... >>> >>> Sorry, that's no solution, because it is only one network service, >>> that >>> need's a older glibc. I can't reboot a server at any time or create a >>> new >>> physical server >> >> Have you considered virtualisation? > > That's a problem, because I need the older glib for running VMware > Server. > Hen or Egg Problem :-P Then try VirtualBox. Helmut.
Re: [gentoo-user] two glibcs with different version
Am 04.05.2010 um 13:09 schrieb Neil Bothwick: On Sat, 1 May 2010 12:58:34 +0200, Kraus Philipp wrote: I would suggest dual-booting... Sorry, that's no solution, because it is only one network service, that need's a older glibc. I can't reboot a server at any time or create a new physical server Have you considered virtualisation? That's a problem, because I need the older glib for running VMware Server. Hen or Egg Problem :-P
Re: [gentoo-user] two glibcs with different version
On Sat, 1 May 2010 12:58:34 +0200, Kraus Philipp wrote: > > I would suggest dual-booting... > > Sorry, that's no solution, because it is only one network service, that > need's a older glibc. I can't reboot a server at any time or create a > new > physical server Have you considered virtualisation? -- Neil Bothwick Top Oxymorons Number 41: Good grief signature.asc Description: PGP signature
Re: [gentoo-user] two glibcs with different version
Am 01.05.2010 um 12:53 schrieb pk: On 2010-04-30 15:24, Kraus Philipp wrote: I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I would suggest dual-booting... Sorry, that's no solution, because it is only one network service, that need's a older glibc. I can't reboot a server at any time or create a new physical server Phil
Re: [gentoo-user] two glibcs with different version
On Saturday 01 May 2010 10:57:31 Kraus Philipp wrote: > On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: > > On Samstag 01 Mai 2010, Graham Murray wrote: > >> Kraus Philipp writes: > >>> Hello, > >>> > >>> I must test a software with a older version of the glibc. I run the > >>> 2.11.1 now but for one tool I need a previous version (2.6.1). > >>> How can I compile the glibc without changing my system glibc. I > >>> would > >>> like to set the previous glibc with the LD_PATH. > >>> Can I run two different versions or is a better solution to > >>> downgrade > >>> the system glib? > >> > >> I think that the only way you can do this is to create a chroot jail, > >> in which you build everything using the old version of glibc (in a > >> very > >> similar way to building a new Gentoo system) and run your > >> application in > >> that. > > > > no, you can install glibc in /usr/local and then tell apps to either > > use the > > libs in /usr/local or /usr. > > > > It is just not easy because it easily breaks stuff in horrrible to > > fix ways. > > Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a > server > installation, so I can recompile the whole system. I had forgotten to > mask the > glibc on the last update. I have add a line to the portage.mask but > emerge says > that it can't compile the older version, because will damage the system. There is a way to downgrade, but it's far from bullet proof. You might end up with mutually incompatible code versions that makes the recompile world freak out. First, quickpkg your existing glibc Then read the glibc ebuild. You can bypass the version checks, IIRC its an envvar something like "I_AM_VERY_STUPID_OR_VERY_BRAVE". Failing that, just comment out the version checks, redigest the ebuild and run it. The rebuild world Obviously, this is not for the faint of heart. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] two glibcs with different version
Am 01.05.2010 um 12:40 schrieb William Kenworthy: On Sat, 2010-05-01 at 12:25 +0200, Kraus Philipp wrote: Am 01.05.2010 um 11:48 schrieb William Kenworthy: On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote: On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: On Samstag 01 Mai 2010, Graham Murray wrote: Kraus Philipp writes: Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways. Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a server installation, so I can recompile the whole system. I had forgotten to mask the glibc on the last update. I have add a line to the portage.mask but emerge says that it can't compile the older version, because will damage the system. Would LD_PRELOAD solve your problem? - worked for me when needing to run a legacy redhat app in the past on a more up-to-date gentoo system. I think that can solve my problem, because it's only this one lib all other libs work very well. There is also a LD_LIBRARY_PATH variable. Get a binary copy of the libs you need and put em somewhere convenient and let the rest of the system stay as is. I don't have the glibc binary. I can't emerge it and if I try to compile from the sources. The configure script says: These critical programs are missing or too old: as ld How I can compile the from the sources (http://ftp.gnu.org/gnu/glibc/glibc-2.10.1.tar.gz) ? You can use ebuild to build a package, but not install it - then just un-compress it and grab the wanted libs. I will try it on my system first, because I can lean something new. Or if you tell us what arch, someone (me if its compatible) can create a binary pkg for you using quickpkg. It might also be on the livecd/install medium as well - dont have one here to check. I run my Gentoo on amd64 (intel xeon), thank's for help.
Re: [gentoo-user] two glibcs with different version
On 2010-04-30 15:24, Kraus Philipp wrote: > I must test a software with a older version of the glibc. I run the > 2.11.1 now but for one tool I need a previous version (2.6.1). > How can I compile the glibc without changing my system glibc. I would > like to set the previous glibc with the LD_PATH. > Can I run two different versions or is a better solution to downgrade > the system glib? I would suggest dual-booting... Best regards Peter K
Re: [gentoo-user] two glibcs with different version
On Sat, 2010-05-01 at 12:25 +0200, Kraus Philipp wrote: > > Am 01.05.2010 um 11:48 schrieb William Kenworthy: > > > On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote: > > > > > > On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: > > > > > > > On Samstag 01 Mai 2010, Graham Murray wrote: > > > > > Kraus Philipp writes: > > > > > > Hello, > > > > > > > > > > > > I must test a software with a older version of the glibc. I > > > > > > run > > > > > > the > > > > > > 2.11.1 now but for one tool I need a previous version > > > > > > (2.6.1). > > > > > > How can I compile the glibc without changing my system > > > > > > glibc. I > > > > > > would > > > > > > like to set the previous glibc with the LD_PATH. > > > > > > Can I run two different versions or is a better solution to > > > > > > downgrade > > > > > > the system glib? > > > > > > > > > > I think that the only way you can do this is to create a > > > > > chroot > > > > > jail, > > > > > in which you build everything using the old version of glibc > > > > > (in a > > > > > very > > > > > similar way to building a new Gentoo system) and run your > > > > > application in > > > > > that. > > > > > > > > no, you can install glibc in /usr/local and then tell apps to > > > > either > > > > use the > > > > libs in /usr/local or /usr. > > > > > > > > It is just not easy because it easily breaks stuff in horrrible > > > > to > > > > fix ways. > > > > > > > > > > > > > Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's > > > a > > > server > > > installation, so I can recompile the whole system. I had forgotten > > > to > > > mask the > > > glibc on the last update. I have add a line to the portage.mask > > > but > > > emerge says > > > that it can't compile the older version, because will damage the > > > system. > > > > > > > > > > Would LD_PRELOAD solve your problem? - worked for me when needing to > > run > > a legacy redhat app in the past on a more up-to-date gentoo system. > > > > > I think that can solve my problem, because it's only this one lib all > other libs > work very well. > > > There is also a LD_LIBRARY_PATH variable. Get a binary copy of the > > libs > > you need and put em somewhere convenient and let the rest of the > > system > > stay as is. > > > I don't have the glibc binary. I can't emerge it and if I try to > compile from the sources. > The configure script says: These critical programs are missing or too > old: as ld > > > How I can compile the from the sources > (http://ftp.gnu.org/gnu/glibc/glibc-2.10.1.tar.gz) ? > > > Thanks > > > Phil You can use ebuild to build a package, but not install it - then just un-compress it and grab the wanted libs. Or if you tell us what arch, someone (me if its compatible) can create a binary pkg for you using quickpkg. It might also be on the livecd/install medium as well - dont have one here to check. BillK -- William Kenworthy Home in Perth!
Re: [gentoo-user] two glibcs with different version
Am 01.05.2010 um 11:48 schrieb William Kenworthy: On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote: On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: On Samstag 01 Mai 2010, Graham Murray wrote: Kraus Philipp writes: Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways. Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a server installation, so I can recompile the whole system. I had forgotten to mask the glibc on the last update. I have add a line to the portage.mask but emerge says that it can't compile the older version, because will damage the system. Would LD_PRELOAD solve your problem? - worked for me when needing to run a legacy redhat app in the past on a more up-to-date gentoo system. I think that can solve my problem, because it's only this one lib all other libs work very well. There is also a LD_LIBRARY_PATH variable. Get a binary copy of the libs you need and put em somewhere convenient and let the rest of the system stay as is. I don't have the glibc binary. I can't emerge it and if I try to compile from the sources. The configure script says: These critical programs are missing or too old: as ld How I can compile the from the sources (http://ftp.gnu.org/gnu/glibc/glibc-2.10.1.tar.gz ) ? Thanks Phil
Re: [gentoo-user] two glibcs with different version
On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote: > > On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: > > > On Samstag 01 Mai 2010, Graham Murray wrote: > > > Kraus Philipp writes: > > > > Hello, > > > > > > > > I must test a software with a older version of the glibc. I run > > > > the > > > > 2.11.1 now but for one tool I need a previous version (2.6.1). > > > > How can I compile the glibc without changing my system glibc. I > > > > would > > > > like to set the previous glibc with the LD_PATH. > > > > Can I run two different versions or is a better solution to > > > > downgrade > > > > the system glib? > > > > > > I think that the only way you can do this is to create a chroot > > > jail, > > > in which you build everything using the old version of glibc (in a > > > very > > > similar way to building a new Gentoo system) and run your > > > application in > > > that. > > > > no, you can install glibc in /usr/local and then tell apps to either > > use the > > libs in /usr/local or /usr. > > > > It is just not easy because it easily breaks stuff in horrrible to > > fix ways. > > > > > Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a > server > installation, so I can recompile the whole system. I had forgotten to > mask the > glibc on the last update. I have add a line to the portage.mask but > emerge says > that it can't compile the older version, because will damage the > system. > > Would LD_PRELOAD solve your problem? - worked for me when needing to run a legacy redhat app in the past on a more up-to-date gentoo system. There is also a LD_LIBRARY_PATH variable. Get a binary copy of the libs you need and put em somewhere convenient and let the rest of the system stay as is. google for LD_PRELOAD. BillK
Re: [gentoo-user] two glibcs with different version
On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: On Samstag 01 Mai 2010, Graham Murray wrote: Kraus Philipp writes: Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways. Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a server installation, so I can recompile the whole system. I had forgotten to mask the glibc on the last update. I have add a line to the portage.mask but emerge says that it can't compile the older version, because will damage the system.
Re: [gentoo-user] two glibcs with different version
On Samstag 01 Mai 2010, Graham Murray wrote: > Kraus Philipp writes: > > Hello, > > > > I must test a software with a older version of the glibc. I run the > > 2.11.1 now but for one tool I need a previous version (2.6.1). > > How can I compile the glibc without changing my system glibc. I would > > like to set the previous glibc with the LD_PATH. > > Can I run two different versions or is a better solution to downgrade > > the system glib? > > I think that the only way you can do this is to create a chroot jail, > in which you build everything using the old version of glibc (in a very > similar way to building a new Gentoo system) and run your application in > that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways.
Re: [gentoo-user] two glibcs with different version
On 01.05.2010 um 09:48 wrote Graham Murray: I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. That's a very goog idea, because the programm is a network service. Do you know a tutorial for creating root jails in this way? Thanks
Re: [gentoo-user] two glibcs with different version
Kraus Philipp writes: > Hello, > > I must test a software with a older version of the glibc. I run the > 2.11.1 now but for one tool I need a previous version (2.6.1). > How can I compile the glibc without changing my system glibc. I would > like to set the previous glibc with the LD_PATH. > Can I run two different versions or is a better solution to downgrade > the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that.