# 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:** 1\
**Showing post:** 3

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

---

_[View the full topic](https://root-forum.cern.ch/t/installing-root-into-a-specific-location/21337)._
