D语言,环境安装于Helloword程序

 

 dmd install

Ubuntu

$ wget http://ftp.digitalmars.com/dmd_2.061-0_amd64.deb
$ sudo apt-get install libc6-dev

$ sudo dpkg -i dmd_2.061-0_amd64.deb
		

CentOS

wget http://ftp.digitalmars.com/dmd-2.062-0.fedora.x86_64.rpm
yum localinstall dmd-2.062-0.fedora.x86_64.rpm

 

 

2. helloworld

 

$ cat hello.d
import std.stdio;
void main() {
  writeln("Hello, world!");
}
		
		
$ dmd hello.d
$ ./hello
Hello, world!
		
 
 

 

 

你可能感兴趣的:(helloworld,netkiller,dlang)