El 03/12/13 14:10, Puming ha escrit: > On Tuesday, 3 December 2013 at 11:17:27 UTC, Jordi Sayol wrote: >> El 03/12/13 11:43, Puming ha escrit: >>> Hi: >>> >>> I followed the steps in http://dlang.org/dmd-linux.html, but when I build a >>> simple hello world program with: >>> >>> rdmd hello.d >>> >>> I get the following error: >>> >>> rdmd hello.d >>> /usr/bin/ld: cannot find -l:libphobos2.a >>> >>> I have copied dmd2/linux/lib64/libphobos2.a to /usr/lib64, but ld still >>> can't find it. >>> >> >> $ rdmd -L-L/usr/lib64 a.d >> > > still get the same error.
Is "libphobos2.a" the same arch than the program you're building? > >> You can permanently add this to dmd command-line by creating > > I was using the default dmd.conf in the .zip package > > >> "dmd.conf" file: <http://dlang.org/dmd-linux.html#dmd_conf> >> >>> Now I really wish all our servers are using ubuntu server.. >>> >>> Could anybody shed some light on where the problem is? I don't have much >>> experience in linux except using apt-get in ubuntu. >> >> On Debian based systems, like Ubuntu, you can use "d-apt" repository: >> <http://d-apt.sourceforge.net/> > > Yes, I was using that at home. > >> >>> >>> Thanks. >>> >>> Puming. > > -- Jordi Sayol
