# Problems installing root with --prefix=$HOME/.local

**URL:** <https://root-forum.cern.ch/t/problems-installing-root-with-prefix-home-local/14683>\
**Category:** ROOT\
**Created:** [August 1, 2012, 6:12pm UTC](https://root-forum.cern.ch/t/problems-installing-root-with-prefix-home-local/14683 "2012-08-01T18:12:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![findlay](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/ee59a6/32.png) [@findlay](https://root-forum.cern.ch/u/findlay)\
**Post date:** [August 1, 2012, 6:12pm UTC](https://root-forum.cern.ch/t/problems-installing-root-with-prefix-home-local/14683/1 "2012-08-01T18:12:32Z")

</div>

I am trying to install root 5.34/00 on ubuntu 12.04 into $HOME/.local. I have set $ROOTSYS to $HOME/.local, and $LD\_LIBRARY\_PATH to include $ROOTSYS/lib. I believe I have followed all instructions [here](http://root.cern.ch/drupal/content/installing-root-source) relevant to installing into a ‘–prefix’ location.

This is my build sequence:

```auto
~/Documents/work/CERN/root $ echo $ROOTSYS ; echo $LD_LIBRARY_PATH 
/home/justin/.local
/home/justin/.local/lib:/lib
~/Documents/work/CERN/root $ ./configure --prefix=${ROOTSYS} --etcdir=${ROOTSYS}/etc --enable-rpath --enable-soversion --enable-explicitlink --enable-python
~/Documents/work/CERN/root $ make all install
```

And here is what happens when I try to run root:

```auto
~/Documents/work/CERN/root $ which root
/home/justin/.local/bin/root
~/Documents/work/CERN/root $ root
rootx xpm error: XpmOpenFailed
root: can't start ROOT -- check that ${ROOTSYS}/bin/root.exe exists!
~/Documents/work/CERN/root $ ls ${ROOTSYS}/bin/root.exe
/home/justin/.local/bin/root.exe
~/Documents/work/CERN/root $ root.exe
...
Error: cannot open file "iostream" (tmpfile):2:
***Interpreter error recovered***
Error: cannot open file "bits/predefs.h" /usr/include/features.h:325:
***Interpreter error recovered***
root [0]
```

I’ve created the file /etc/ld.so.conf.d/root.conf with contents

```auto
/home/justin/.local/lib
```

and run `sudo ldconfig` without fixing any of the above problems, of which there are 3 or 4:  
[ul]  
[_]‘rootx xpm error: XpmOpenFailed’ when running `root`[/_]  
[_][/home/justin/.local/]root can’t find /home/justin/.local/root.exe[/_]  
[_]‘cannot open file “iostream” (tmpfile):2:’ (does it mean /usr/include/c++/4.6/iostream or /home/justin/.local/lib/root/cint/cint/include/iostream)[/_]  
[_]‘cannot open file “bits/predefs.h” /usr/include/features.h:325:’[/_]  
[/ul]

I am uncertain about how to proceed from this point. Thank you for your help.

---

_[View the full topic](https://root-forum.cern.ch/t/problems-installing-root-with-prefix-home-local/14683)._
