Hey, Vladimir. I've had good luck using DMD2 under a 32bit chroot environment. If you'd like instructions on how to do that I can provide them (email me directly). After you compile your program under chroot you can run it in 64bit mode so long as you have the 32bit compatibility libraries installed.<br>
<br><div class="gmail_quote">On Sat, Sep 11, 2010 at 3:52 PM, Vladimir G. Ivanovic <span dir="ltr"><<a href="mailto:vladimir@acm.org">vladimir@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm running Fedora 13.x86_64 and I've tried various ways of getting a<br>
D compiler to work. None have succeeded.<br>
<br>
1. a. I can't install dmd 2.048:<br>
<br>
# rpm -Uvh /downloads/dmd-2.048-0.i386.rpm<br>
error: Failed dependencies:<br>
gcc(x86-32) >= 4.2.3 is needed by dmd-2.048-0.i386<br>
I don't know what package will satisfy this dependency.<br>
b. dmd is a closed compiler. Not good. I'm really not comfortable<br>
running a compiler for which I don't have access to the source. The<br>
risk of undetected malware is too great.<br>
c. So, I give up on dmd.<br>
<br>
2. I can't run ldc because<br>
a. The ldc RPM requires Tango, even though this is not an RPM<br>
dependency for ldc, i.e. you can install ldc without any errors.<br>
b. The installation instructions for Fedora on the LDC web site are<br>
incorrect. "yum install ldc" works, but "yum install tango" doesn't.<br>
"yum install tango-devel" is the correct command. (This is the first<br>
time I've heard of <pkg>-devel without a corresponding <pkg>.)<br>
c. After I've gotten everything installed, it still doesn't work. I get<br>
$ ldc hello.d<br>
hello.d(5): Error: module stdio cannot read file 'std/stdio.d'<br>
d. OK, so I link /usr/include/d/tango/stdc to<br>
/usr/include/d/tango/std, but it still doesn't work. I get:<br>
$ ldc hello.d<br>
hello.d(8): Error: undefined identifier writefln<br>
hello.d(8): Error: function expected before (), not writefln<br>
of type int<br>
e. ldc only supports D v1.<br>
f. All of this is too much for me. I give up on ldc.<br>
<br>
3. I can't get gdc to compile.<br>
a. First I have to get gcc-4.4.4 to compile, but that requires a 4<br>
year old version of automake. I have to downgrade.<br>
b. After that's fixed, I'm still running into errors that prevent a<br>
build. The errors change from changeset to changeset. So, I'm giving<br>
up on gdc.<br>
<br>
Getting a D compiler to run on x86_64 Linux is too hard. I'm giving up<br>
on D.<br>
<br>
I'm posting this message not as a plea for help, but to illustrate how<br>
hard it is to get D to run on Fedora.x86_64. The success of D depends<br>
on high quality, open source compilers being available (my belief),<br>
and so far, D doesn't seem to be mature enough to be considered, at<br>
least on Fedora.x86_64.<br>
<br>
But, on the plus side, the existence of the book "The D Programming<br>
Language" is a major step in getting D accepted as a serious system<br>
programming language. Maybe installation will improve and D will move<br>
forward.<br>
<br>
--- Vladimir<br>
<font color="#888888"><br>
--<br>
Vladimir G. Ivanovic <a href="http://www.leonora.org" target="_blank">http://www.leonora.org</a><br>
+1 650 450 4101 <a href="mailto:vladimir@acm.org">vladimir@acm.org</a><br>
<br>
<br>
</font></blockquote></div><br>