Difference between revisions of "Installing LDC on Gentoo"

From D Wiki
Jump to: navigation, search
(Created page with "There is a Gentoo portage overlay for the LDC compiler officially supported by the developers. To use it, simply add the URL for the overlay to <tt>/etc/layman/layman.cfg<...")
 
(Detail the instructions)
Line 4: Line 4:
 
overlays  : http://www.gentoo.org/proj/en/overlays/repositories.xml
 
overlays  : http://www.gentoo.org/proj/en/overlays/repositories.xml
 
             https://raw.github.com/ldc-developers/gentoo-overlay/master/overlays.xml
 
             https://raw.github.com/ldc-developers/gentoo-overlay/master/overlays.xml
 +
</pre>
 +
 +
Then you can add the [[LDC]] overlay:
 +
 +
<pre>
 +
layman -a ldc
 +
</pre>
 +
 +
To emerge [[LDC]] you simply type:
 +
 +
<pre>
 +
emerge -av ldc2
 +
</pre>
 +
 +
Currently the [[LDC]] packages are marked as unstable. If you do not accept unstable packages globally then you have to add to <nowiki>/etc/portage/package.keywords</nowiki> the entry
 +
 +
<pre>
 +
dev-lang/ldc2 **
 
</pre>
 
</pre>
  

Revision as of 06:07, 13 December 2012

There is a Gentoo portage overlay for the LDC compiler officially supported by the developers. To use it, simply add the URL for the overlay to /etc/layman/layman.cfg:

overlays  : http://www.gentoo.org/proj/en/overlays/repositories.xml
            https://raw.github.com/ldc-developers/gentoo-overlay/master/overlays.xml

Then you can add the LDC overlay:

layman -a ldc

To emerge LDC you simply type:

emerge -av ldc2

Currently the LDC packages are marked as unstable. If you do not accept unstable packages globally then you have to add to /etc/portage/package.keywords the entry

dev-lang/ldc2 **

Resources

Overlay repository on GitHub