www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Module zlib cannot be read

reply Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
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
Apr 22 2012
next sibling parent "Jesse Phillips" <jessekphillips+D gmail.com> writes:
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.
Apr 22 2012
prev sibling parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
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!
Apr 22 2012