LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   linux with 2 installed glibc (https://www.linuxquestions.org/questions/linux-software-2/linux-with-2-installed-glibc-821995/)

nima0102 07-25-2010 01:51 AM

linux with 2 installed glibc
 
Hi
I intend to create environment compilation to compile some new application.because these application regularly are updated by own developers so I want to create such environment.
My doubt is, is that possible I have 2 installed glibc, one is default glibc for OS (debian) and other one that I want to install for compile our applications?

Thanks in advance

paulsm4 07-25-2010 03:11 AM

Yes, in general, multiple versions of the same compiler should be able to coexist peacefully on the same PC. This is true for most combinations of GCC, just as it's true for most combinations of Visual Studio on Windows.

BUT ...

Strong suggestion:

Simply build a virtual machine that corresponds exactly to your development environment, and which has exactly your developers' compiler version.

I think it'll be much easier to manage.

IMHO .. PSM

knudfl 07-25-2010 03:27 AM

Yes, you can have an extra glibc, if it is very well hidden away.
But : No configuration files, local or global are allowed,
so system applications would find it.

The alien glibc, example : --prefix=/opt/glibc29/

Then your alien applications can be started with :
export LD_LIBRARY_PATH=/opt/glibc29/lib:/usr/lib:/lib
&& <command-to-run-application>


Make it as old as possible. Glibc-2.12 may not be possible
to build ( on Debian Etch.) And the latest is not better.
May just be too different to build with "old tool chain".
..


All times are GMT -5. The time now is 05:37 AM.