www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD with older versions of Linux

reply Adam Davis <adavis thisisnotmyrealemail.com> writes:
Dreamhost doesn't provide an updated glibc in my vps server. Is it possible to
run dmd on somewhat outdated linux distributions?

I tried running dmd from the distribution but got:

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

The instaled versions are:

$ ldd --version
ldd (GNU libc) 2.7

$ uname -a

x86_64 GNU/Linux


If it's not possible to run the standard DMD package, could I build it from
source using those versions?

Thank you
Aug 03 2011
next sibling parent David Nadlinger <see klickverbot.at> writes:
On 8/4/11 2:05 AM, Adam Davis wrote:
 If it's not possible to run the standard DMD package, could I build it from
 source using those versions?
I don't know it off hand, but just try running »make -f posix.mak« in the src/ directory and you'll see (add »MODEL=64« for x86_64). David
Aug 03 2011
prev sibling next sibling parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
 Dreamhost doesn't provide an updated glibc in my vps server. Is it possible
 to run dmd on somewhat outdated linux distributions?
 
 I tried running dmd from the distribution but got:
 
 ./dmd: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./dmd)
 
 The instaled versions are:
 
 $ ldd --version
 ldd (GNU libc) 2.7
 
 $ uname -a

 x86_64 GNU/Linux
 
 
 If it's not possible to run the standard DMD package, could I build it from
 source using those versions?
I built it from source on Fedora 9 so that I could use some of my helper programs at work. I had more problems getting git set up properly to grab the latest stuff than building dmd. Building dmd worked just fine. If you use the zip file from the latest release, it should be quite easy. - Jonathan M Davis
Aug 03 2011
prev sibling next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 8/3/2011 5:05 PM, Adam Davis wrote:
 If it's not possible to run the standard DMD package, could I build it from
 source using those versions?
Sure. D doesn't have any dependency on the semantics of the newer glib.
Aug 03 2011
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
On 2011-08-04 02:05, Adam Davis wrote:
 Dreamhost doesn't provide an updated glibc in my vps server. Is it possible to
 run dmd on somewhat outdated linux distributions?

 I tried running dmd from the distribution but got:

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

 The instaled versions are:

 $ ldd --version
 ldd (GNU libc) 2.7

 $ uname -a

 x86_64 GNU/Linux


 If it's not possible to run the standard DMD package, could I build it from
 source using those versions?

 Thank you
I've successfully built and used DMD on Ubuntu 6. I use it to produce linux binaries so my tools will run on older versions of linux. I think it worked on Ubuntu 4 as well, but I had other problems on that version. -- /Jacob Carlborg
Aug 03 2011
prev sibling parent reply Kai Meyer <kai unixlords.com> writes:
On 08/03/2011 06:05 PM, Adam Davis wrote:
 Dreamhost doesn't provide an updated glibc in my vps server. Is it possible to
 run dmd on somewhat outdated linux distributions?

 I tried running dmd from the distribution but got:

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

 The instaled versions are:

 $ ldd --version
 ldd (GNU libc) 2.7

 $ uname -a

 x86_64 GNU/Linux


 If it's not possible to run the standard DMD package, could I build it from
 source using those versions?

 Thank you
You're using the 32bit binary on a 64bit machine. It's possible they do not have 32bit glibc, or possibly 32bit glibc-compat installed. Try using the 64bit binary. (If you were using the 64bit library, it would have thrown an error on /lib64/libc.so.6 .) Also, 2.6.33 is not really "old". 2.6.18 would be "old". :) RHEL 6, just released last November is 2.6.32. -Kai Meyer
Aug 05 2011
parent Andrew Wiley <wiley.andrew.j gmail.com> writes:
On Fri, Aug 5, 2011 at 9:47 AM, Kai Meyer <kai unixlords.com> wrote:

 On 08/03/2011 06:05 PM, Adam Davis wrote:

 Dreamhost doesn't provide an updated glibc in my vps server. Is it
 possible to
 run dmd on somewhat outdated linux distributions?

 I tried running dmd from the distribution but got:

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

 The instaled versions are:

 $ ldd --version
 ldd (GNU libc) 2.7

 $ uname -a

 2010
 x86_64 GNU/Linux


 If it's not possible to run the standard DMD package, could I build it
 from
 source using those versions?

 Thank you
You're using the 32bit binary on a 64bit machine. It's possible they do not have 32bit glibc, or possibly 32bit glibc-compat installed. Try using the 64bit binary. (If you were using the 64bit library, it would have thrown an error on /lib64/libc.so.6 .) Also, 2.6.33 is not really "old". 2.6.18 would be "old". :) RHEL 6, just released last November is 2.6.32. -Kai Meyer
But we're already at kernel 3.0 :D
Aug 05 2011