D under Linux Mint

Kevin Cox kevincox.ca at gmail.com
Wed May 23 14:58:33 PDT 2012


On May 23, 2012 5:48 PM, "snow" <marcel.patzwahl at googlemail.com> wrote:
>
> Hello, Ive tried to install D under Linux and followed the steps
> described on . this page http://dlang.org/dmd-linux.html . I
> checked all folders after every step and everything is where it
> should be. In the secound step I did both, adding dmd to the PATH
> and copied the executables into the lib folder. If I type dmd
> into the console, I get back all infos about D, so this is
> already working. But if I try to run a simple Hello world program
> like this:
>
> import std.stdio;
>
> void main() {
>        writeln("Hallo Welt");
>        }
>
> I get the following error:
> object.d: Error: module object is in file 'object.d' which cannot
> be read
> import path[0] = /usr/local/bin/../../src/phobos
> import path[1] = /usr/local/bin/../../src/druntime/import
>
>
> My DMD folder is in the home directory and the dmd.config
> contains this:
> [Environment]
>
> DFLAGS=-I%@P%/../../src/phobos -I%@P%/../../src/druntime/import
> -L-L%@P%/../lib64 -L-L%@P%/../lib32 -L--no-warn-search-mismatch
> -L--export-dynamic
>
> I already tried to compile the program with geany and the
> console. In the console i trid to compile it as: dmd hello.d and
> dmd -c hello.d. But everywhere I get the same errors
>
>

It appears that dmd can't find the library files.  IIRC object.d is part of
the runtime.  Check the paths in the error message and try to ensure
necessary files are found.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120523/eb3f3d57/attachment.html>


More information about the Digitalmars-d-learn mailing list