forked from ldc-developers/ldc
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
bioinfornatics edited this page Sep 29, 2011
·
16 revisions
This section will explain how install ldc on your system
- libconfig
- libconfig-devel
- cmake
- gc
- gcc-c++
- gcc
- libconfig
- llvm 2.9
On linux many distribution have already packaged this one, so take it.
Download llvm 2.9
$ wget http://llvm.org/releases/2.9/llvm-2.9.tgz
$ ./configure --prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--enable-optimized \
--enable-assertions
$ ./configure --prefix=/usr --bindir=/usr/bin --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --enable-optimized --enable-assertions
make -j9
su -c 'make install'
Now we will build and install ldc as D2 compiler. In first download ldc.
$ git clone git://github.com/ldc-developers/ldc.git
Get druntime and phobos2 for ldc.
$ cd ldc; git submodule init; git submodule update;
$ cmake -DD_VERSION:STRING=2 \
-DCONF_INST_DIR:PATH=/etc \
-DRUNTIME_DIR=./druntime \
-DPHOBOS2_DIR=./phobos \
-DD_FLAGS:STRING="-O3;-g;-w;-d;-release" \
.
`$ make -j9 VERBOSE=2 phobos2```
$ su -c 'make install'