How to install dmd2 in centos 5.3 x64
Puming
zhaopuming at gmail.com
Tue Dec 3 17:27:21 PST 2013
On Tuesday, 3 December 2013 at 17:47:47 UTC, Dejan Lekic wrote:
> On Tuesday, 3 December 2013 at 10:43:06 UTC, Puming wrote:
>> 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.
>>
>> 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.
>>
>> Thanks.
>>
>> Puming.
>
> What architecture that CentOS box is, and give us your
> /etc/dmd.conf please.
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
Linux 2.6.18-308.el5 #1 SMP EST 2012 x86_64 x86_64 x86_64
GNU/Linux
I'm using the the dmd.conf in dmd.2.064.2.zip
[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
DFLAGS=-I%@P%/../../src/phobos -I%@P%/../../src/druntime/import
-L-L%@P%/../lib64 -L-L%@P%/../lib32 -L--export-dynamic
I commented out the -L--no-warn-search-mismatch because when
building there's an error:
/usr/bin/ld: unrecognized option '--no-warn-search-mismatch'
More information about the Digitalmars-d-learn
mailing list