Hi Friends,
dmd2 files downloaded at this address.
I took the files to the destination directory in this way.
/usr/dmd2
/usr/dmd2/bin
/usr/dmd2/lib
/usr/dmd2/man
/usr/dmd2/src
edited config file.
[Environment]
DFLAGS=-I/usr/dmd2/src/phobos -I/usr/dmd2/src/druntime/import
-L/usr/dmd2/lib
A simple example code.
import std.stdio;
void main()
{
writeln("Hello World");
}
Giving this error when I want to compile.
ld: library not found for -lphobos2
collect2: ld returned 1 exit status
--- errorlevel 1
needed to do to solve this problem?
.dmg file in the destination directory and the installation does
not want to set up.
sincerely.

Hi Friends,
dmd2 files downloaded at this address.
I took the files to the destination directory in this way.
/usr/dmd2
/usr/dmd2/bin
/usr/dmd2/lib
/usr/dmd2/man
/usr/dmd2/src
edited config file.
[Environment]
DFLAGS=-I/usr/dmd2/src/phobos -I/usr/dmd2/src/druntime/import
-L/usr/dmd2/lib
A simple example code.
import std.stdio;
void main()
{
writeln("Hello World");
}
Giving this error when I want to compile.
ld: library not found for -lphobos2
collect2: ld returned 1 exit status
--- errorlevel 1
needed to do to solve this problem?
.dmg file in the destination directory and the installation does not
want to set up.
sincerely.

Can you try with -m64? You might only have the 64-bit phobos library.
L.