Installing GDC to home directory?

Iain Buclaw ibuclaw at ubuntu.com
Sun Aug 14 23:25:41 PDT 2011


== 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


More information about the D.gnu mailing list