Problem in ROOT5.32 installation as a normal user on AFS

Dear ROOT expert:

I am installing ROOT5.32, I install it under /afs/ific.uv.es/user/q/qing/software/ with:

./configure --prefix=/afs/ific.uv.es/user/q/qing/software/

no problem in gmake, but when gmake install, seems it want to create ‘/etc/root’’ and put some configuration files there, of course it failed since I don’t have the root privielege.

-bash-3.2$ gmake install
Installing binaries in /afs/ific.uv.es/user/q/qing/software//bin
Installing libraries in /afs/ific.uv.es/user/q/qing/software//lib/root
Installing headers in /afs/ific.uv.es/user/q/qing/software//include/root
Installing /afs/ific.uv.es/user/q/qing/download/root/main/src/rmain.cxx in /afs/ific.uv.es/user/q/q
ing/software//include/root
Installing cint/cint/include cint/cint/lib and cint/cint/stl in /afs/ific.uv.es/user/q/qing/softwar
e//lib/root/cint
Installing icons in /afs/ific.uv.es/user/q/qing/software//share/root/icons
Installing fonts in /afs/ific.uv.es/user/q/qing/software//share/root/fonts
Installing misc docs in /afs/ific.uv.es/user/q/qing/software//share/doc/root
Installing tutorials in /afs/ific.uv.es/user/q/qing/software//share/doc/root/tutorials
Installing tests in /afs/ific.uv.es/user/q/qing/software//share/doc/root/test
Installing macros in /afs/ific.uv.es/user/q/qing/software//share/root/macros
Installing man(1) pages in /afs/ific.uv.es/user/q/qing/software//share/man/man1
Installing config files in /etc/root
mkdir: cannot create directory /etc/root': Permission denied cp: target/etc/root’ is not a directory
Installing Autoconf macro in /afs/ific.uv.es/user/q/qing/software//share/aclocal
Installing Emacs Lisp library in /afs/ific.uv.es/user/q/qing/software//share/emacs/site-lisp
Installing GDML conversion scripts in /afs/ific.uv.es/user/q/qing/software//lib/root

Later when running proof-lite, the following error appeared:

Fatal in TVirtualStreamerInfo::Factory: Cannot find the plugin handlers for TVirtualStreamerInfo! $ROOTSYS/etc/plugins/TVirtualStreamerInfo does not exist or is inaccessible.
aborting
Error in TUnixSystem::StackTrace script /etc/root/gdb-backtrace.sh is missing
Aborted

Seems ROOT still wants to call something under /etc/root, so how can I avoid the accessing of /etc/root ?

Cheers,Gang

Ok, I just change it to:

./configure --prefix=/afs/ific.uv.es/user/q/qing/software/ --etcdir=/afs/ific.uv.es/user/q/qing/software/etc/root, let me see if it works.

Cheers,Gang

O.K, the problem is solved in this case. But it’s still strange why I need to assign --etcdir even if I have assigned --prefix.

Cheers,Gang

Hi,

this may look indeed strange, but in principle the --prefix is only intended for “distribution” builds, like for Debian or RedHat. In those cases the install directory (–prefix=) /usr or /usr/local and etc has always to go in /etc as per convention. So this is what the configure script is doing by default. Therefore use --etcdir as you did to set it to where you want it. Personally I always install without --prefix and add the /bin to my PATH or, better, source /biun/thisroot.sh.

Cheers, Fons.