# Error compiling Root from source on Ubuntu 14.04

**URL:** <https://root-forum.cern.ch/t/error-compiling-root-from-source-on-ubuntu-14-04/18776>\
**Category:** ROOT\
**Created:** [February 3, 2015, 3:47am UTC](https://root-forum.cern.ch/t/error-compiling-root-from-source-on-ubuntu-14-04/18776 "2015-02-03T03:47:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 3, 2015, 7:02am UTC](https://root-forum.cern.ch/t/error-compiling-root-from-source-on-ubuntu-14-04/18776/2 "2015-02-03T07:02:44Z")

</div>

I tip it’s a bug in ROOT’s installation procedure (I tip the “LD\_LIBRARY\_PATH” is not properly set before calling “root” when it tries to process the “hsimple.C” tutorial in the end, so you probably do not really need to worry about it that much).  
Try the [url=https://root-forum.cern.ch/t/missing-canvas/17664/17 ROOTSYS based method[/url] (in case anything goes wrong you’ll have additional “configure.out.txt” and “make.out.txt” files to look into): [code]cd root-6.02.04

# first get rid of “old” installed files

sudo make uninstall

# and make the source code “clean”

make maintainer-clean

# then build everything from scratch

# note: the “ROOTSYS=/Where/You/Want/To/Install/root” subdirectory must

# be different from the “/Where/You/Unpacked/The/Source/Code/Of/root”

# subdirectory (i.e. in which you will build ROOT)

export ROOTSYS=/usr/local/root-6.02.04  
./configure --enable-soversion --all \> configure.out.txt 2\>&1  
make \> make.out.txt 2\>&1  
sudo ROOTSYS=${ROOTSYS} make install \>\> make.out.txt 2\>&1[/code]

---

_[View the full topic](https://root-forum.cern.ch/t/error-compiling-root-from-source-on-ubuntu-14-04/18776)._
