# Installing ROOT into a specific location

**URL:** <https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337>\
**Category:** ROOT\
**Created:** [June 14, 2016, 10:09am UTC](https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337 "2016-06-14T10:09:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meyerma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/meyerma/32/29724_2.png) [@meyerma](https://root-forum.cern.ch/u/meyerma)\
**Post date:** [June 14, 2016, 10:09am UTC](https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337/1 "2016-06-14T10:09:45Z")

</div>

Hello,

I installed ROOT using the following commands :

`wget https://root.cern.ch/download/root_v5.34.30.source.tar.gz
tar -xzvf root_v5.34.30.source.tar.gz
mv root root-5.34.30 && cd root-5.34.30
export PYTHON=$LOCATION/python/2.7.0/bin/python
./configure --prefix=$LOCATION/root/5.34.30/ \
            --with-pythia6-libdir=$LOCATION/pythia/6.4.28/lib \
            --disable-pythia8 \
 	     --with-python-incdir=$PYTHON/include \
 	     --with-python-libdir=$PYTHON/lib
make -j
make -j install
`

After checking root was starting and everything fine and I could run it  
Then I ran some codes and I noticed this error message:

[quote]Fatal in TVirtualStreamerInfo::Factory: Cannot find the plugin handler 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  
make: \*\*\* [phast-try] Abandon  
[/quote]

I redid the root installation and I noticed an error during the installation. I’m neither on lxplus nor administrator, that’s why I used --prefix

[code]meyer1@h2ologin1:$LOCATION/root/root-5.34.30\> make -j install

# ============================================================ === ROOT BUILD SUCCESSFUL. === === Run ‘make install’ now. ===

Installing binaries in $LOCATION/root/5.34.30//bin  
Installing libraries in $LOCATION/root/5.34.30//lib/root  
Installing headers in $LOCATION/root/5.34.30//include/root  
Installing $LOCATION/root/root-5.34.30/main/src/rmain.cxx in $LOCATION/root/5.34.30//include/root  
Installing cint/cint/include cint/cint/lib and cint/cint/stl in $LOCATION/root/5.34.30//lib/root/cint  
Installing icons in $LOCATION/root/5.34.30//share/root/icons  
Installing fonts in $LOCATION/root/5.34.30//share/root/fonts  
Installing misc docs in $LOCATION/root/5.34.30//share/doc/root  
Installing tutorials in $LOCATION/root/5.34.30//share/doc/root/tutorials  
Installing tests in $LOCATION/root/5.34.30//share/doc/root/test  
Installing macros in $LOCATION/root/5.34.30//share/root/macros  
Installing man(1) pages in $LOCATION/root/5.34.30//share/man/man1  
Installing config files in /etc/root  
mkdir: impossible de créer le répertoire « /etc/root »: Permission non accordée  
cp: la cible « /etc/root » n’est pas un répertoire  
Installing Autoconf macro in $LOCATION/root/5.34.30//share/aclocal  
Installing Emacs Lisp library in $LOCATION/root/5.34.30//share/emacs/site-lisp  
Installing GDML conversion scripts in $LOCATION/root/5.34.30//lib/root  
[/code]

Did I do something wrong maybe I missed one variable to set for using root to an non-standard location ?

Marco M.  
PS: I replaced the absolute paths by the variable “$LOCATION” in the quoted lines

---

<div class="post-metadata">

**Author:** ![meyerma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/meyerma/32/29724_2.png) [@meyerma](https://root-forum.cern.ch/u/meyerma)\
**Post date:** [June 14, 2016, 10:19am UTC](https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337/2 "2016-06-14T10:19:24Z")

</div>

More details:

- That’s something which doesn’t appear with root6, I manage to install it and make my script running
- I need root 5.34/30 because of production data, but that’s the official version that we are using…
- On lxplus, my script is running well on root 5.34/30, so that’s not a script-problem

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [June 14, 2016, 11:28am UTC](https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337/3 "2016-06-14T11:28:51Z")

</div>

Try:

```auto
wget https://root.cern.ch/download/root_v5.34.30.source.tar.gz
rm -rf root && tar -zxf root_v5.34.30.source.tar.gz
rm -rf root-5.34.30 && mv root root-5.34.30
export PYTHON=${LOCATION}/python/2.7.0/bin/python
export PATH=${LOCATION}/python/2.7.0/bin:${PATH}
export ROOTSYS=${LOCATION}/root/5.34.30
rm -rf ${ROOTSYS}
CONFIGURE_OPTIONS="\
--enable-soversion --all \
--with-python-incdir=${PYTHON}/include \
--with-python-libdir=${PYTHON}/lib \
--with-pythia6-libdir=${LOCATION}/pythia/6.4.28/lib \
--disable-pythia8 \
"
echo CONFIGURE_OPTIONS=${CONFIGURE_OPTIONS}
cd root-5.34.30
./configure ${CONFIGURE_OPTIONS}
make -j
make -j install

```

… or …

```auto
wget https://root.cern.ch/download/root_v5.34.30.source.tar.gz
rm -rf root && tar -zxf root_v5.34.30.source.tar.gz
rm -rf root-5.34.30 && mv root root-5.34.30
export PYTHON=${LOCATION}/python/2.7.0/bin/python
export PATH=${LOCATION}/python/2.7.0/bin:${PATH}
rm -rf ${LOCATION}/root/5.34.30
CONFIGURE_OPTIONS="\
--enable-soversion --all \
--prefix=${LOCATION}/root/5.34.30 \
--etcdir=${LOCATION}/root/5.34.30/etc/root \
--with-python-incdir=${PYTHON}/include \
--with-python-libdir=${PYTHON}/lib \
--with-pythia6-libdir=${LOCATION}/pythia/6.4.28/lib \
--disable-pythia8 \
"
echo CONFIGURE_OPTIONS=${CONFIGURE_OPTIONS}
cd root-5.34.30
unset ROOTSYS
./configure ${CONFIGURE_OPTIONS}
make -j
make -j install

```

See also: [Missing Canvas](https://root-forum.cern.ch/t/missing-canvas/17664/17)

---

<div class="post-metadata">

**Author:** ![meyerma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/meyerma/32/29724_2.png) [@meyerma](https://root-forum.cern.ch/u/meyerma)\
**Post date:** [June 14, 2016, 3:43pm UTC](https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337/4 "2016-06-14T15:43:57Z")

</div>

Hello Pepe,

Adding only the --soversion is solving my problem 🙂  
Thank you so much!
