# Having difficulties installing ROOT locally

**URL:** <https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618>\
**Category:** Newbie\
**Created:** [May 27, 2025, 3:04pm UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618 "2025-05-27T15:04:26Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 27, 2025, 3:04pm UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/1 "2025-05-27T15:04:27Z")

</div>

_ROOT Version:_ 6.34.04  
_Platform:_ Linux  
_Compiler:_ Not Provided

* * *

Hi, I’ve been having this issue for a while when installing ROOT locally:

bash

```auto
CMake Error at ~/root-6.34.04/buildroot/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-Release.cmake:49 (message):
  Command failed: 2

   'make'

  See also

~/root-6.34.04/buildroot/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log

```

Here’s the log file it’s referring to:

```auto
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'
/usr/bin/ld: /tmp/tempfile1.o: in function `asim_parse_argb_color':
afterbase.c:(.text+0x1773): undefined reference to `get_default_asvisual'
/usr/bin/ld: afterbase.c:(.text+0x17a5): undefined reference to `XLookupColor'
/usr/bin/ld: /tmp/tempfile1.o: in function `asim_get_drawable_size':
afterbase.c:(.text+0x2336): undefined reference to `get_default_asvisual'
/usr/bin/ld: afterbase.c:(.text+0x2390): undefined reference to `XGetGeometry'
/usr/bin/ld: /tmp/tempfile1.o: in function `asim_asxml_var_init':
afterbase.c:(.text+0x27b4): undefined reference to `get_default_asvisual'
/usr/bin/ld: afterbase.c:(.text+0x27f2): undefined reference to `XDisplayWidth'
/usr/bin/ld: afterbase.c:(.text+0x280e): undefined reference to `XDisplayHeight'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:348: afterbase.o] Error 1

```

I’ve successfully installed it before by making it disregard AFTERIMAGE, but that breaks `TBrowser`. Not sure what I’m doing wrong.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 27, 2025, 3:10pm UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/2 "2025-05-27T15:10:32Z")

</div>

Welcome to the ROOT Forum!  
It looks like some X11 libs are missing. Did you check the [Dependencies - ROOT](https://root.cern/install/dependencies/)?  
And BTW, why don’t you take a pre-built binary distribution for your system?

---

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 27, 2025, 3:24pm UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/3 "2025-05-27T15:24:03Z")

</div>

according to the dependancies page for Ubuntu and Debian based distributions it says the only dependencies come from this:

```auto
sudo apt install binutils cmake dpkg-dev g++ gcc libssl-dev git libx11-dev \
libxext-dev libxft-dev libxpm-dev python3 libtbb-dev libvdt-dev libgif-dev

```

I have them downloaded but still have been having the issue.

Not sure what a pre-built binary distribution means.

I’ve been following a youtube video called Installing CERN ROOT in Windows with WSL

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 27, 2025, 3:41pm UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/4 "2025-05-27T15:41:43Z")

</div>

> [@Tej\_Jay](#):
>
> Not sure what a pre-built binary distribution means.

Look at [Installing ROOT - ROOT](https://root.cern/install/#download-a-pre-compiled-binary-distribution)

---

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 28, 2025, 6:38am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/5 "2025-05-28T06:38:19Z")

</div>

I’ve followed what’s on the website up to sourcing it, but it still doesn’t work.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 28, 2025, 6:39am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/6 "2025-05-28T06:39:31Z")

</div>

So what’s the error now?

---

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 28, 2025, 6:47am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/7 "2025-05-28T06:47:43Z")

</div>

Says root cannot be found.

Used this command from my user directory: source root-6.34.04/buildroot/bin/thisroot.sh

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 28, 2025, 6:51am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/8 "2025-05-28T06:51:48Z")

</div>

Can you describe in details what you’ve done to install it?

---

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 28, 2025, 7:25am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/9 "2025-05-28T07:25:04Z")

</div>

```auto
wget https://root.cern/download/root_v6.34.04.source.tar.gz

```

tar xzfv root\_v6.34.04.source.tar.gz

sudo apt install binutils cmake dpkg-dev g++ gcc libssl-dev git libx11-dev   
libxext-dev libxft-dev libxpm-dev python3 libtbb-dev libvdt-dev libgif-dev

sudo apt install libtiff-tools

mkdir buildroot  
cd buildroot

ccmake ..

configure then changed CMAKE\_INSTALL\_PREFIX to home//root/root-6.34.04-install/

make -j2

after doing the make -j2 i get the error I first posted about:

CMake Error at ~/root-6.34.04/buildroot/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-Release.cmake:49 (message):  
Command failed: 2

‘make’

See also

~/root-6.34.04/buildroot/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-\*.log

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 28, 2025, 7:26am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/10 "2025-05-28T07:26:47Z")

</div>

OK, so let me repeat my question: why do you want to build from source and not take the pre-built binary?

---

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 28, 2025, 7:40am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/11 "2025-05-28T07:40:14Z")

</div>

I found a video that outlined building from source and I can’t seem to get the pre-built binary to work either. By my understanding it’s just doing the first two steps of what I’ve done and then sourcing to a thisroot.sh file, which doesn’t seem to do anything.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 28, 2025, 7:43am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/12 "2025-05-28T07:43:51Z")

</div>

`root_v6.34.04.source.tar.gz` is not a binary, it’s the source (as its name suggest). The binaries are available here for the latest 6.34/08 release: [Release 63408 - ROOT](https://root.cern/releases/release-63408/) and here for the latest release: [Release 63600 - ROOT](https://root.cern/releases/release-63600/)

---

<div class="post-metadata">

**Author:** ![Tej\_Jay](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tej_jay/32/38998_2.png) [@Tej\_Jay](https://root-forum.cern.ch/u/Tej_Jay)\
**Post date:** [May 28, 2025, 8:24am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/13 "2025-05-28T08:24:42Z")

</div>

Thank you for your help! I’ve got it working now.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 28, 2025, 8:26am UTC](https://root-forum.cern.ch/t/having-difficulties-installing-root-locally/63618/14 "2025-05-28T08:26:47Z")

</div>

You’re very welcome!
