How to install Eclipse+Descent+Ldc D programming language compiler and configure auto completition
Hi, i’ve just done a small video in how to being productive with the D programming language.
The video is actually on YouTube and shows, step by step, how to set up a perfect and complete IDE for the D programming language.
Hope you enjoy… See you!
Categories: D, ubuntu
D programming language, Eclipse, ubuntu
I did not enjoy the tutorial. I was not a tutorial at all … it was a chat session with your buddies.
It was impossible to see what you were writing, you were too fast ans stepee.
I could not apply it.
Do you have a real step by step tutorial?
Remember that D is a new language and the configuration for eclipse is actually manual.
I haven’t bee able to run a program even when I have installed Descent. I dont know why I cannot run it.
Cheers
…
Hello Samuel:
First of all, sorry for my english.
You don’t discourage.
I think the same about the tutorial, but it’s better have anything than have nothing. Thanks to Vicenzo Ampolo for his work.
About your name, are you valencian of Spain?
This is a little guide for standard people (like me) can do a D-Language program in Kubuntu 9.04 Jaunty.
I haven’t experience in: Linux, C, C++, D, but I’am interesting in D-Language.
It’s difficult for me undersand the guides to install the tools and librarys and I have found a lot of problems.
And I’am not the only one:
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=72165
http://goshawknest.wordpress.com/2009/08/25/how-to-install-eclipsedescentldc-d-programming-language-compiler-and-configure-auto-completition/
I want to do a simple program that can retrieve data from a sqlite database. After two weeks I only can do the “Hello World!”.
The steps will be schematics but I think it can be followed.
Install LDC compiler
——————–
http://www.dsource.org/projects/ldc
generic install instructions
Download the LDC binary for your platform
LDC 0.9.1 for linux x86-64
The file ldc-0.9.1-x86_64.tar.bz2 appears in the download directory.
Move the file to your home directory:
$ move ldc* $HOME
Unpack:
$ cd $HOME
$ tar jvxf ldc-0.9.1-x86_64.tar.bz2
The directory ldc-0.9.1-x86_64 is created.
Update de PATH:
$ vi $HOME/.bashrc
PATH=$PATH:$HOME/ldc-0.9.1-x86_64/bin
Close the console/terminal session and open an new console to set the new PATH.
$ ldc
If the help of ldc is not displayed then the PATH is not set ok.
You can do:
$ $HOME/ldc-0.9.1-x86_64/bin/ldc
Create a work directory:
$ mkdir $HOME/workdir
Because I don’t know how tell the ldc command the PATH of de tango libraries needed for screen input/output
copy the files to the work directory:
$ cd $HOME/workdir
$ cp -r $HOME/ldc-0.9.1-x86_64/import/tango .
Now, you can write the hello-word program:
$ vi probe.d
import tango.stdc.stdio;
int main()
{
printf(“Hello, World!\n”);
return 0;
}
Another version:
import tango.io.Stdout;
int main()
{
Stdout(“Hello World.”).newline;
return 0;
}
Compile:
$ ldc probe.d
The file probe is generated. Now you can run:
$ probe
In http://www.dsource.org/projects/ldc there are instructions to install ldc in ubuntu, but I don’t know what are doing.
I’m working for gdc in these last weeks, we are also preparing deb packages for it. A tutorial on how to set Descent + gdc will follow as well. and this time it will be written, with some screenshots, so speed will be not a problem for the reader
See you.