Installing GDC to home directory?

dsimcha dsimcha at yahoo.com
Mon Aug 15 09:46:38 PDT 2011


== Quote from Iain Buclaw (ibuclaw at ubuntu.com)'s article
> == Quote from Johannes Pfau (spam at example.com)'s article
> > dsimcha wrote:
> > >Is there an easy way to compile and install GDC + Phobos, druntime and
> > >a few custom libraries to your home directory on a machine that you
> > >don't have root access to?
> > I think you could just change the "--prefix=/opt/gdc" to
> > "--prefix=/home/dsimcha/gdc" and it should work.
> > Or you could use --prefix="/usr" and 'DESTDIR="/home/dsimcha" make
> > install', I never understood the difference between prefix and DESTDIR.
> --prefix is hard coded into the application, DESTDIR is post installation (make
> installs ie: gdc to $(DESTDIR)$(prefix)/bin).
> If installing in your home directory, you can get away with configuring with
> --prefix=/gdc and installing with DESTDIR=$HOME/apps  -  alter as needed.
> Regards
> Iain

Works great, thanks.


More information about the D.gnu mailing list