www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmd & gdc in archlinux

reply %u <asmasm hotmail.com> writes:
i can't install dmd or gdc in arch linux from AUR
i don't way?
Mar 06 2011
parent reply =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= <jeberger free.fr> writes:
%u wrote:
 i can't install dmd or gdc in arch linux from AUR
 i don't way?
For gdc, which package exactly are you trying to install? On what platform (32 or 64 bits)? And what error do you get? Jerome --=20 mailto:jeberger free.fr http://jeberger.free.fr Jabber: jeberger jabber.fr
Mar 06 2011
parent reply %u <asmasm hotmail.com> writes:
in dmd:
this the error massage

object.d: Error: module object is in file 'object.d' which cannot be read
import path[0] = /usr/include/d
import path[1] = /usr/include/d/druntime/import

in gdc:
i can't install it and i use this command
yaourt -R gdc
Mar 06 2011
parent reply %u <asmasm hotmail.com> writes:
== Quote from %u (asmasm hotmail.com)'s article
 i can't install it and i use this command
 yaourt -R gdc
i mean yaourt -S gdc
Mar 06 2011
next sibling parent Andrew Wiley <debio264 gmail.com> writes:
On Sun, Mar 6, 2011 at 10:55 PM, %u <asmasm hotmail.com> wrote:
 == Quote from %u (asmasm hotmail.com)'s article
 i can't install it and i use this command
 yaourt -R gdc
i mean yaourt -S gdc
It looks like in the official repositories, we have dmd, but you're not installing libtango or libphobos. You must install one of them. If you're after D2, you're back in the AUR with gdc2-hg or dmd2/libphobos2.
Mar 07 2011
prev sibling next sibling parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
On Monday, March 07, 2011 09:09:02 Andrew Wiley wrote:
 On Sun, Mar 6, 2011 at 10:55 PM, %u <asmasm hotmail.com> wrote:
 == Quote from %u (asmasm hotmail.com)'s article
 
 i can't install it and i use this command
 yaourt -R gdc
i mean yaourt -S gdc
It looks like in the official repositories, we have dmd, but you're not installing libtango or libphobos. You must install one of them. If you're after D2, you're back in the AUR with gdc2-hg or dmd2/libphobos2.
For anyone wanting dmd, I'd advise simply downloading the zip file, unzipping it wherever you want it and add /path/to/unzipped/dmd2/linux/bin to your path. Bam. It works. There's no need to actually install it with the distro's package manager and put it in /usr/bin or whatnot. That's what I've been doing for ages, regardless of my distro (I currently use Arch), and it just works without having to worry about what the distro is up to. So, I don't know what the best way to deal with gdc is, but for dmd, it's insanely simple to just use the official zip file. That's what I'd recommend that _anyone_ do in Linux, regardless of distro. - Jonathan M Davis
Mar 07 2011
parent reply %u <asmasm hotmail.com> writes:
== Quote from Jonathan M Davis (jmdavisProg gmx.com)'s article

 and add /path/to/unzipped/dmd2/linux/bin to your path.
how can i add path ?
Mar 07 2011
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
On Monday, March 07, 2011 12:10:27 %u wrote:
 == Quote from Jonathan M Davis (jmdavisProg gmx.com)'s article
 
 and add /path/to/unzipped/dmd2/linux/bin to your path.
how can i add path ?
Put it in the appropriate bashrc file - be it your personal .bashrc or /etc/bash.bashrc.local or whatever is appropriate for your system. On my Arch system, I believe that I put it in /etc/bash.bashrc.local. Regardless, you add a line similar to this to your bashrc file: export PATH=$PATH:/path/to/unzipped/dmd2/linux/bin On my system, it's export PATH=$PATH:/home/jmdavis/dmd2/linux/bin - Jonathan M Davis
Mar 07 2011
parent %u <asmasm hotmail.com> writes:
== Quote from Jonathan M Davis (jmdavisProg gmx.com)'s article
 On Monday, March 07, 2011 12:10:27 %u wrote:
 == Quote from Jonathan M Davis (jmdavisProg gmx.com)'s article

 and add /path/to/unzipped/dmd2/linux/bin to your path.
how can i add path ?
Put it in the appropriate bashrc file - be it your personal .bashrc or /etc/bash.bashrc.local or whatever is appropriate for your system. On my Arch system, I believe that I put it in /etc/bash.bashrc.local. Regardless, you add a line similar to this to your bashrc file: export PATH=$PATH:/path/to/unzipped/dmd2/linux/bin On my system, it's export PATH=$PATH:/home/jmdavis/dmd2/linux/bin - Jonathan M Davis
Jonathan M Davis you are the best thanks
Mar 08 2011
prev sibling parent =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= <jeberger free.fr> writes:
%u wrote:
 =3D=3D Quote from %u (asmasm hotmail.com)'s article
 i can't install it and i use this command
 yaourt -R gdc
=20 i mean yaourt -S gdc
The gdc package is woefully out of date. You should install either gdc1-hg (for D1) or gdc2-hg (for D2) both of which are reasonably maintained (note however that they cannot be installed together). Jerome --=20 mailto:jeberger free.fr http://jeberger.free.fr Jabber: jeberger jabber.fr
Mar 07 2011