Last update March 7, 2012

How To Ubuntu



Difference (last change) (no other diffs, normal page display)

Deleted: 79,189d78
jam tangan
jam tangan murah
jam tangan kw
hostgator coupon
kata mutiara
Jasa SEO
EZido
RDAnet
pioneer deh-1300mp
asus a53e-xa2
asus tf101-b1
asus tf101-a1
asus n53sv-eh72
asus republic of gamers g74sx
asus acer a5250
acer chromebook ac700
asus asus 53u
lg infinia 55lw5600
Sonicview 360 premier
asus 7 cu ft freezer
asus 30 single wall oven
brother cs6000i sewing machine
brother 1034d serger
brother sewing machines
Yokohama Geolandar H/T-S
crib tent tots in mind
kidco peapod plus
foscam fi8910w
samsung pl120 review
gopro helmet cam
Canon SX130IS
powershot s100
ContourHD 1080p
canon vixia hf r21
digital picture frame
canon ef 50mm f1.4
canon ef 70-300mm review
wide angle lenses
moving comfort sports bra
moving comfort bra
womens argyle sweater
bebe dresses
ViewSonic VX2250WM
Le Pan TC 970
Apple MacBook Air MC965LL
Sennheiser CX 880
plantronics cs540
ultrasonic jewelry cleaner
Sennheiser RS120
bose quietcomfort 15 acoustic noise cancelling headphones
logitech harmony one remote
logitech harmony 900
sony mhc-ec69i
sony mhcec909ip
bose wave music system
sony htss380
logitech squeezebox touch
sony dvp-fx970
onkyo tx-nr509
onkyo tx - nr609
onkyo ht-s3400
energy 5.1 take classic home theater system
polk audio psw505
onkyo ht-s5400
onkyo tx-nr709
belkin pf60
onkyo ht-rc360
denon avr-1912
Yamaha YHT-S400BL
fujitsu scansnap s1500
brother hl-2270dw
epson workforce 545
hp laserjet p2055dn
bushnell 8mp trophy cam
toshiba 32c110u
panasonic viera tc-p60s30
VIZIO E220VA
hauppauge wintv dcr-2650
Acer AM3970-U5022
Acer AspireRevo AR3700-U3002
Dell Inspiron i570
Dell GX620
Gateway FX6860-UR20P
Western Digital My Passport Essential SE 1 TB USB 3.0
Fujitsu ScanSnap S1300
Epson Perfection V300
Fujitsu SCANSNAP S1100
NeatDesk Desktop Scanner and Digital Filing System
Epson WorkForce Pro GT-S50
Kodak P811BK
Epson Perfection V330
Viewsonic VX2453MH
Asus VE228H
ViewSonic VA2431WM
Samsung B2230
HP 2711x
ASUS ML228H
Epson PowerLite Home Cinema 8350
Optoma PK301
Epson EX7210
Epson EX5210
ViewSonic PJD5133
Acer X1161P
FAVI RioHD-LED-2
Epson EX3210
ViewSonic PJD6531w
Trinity 360 Breville 800JEXL
Skil 3320-02
Delta 46-460
Grizzly G0555
Delta 18-900L

Table of contents of this page
Ubuntu - Get started with D   
Alternative 1: Installing the DMD compiler (non-free license)   
Alternative 2: Installing the GDC compiler (free license)   
Alternative 3: Installing the GDC compiler with Tango and DSSS   
Alternative 4: 1-click install for DMD   
Installing the IDE   

Ubuntu - Get started with D    

This will help get you on your feet with D. A tip: you can copy the code and paste it in the terminal with Shift + Ctrl + V

Alternative 1: Installing the DMD compiler (non-free license)    

  1. Download and unzip dmd.zip to /tmp
     cd /tmp
    wget ftp://ftp.digitalmars.com/dmd.zip
    unzip dmd.zip
  2. Open a terminal and get root access
    sudo su -
    cd /tmp
  3. Install the linux executables to /usr/local/bin (and make them executable too)
    install -p -m 0755 dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj /usr/local/bin
  4. Install the manpages to /usr/local/man (under the man1 subdirectory)
    install -p -m 0644 dmd/man/man1/dmd.1 dmd/man/man1/obj2asm.1 dmd/man/man1/dumpobj.1 /usr/local/man/man1
  5. Install the library to /usr/local/lib:
    install -p -m 0644 dmd/lib/libphobos.a /usr/local/lib
  6. You can install all the Phobos import modules to a directory like /usr/local/lib/phobos
    mkdir /usr/local/lib/phobos  (cd dmd/src/phobos; find -name '*.d' | xargs tar c) | (cd /usr/local/lib/phobos; tar xv)
  7. Create the file /etc/dmd.conf and write two lines
    exit
    gksudo gedit /etc/dmd.conf
Let it contain these two lines:
[Environment]
DFLAGS=-I/usr/local/lib/phobos
  1. You may need some additional libraries:
     sudo aptitude install build-essential gdb libstdc++5
Witold Baryluk maintains prepackaged scripts which do all nacasary updates, downloads, extracting and configuration using standard APT mechanisms. Check http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler#MethodFour-Debian for instructions for Debian based systems

Alternative 2: Installing the GDC compiler (free license)    

Packages can be found at http://gdcgnu.sourceforge.net/ and development at http://dgcc.sourceforge.net/

  • Download the DEB packages for GDC compiler and (optionally) GDB debugger

Alternative 3: Installing the GDC compiler with Tango and DSSS    

Ubuntu Feisty, June 2007. Install the general compiller tools:
 sudo aptitude install build-essential
Go to the following webpage and download the installer that is bundled with both GDC and DSSS: http://www.dsource.org/projects/tango/wiki/GdcDownloads or just download it directly with wget:
 wget http://downloads.dsource.org/projects/tango/0.98/tango-0.98-forDSSS-gdc-i686-pc-linux-gnu-withDSSS-withGDC.sh
Then we make the file executable
 chmod +x tango-0.98-forDSSS-gdc-i686-pc-linux-gnu-withDSSS-withGDC.sh
Execute the script:
 sudo ./tango-0.98-forDSSS-gdc-i686-pc-linux-gnu-withDSSS-withGDC.sh
You will be asked for an installation directory the recommended is: /usr/local

And finally we configure rebuild

 sudo nano /etc/rebuild
Make it contain these two lines:
 include=/usr/local/include/d
 flags=-fversion=Posix -fversion=Tango

Now you can compile a file with:

 rebuild something.d

Alternative 4: 1-click install for DMD    

2008-03-07: dmd_2.012-030608_i386.deb (DMD 2.012)

If you run into "missing ctr1.o" on linking, you need:

 sudo apt-get install libc6-dev

Installing the IDE    

  1. Now we have installed a compiler, lets install CodeBlocks?
  2. First a library we need
 sudo apt-get install libc6-dev
  1. Go to the following webpage: http://forums.codeblocks.org/index.php?board=20.0
  2. Go to the newest thread and you will find a link to CB_date_rev_Ubuntu6.xx.deb download it
  3. When downloaded open the file using the file manager, and then click install
  4. Done!

FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: March 7, 2012 20:36 (diff))