www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GCC depen issue on linux

reply mumin <cmonster mumins.net> writes:
Installing D on linux giving strange library dependency issue.  Looking on  
the
net haven't found any article that addresses this directly.  Most similar
issues are with installing the Android emulator [!].

When I attempt to compile a sample D program I get the following.  Anyone  
seen
this before?

 dmd hello.d
dmd: /lib/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by dmd) attached is the output of ldd Thanks
Jan 14 2012
next sibling parent reply "Jesse Phillips" <jessekphillips+D gmail.com> writes:
On Saturday, 14 January 2012 at 16:43:53 UTC, mumin wrote:
 Installing D on linux giving strange library dependency issue.  
 Looking on  the
 net haven't found any article that addresses this directly.  
 Most similar
 issues are with installing the Android emulator [!].

 When I attempt to compile a sample D program I get the 
 following.  Anyone  seen
 this before?

 dmd hello.d
dmd: /lib/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by dmd) attached is the output of ldd Thanks
Well it seems you don't have the correct version of glibc. I'm wondering if this is related to having 32bit dmd installed on a 64bit system, or something else. What kind of system are you running? OS version...?
Jan 14 2012
parent mumin <cmonster mumins.net> writes:
On Sat, 14 Jan 2012 13:35:39 -0500, Jesse Phillips  
<jessekphillips+D gmail.com> wrote:

 On Saturday, 14 January 2012 at 16:43:53 UTC, mumin wrote:
 Installing D on linux giving strange library dependency issue.  Looking  
 on  the
 net haven't found any article that addresses this directly.  Most  
 similar
 issues are with installing the Android emulator [!].

 When I attempt to compile a sample D program I get the following.   
 Anyone  seen
 this before?

 dmd hello.d
dmd: /lib/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by dmd) attached is the output of ldd Thanks
Well it seems you don't have the correct version of glibc. I'm wondering if this is related to having 32bit dmd installed on a 64bit system, or something else. What kind of system are you running? OS version...?
It is a debian based Linux version. It is 32 bit, but it isn't one of the big distros. I run eLive which is an Enlightenment-based wm system on top of debian. http://www.elivecd.org/ I double-checked that I don't have problems with simplistic C or C++ compilations. Other places on the 'Net there are people who get around such problems by making soft links, but I'm very hestitant to do something like that without knowing why this is happening. I was hoping someone had seen this type of thing before.
Jan 14 2012
prev sibling parent reply mta`chrono <chrono mta-international.net> writes:
It seems like you have installed a precompiled version of dmd. Can you
post eactly the source where you've downloaded it?

dmd seems to require version _2.11_ of glibc. there are a lot of
versions installed on your system. 2.0,2.1,2.3,... But not the one dmd
requires.

In order to solve the problem, I would suggest you to download dmd
sources and compile them.
Jan 14 2012
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"mta`chrono" <chrono mta-international.net> wrote in message 
news:jesv45$1elt$1 digitalmars.com...
 It seems like you have installed a precompiled version of dmd. Can you
 post eactly the source where you've downloaded it?

 dmd seems to require version _2.11_ of glibc. there are a lot of
 versions installed on your system. 2.0,2.1,2.3,... But not the one dmd
 requires.

 In order to solve the problem, I would suggest you to download dmd
 sources and compile them.
DMD's sources are already in the prepackaged zip release. Building it can be a little complicated if you don't already know how, but it's easy if you install the latest version of DVM: https://bitbucket.org/doob/dvm Then, downloading and recompiling DMD is as simple as: $dvm fetch 2.057 $unzip dmd.2.057.zip $dvm compile ./dmd2 BTW, that reminds me: Jacob, I think we need to update the code that detects the latest version of DMD (asap). Compiling the git sources with DVM relies on it (but not compiling the packages releases), and for awhile I thought ftp.digitalmars.com was just going down, but I think now the download page's move to d-p-l.org has just simply broken the "latest DMD"-detection.
Jan 14 2012
parent Jacob Carlborg <doob me.com> writes:
On 2012-01-14 23:39, Nick Sabalausky wrote:
 "mta`chrono"<chrono mta-international.net>  wrote in message
 news:jesv45$1elt$1 digitalmars.com...
 It seems like you have installed a precompiled version of dmd. Can you
 post eactly the source where you've downloaded it?

 dmd seems to require version _2.11_ of glibc. there are a lot of
 versions installed on your system. 2.0,2.1,2.3,... But not the one dmd
 requires.

 In order to solve the problem, I would suggest you to download dmd
 sources and compile them.
DMD's sources are already in the prepackaged zip release. Building it can be a little complicated if you don't already know how, but it's easy if you install the latest version of DVM: https://bitbucket.org/doob/dvm Then, downloading and recompiling DMD is as simple as: $dvm fetch 2.057 $unzip dmd.2.057.zip $dvm compile ./dmd2 BTW, that reminds me: Jacob, I think we need to update the code that detects the latest version of DMD (asap). Compiling the git sources with DVM relies on it (but not compiling the packages releases), and for awhile I thought ftp.digitalmars.com was just going down, but I think now the download page's move to d-p-l.org has just simply broken the "latest DMD"-detection.
http://www.digitalmars.com/d/download.html still works fine. The problem is that the link for dmd.2.057.zip now points to github instead of ftp.digitalmars.com and dvm fails to detect the link then. It's already been fixed and I've uploaded precompiled binaries. I didn't do a new release (don't know if that was good or not), I was hoping not too many people had downloaded it yet. I discovered it basically just after the release. I think only one or two people had downloaded the tool before I uploaded the fix. https://bitbucket.org/doob/dvm/changeset/40f17ea46d0f -- /Jacob Carlborg
Jan 15 2012
prev sibling parent mumin <cmonster mumins.net> writes:
On Sat, 14 Jan 2012 17:20:51 -0500, mta`chrono  
<chrono mta-international.net> wrote:

 It seems like you have installed a precompiled version of dmd. Can you
 post eactly the source where you've downloaded it?

 dmd seems to require version _2.11_ of glibc. there are a lot of
 versions installed on your system. 2.0,2.1,2.3,... But not the one dmd
 requires.

 In order to solve the problem, I would suggest you to download dmd
 sources and compile them.
Compiling the latest from source didn't work either. The dmd compilation worked, but the attempt to compile the libraries didn't work. Still the issue with GLIBC_2.11. I'm good, though. I'm doing a POC with D and I decided to do that work with 1.0. I pulled the dmd from Tango and that _is_ working. I'm good for now. When I retun to 2.0 there might be a new build.
Jan 14 2012