在Fedora 14上 安装默认的D语言开发环境

    技术2022-05-20  64

    一、D语言主页: http://www.digitalmars.com/d/index.html 二、在Fedora 14上 安装默认的D语言开发环境: sudo yum install -y ldc tango* Dependencies Resolved ================================================================================  Package                 Arch   Version                           Repository                                                                            Size ================================================================================ Installing:  ldc                     i686   0.9.2-30.20110115hg1832.fc14      updates 4.3 M  tango-devel             i686   0.99.9-20.20100928svn5567.fc14    updates 2.1 M  tango-doc               noarch 0.99.9-20.20100928svn5567.fc14    updates 123 k  tango-icon-theme        noarch 0.8.90-2.fc12                     fedora  7.5 M  tango-icon-theme-extras noarch 0.1.0-4.fc12                      fedora  366 k  tangogps                i686   0.99.4-2.fc14                     fedora  151 k Installing for dependencies:  gpscorrelate            i686   1.6.1-2.fc14                      fedora  146 k  jhead                   i686   2.90-2.fc14                       updates  52 k Transaction Summary ================================================================================ Install       8 Package(s) Total download size: 15 M Installed size: 42 M Is this ok [y/N]: y 三、 编写 hello world 程序 http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD # mkdir ~/d # cd ~/d # cat > hello.d <<"EOF" import tango.io.Stdout; void main() {     Stdout.format("{} World", "Hello").newline; } # ldc hello.d # ./hello Hello World


    最新回复(0)