Installing ROOT without root

I don’t have root for this cluster and trying to install ROOT in my directory.
./configure --prefix=$INSTALLDIR --etcdir=$INSTALLDIR/etc/root --all
make -j4
make install

However, I think it is still messing with the /etc/root where I don’t have permission too because I got the following error:
error: unpacking of archive failed on file /etc/root: cpio: mkdir failed - Permission denied

Any advice?

INSTALLDIR is not set. If it’s not set then $INSTALLDIR/etc/root is expanded by the shell to /etc/root.

Do “echo $INSTALLDIR” just before running the configure command to make sure you’re setting it correctly.

Also you can check config.status in the root build directory. It should show the values of the expanded environment variables you used when executing the configure command.