# I need to compile a specific root library, but have no compile directory

**URL:** <https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229>\
**Category:** Newbie\
**Created:** [February 21, 2024, 1:51am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229 "2024-02-21T01:51:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![omarpena1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/omarpena1/32/35670_2.png) [@omarpena1](https://root-forum.cern.ch/u/omarpena1)\
**Post date:** [February 21, 2024, 1:51am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229/1 "2024-02-21T01:51:24Z")

</div>

So, I’ve installed root onto a linux vm on my computer.

I need to compile a specific library for my uni

 ![Screenshot 2024-02-20 174302](https://root-forum.cern.ch/uploads/default/original/3X/f/9/f9382ee4351f3ab821071e723d93bfa5b49231d7.png)

I get stuck at the step where I have to write the make setup commands because my root doesn’t have a compile directory

 ![Screenshot 2024-02-20 174830](https://root-forum.cern.ch/uploads/default/original/3X/5/5/557172401ee5d65f3ab469d3747bd5126b17a029.png)

Have I built it incorrectly? Is /root/compile usually there by default?

I wouldn’t be having all these doubts if it also weren’t for this error message popping up whenever I start up root, even though it seems to resolve itself:

 ![Screenshot 2024-02-20 175105](https://root-forum.cern.ch/uploads/default/original/3X/0/e/0e969294da67a1d556c6626b46a6e1748d4e2efb.png)

I’d appreciate any clarification you can provide, thank you!!!

_ROOT Version:_ 6.22  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 22, 2024, 5:42am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229/2 "2024-02-22T05:42:14Z")

</div>

Hi,

I am sorry to see you experienced this issue.  
I would for the moment focus on the last screenshot. That points to a corrupted installation of ROOT.  
My proposal is to go for a recent ROOT version and re-install it, before anything else.

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![omarpena1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/omarpena1/32/35670_2.png) [@omarpena1](https://root-forum.cern.ch/u/omarpena1)\
**Post date:** [February 22, 2024, 5:55am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229/3 "2024-02-22T05:55:37Z")

</div>

Is Root 6.22 not a recent version?  
Also, what about the last screenshot makes you think that this is unsalvageable (or at least that it would be easier to reinstall than to deal with)?

And how do I uninstall so that I don’t interfere with the next time I try to install Root

I appreciate your opinion, thank you!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 22, 2024, 6:00am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229/4 "2024-02-22T06:00:29Z")

</div>

Hi Omar,

ROOT 6.22 dates 2020.  
Experience and other posts on the Forum. The error on you screen is typically linked to an upgrade of the compiler and deletion of the previous one but it’s hard to say, this is why I proposed a fresh install.  
Hard to say how to uninstall, depends what you did to install in the first place.  
I hope this helps.  
Cheers,  
D

---

<div class="post-metadata">

**Author:** ![omarpena1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/omarpena1/32/35670_2.png) [@omarpena1](https://root-forum.cern.ch/u/omarpena1)\
**Post date:** [February 22, 2024, 6:07am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229/5 "2024-02-22T06:07:12Z")

</div>

Ah, alright.

For reference I used this guide because I thought that it was specific to me (installing on Windows VM):  
[how-to-install-root-on-windows-subsystem-for-linux](https://www.mattialopresti.com/how-to-install-root-on-windows-subsystem-for-linux/)

Would this guide in general still work if I downloaded a more recent release instead?

TLDR:

`sudo mv /mnt/c/Users/YOURUSERNAME/Downloads/root_v6.22.00.Linux-ubuntu20-x86_64-gcc9.3.tar.gz /opt/`

in the terminal

Thank you,  
Omar
