www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Running dmd with older glibc

reply Johan Granberg <lijat.meREM OVEgmail.com> writes:
I'm running into a problem installing dmd in the computer labs at my
department. I don't have root access so I'm installing into my home
directory and I had a working dmd 0.150 but I was in need of features
introduced after that so I tried to install 1.038 instead.

Now I'm getting 

dmd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by dmd)

and by extension no working compiler.

I found an old post describing the same problem but no solution. Does anyone
have a solution to the above problem or should I give up the idea of using 
D for this project?

(I have tried earlier to compile both ldc and gdc but without success)
Dec 26 2008
next sibling parent reply "Jarrett Billingsley" <jarrett.billingsley gmail.com> writes:
On Fri, Dec 26, 2008 at 6:34 PM, Johan Granberg
<lijat.meREM ovegmail.com> wrote:
 I'm running into a problem installing dmd in the computer labs at my
 department. I don't have root access so I'm installing into my home
 directory and I had a working dmd 0.150 but I was in need of features
 introduced after that so I tried to install 1.038 instead.

 Now I'm getting

 dmd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by dmd)

 and by extension no working compiler.

 I found an old post describing the same problem but no solution. Does anyone
 have a solution to the above problem or should I give up the idea of using
 D for this project?

 (I have tried earlier to compile both ldc and gdc but without success)
I think DMD requires libc version 5, but don't quote me on that.
Dec 26 2008
parent Lars Ivar Igesund <larsivar igesund.net> writes:
Jarrett Billingsley wrote:

 On Fri, Dec 26, 2008 at 6:34 PM, Johan Granberg
 <lijat.meREM ovegmail.com> wrote:
 I'm running into a problem installing dmd in the computer labs at my
 department. I don't have root access so I'm installing into my home
 directory and I had a working dmd 0.150 but I was in need of features
 introduced after that so I tried to install 1.038 instead.

 Now I'm getting

 dmd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by dmd)

 and by extension no working compiler.

 I found an old post describing the same problem but no solution. Does
 anyone have a solution to the above problem or should I give up the idea
 of using D for this project?

 (I have tried earlier to compile both ldc and gdc but without success)
I think DMD requires libc version 5, but don't quote me on that.
I actually think it is a link error, in that too high a version of libc (compared to what is needed) is linked in. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Dec 30 2008
prev sibling parent Daniel de Kok <me nowhere.nospam> writes:
On 2008-12-27 00:34:50 +0100, Johan Granberg <lijat.meREM OVEgmail.com> said:
 Now I'm getting
 
 dmd: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by dmd)
 
 and by extension no working compiler.
 
 I found an old post describing the same problem but no solution. Does anyone
 have a solution to the above problem or should I give up the idea of using
 D for this project?
Yes, you'd need a newer glibc version. It should also be possible to put a newer glibc library in a separate directory, and run DMD with the appropriate path added to the LD_LIBRARY_PATH environment variable. E.g.: LD_LIBRARY_PATH=~/compat-lib ~/dmd/bin/dmd -- Daniel
Dec 30 2008