This problem has been reported before, but I am reporting it again - it *really* needs to be fixed. I'm using Ubuntu 10.04.
I originally mentioned this problem on the D mailing-list here -
http://www.mail-archive.com/[email protected]/msg07626.html
I've tried installing D three ways -
* Using the .deb file from Digital Mars. This seemed to install fine, but I got the "cannot read file object.d" when I tried to compile a simple program.
* Running "linux.mak" in the /src directory. Same error.
* Using the ddebber tool. Seemed to install fine, but the same error again.
The problem seems to be with the dmd.conf file, but the end-result is that the install does not work "out-of-the-box". Knowing where the problem seems to be is one thing - fixing it is quite another.
An aside - it would be a *great deal of help* if the install process created a log that you could refer to afterwards.
I'm not a complete newbie. I've compiled and installed many applications in my years on Linux, but few have given me as many problems as D. Even GHC (Haskell)
which is a BIG application, installs and runs flawlessly.
This problem is disappointing. I still believe that D is a great language, but problems like this *really* need to be fixed for it to gain more users.
- Andy
Comment #1 by andy.elvey — 2010-11-08T22:19:38Z
** Update - 9th Nov 2010 **
I've just installed dmd 2.050 (using the one-click .deb package from dmd).
The install went fine. However, when I type "dmd -v" at the terminal, this is what I get -
andy@obsidian:~$ dmd -v
binary dmd
version v2.050
config dmd.conf
parse import
Error: cannot read file ...@p/../../src/druntime/import.d
andy@obsidian:~$
So it looks like the file import.d can't be found. (I did a search for it and that failed to find it too). If someone can let me know which directory it should be in, that would be good.
When I try to compile a very simple D program, I get the same error -
dmd -w -c "hello.d" (in directory: /home/andy/d_stuff)
Compilation failed.
Error: cannot read file ...@p/../../src/druntime/import.d
I hope this may be of some help. At least the previous problem with the object.d file seems to have gone (to be replaced with another problem, unfortunately..).
I am **really keen** to get dmd installed on my PC, so I'll do all that I can to help with getting this problem fixed.
Comment #2 by bugzilla — 2012-01-19T14:03:32Z
I cannot reproduce anything like what you're experiencing.
Comment #3 by yebblies — 2012-02-10T21:46:03Z
This sounds like a setup issue, not a problem with the compiler or the deb. Please reopen if anyone can reproduce with a recent version of the compiler/installer.