Re: Reduced privileges install
From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:34
Andrew Keller [off-list ref] writes:
make -C perl prefix='/usr/users/students/ak4390/.local' DESTDIR='' install make[1]: Entering directory `/usr/users/students/ak4390/Downloads/git-1.7.2.3/perl' make[2]: Entering directory `/usr/users/students/ak4390/Downloads/git-1.7.2.3/perl' Warning: You do not have permissions to install into /usr/perl5/site_perl/5.6.1/sun4-solaris-64int at /usr/perl5/5.6.1/lib/ExtUtils/Install.pm line 85.
The DESTDIR='' is suspicious. It seems the prefix is not passed properly in recursive "make" invocations, and perl tries to install things in the default directory. Kevin Ballard [off-list ref] writes:
Andrew Keller [off-list ref] writes:quoted
$ ./configure --prefix=/usr/users/students/ak4390/.local $ make $ make installI admit, I'm not well-versed on the build system, but my impression was that specifying --prefix in ./configure was indeed supposed to propagate to a subsequent make and make install.
It does. I installed Git successfully without ever being root on several machines. In my case, it was GNU/Linux machines, so something may go wrong because of a non-gnu system. Did you try compiling with gmake instead of make? -- Matthieu Moy http://www-verimag.imag.fr/~moy/