Thread overview | |||||
---|---|---|---|---|---|
|
April 22, 2012 Module zlib cannot be read | ||||
---|---|---|---|---|
| ||||
Hello all, I currently have a self-compiled and installed dmd, druntime, phobos and rdmd on Ubuntu 12.04. I get the following error message whenever I try to use rdmd or equivalently dmd -run: /usr/local/include/d2/std/zlib.d(26): Error: module zlib is in file 'etc/c/zlib.d' which cannot be read import path[0] = /usr/local/include/d2/ Is this just a plain old bug in dev Phobos? Or is there something wrong with my setup (& if so, can anyone advise what it could be)? Thanks & best wishes, -- Joe |
April 22, 2012 Re: Module zlib cannot be read | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joseph Rushton Wakeling | On Sunday, 22 April 2012 at 15:26:34 UTC, Joseph Rushton Wakeling wrote: > /usr/local/include/d2/std/zlib.d(26): Error: module zlib is in file 'etc/c/zlib.d' which cannot be read > import path[0] = /usr/local/include/d2/ Do you see the file: /usr/local/include/d2/etc/c/zlib.d ? If not, then you probably do not have etc copied over from Phobos like you will need to. If you do, I don't know why it is complaining. |
April 22, 2012 Re: Module zlib cannot be read | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On 22/04/12 19:18, Jesse Phillips wrote: > On Sunday, 22 April 2012 at 15:26:34 UTC, Joseph Rushton Wakeling wrote: >> /usr/local/include/d2/std/zlib.d(26): Error: module zlib is in file >> 'etc/c/zlib.d' which cannot be read >> import path[0] = /usr/local/include/d2/ > > Do you see the file: > > /usr/local/include/d2/etc/c/zlib.d ? > > If not, then you probably do not have etc copied over from Phobos like you will > need to. Ah! The need to copy the etc/ directory was missing from the instructions I followed: https://xtzgzorex.wordpress.com/2011/07/31/d-building-dmd-and-phobos-on-linux/ Done now, and rdmd works fine. Thanks! |
Copyright © 1999-2021 by the D Language Foundation