# Problem while installing ROOT!

**URL:** <https://root-forum.cern.ch/t/problem-while-installing-root/50985>\
**Category:** ROOT\
**Created:** [July 27, 2022, 6:17pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985 "2022-07-27T18:17:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 27, 2022, 6:17pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/1 "2022-07-27T18:17:24Z")

</div>

Hello !  
Can anyone help me?  
This error appeared while installing root. What should I do to avoid it?

```nohighlight
[85%] Built target G__Rint
[85%] Built target Rint
[85%] Generating G__MathMore.cxx, ../../lib/MathMore.pcm
error: unable to open output file '/home/physicistesraa22/root_build/lib/MathMore.pcm': 'Operation not permitted'
In file included from input_line_10:7:
In file included from /home/physicistesraa22/root_build/include/Math/GSLMCIntegrator.h:38:
In file included from /home/physicistesraa22/root_build/include/Math/MCParameters.h:29:
/home/physicistesraa22/root_build/etc/cling/lib/clang/9.0.1/include/stddef.h:35:9: error: unknown type name ' __PTRDIFF_TYPE__'
typedef __PTRDIFF_TYPE__ ptrdiff_t;
        ^
/home/physicistesraa22/root_build/etc/cling/lib/clang/9.0.1/include/stddef.h:46:9: error: unknown type name ' __SIZE_TYPE__'
typedef __SIZE_TYPE__ size_t;
        ^
/home/physicistesraa22/root_build/etc/cling/lib/clang/9.0.1/include/stddef.h:60:9: error: unknown type name ' __SIZE_TYPE__'
typedef __SIZE_TYPE__ rsize_t;
        ^
/home/physicistesraa22/root_build/etc/cling/lib/clang/9.0.1/include/stddef.h:74:9: error: unknown type name ' __WCHAR_TYPE__'
typedef __WCHAR_TYPE__ wchar_t;
        ^
Error: /home/physicistesraa22/root_build/bin/rootcling: compilation failure (/home/physicistesraa22/root_build/lib/libMathMored1884d6f83_dictUmbrella.h)
make[2]: *** [math/mathmore/CMakeFiles/G __MathMore.dir/build.make:142: math/mathmore/G__ MathMore.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:26594: math/mathmore/CMakeFiles/G__MathMore.dir/all] Error 2
make: *** [Makefile:156: all] Error 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:** [July 27, 2022, 6:32pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/2 "2022-07-27T18:32:22Z")

</div>

Exactly which ROOT version, which operating system version, which compiler version.

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 27, 2022, 6:44pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/3 "2022-07-27T18:44:14Z")

</div>

ROOT version is root\_v6.26.04 on Ubuntu 22.04, but I am not sure about the compiler I only found the following\>\>\>

```nohighlight
physicistesraa22@ESRAA:~/root_build$ dpkg --list | grep compiler
ii g++ 4:11.2.0-1ubuntu1 amd64 GNU C++ compiler
ii g++-11 11.2.0-19ubuntu1 amd64 GNU C++ compiler
ii gcc 4:11.2.0-1ubuntu1 amd64 GNU C compiler
ii gcc-11 11.2.0-19ubuntu1 amd64 GNU C compiler
ii libllvm13:amd64 1:13.0.1-2ubuntu2 amd64 Modular compiler and toolchain technologies, runtime library
ii libllvm14:amd64 1:14.0.0-1ubuntu1 amd64 Modular compiler and toolchain technologies, runtime library
ii libxkbcommon0:amd64 1.4.0-1 amd64 library interface to the XKB compiler - shared library
ii llvm-14 1:14.0.0-1ubuntu1 amd64 Modular compiler and toolchain technologies
ii llvm-14-dev 1:14.0.0-1ubuntu1 amd64 Modular compiler and toolchain technologies, libraries and headers
ii llvm-14-linker-tools 1:14.0.0-1ubuntu1 amd64 Modular compiler and toolchain technologies - Plugins
ii llvm-14-runtime 1:14.0.0-1ubuntu1 amd64 Modular compiler and toolchain technologies, IR interpreter
ii llvm-14-tools 1:14.0.0-1ubuntu1 amd64 Modular compiler and toolchain technologies, tools
ii rpcsvc-proto 1.4.2-0ubuntu6 amd64 RPC protocol compiler and definitions

```

---

<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:** [July 27, 2022, 6:54pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/4 "2022-07-27T18:54:48Z")

</div>

What was the CMake line that you used to configure it?

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 27, 2022, 6:57pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/5 "2022-07-27T18:57:51Z")

</div>

I used the installing from source then \>\>

```auto
cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src
cmake --build . -- install

```

---

<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:** [July 27, 2022, 7:04pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/6 "2022-07-27T19:04:23Z")

</div>

Can it be that some disk is full? Try: `df -h`

Before trying to build your new ROOT, did you completely delete “`~/root_src`”, “`~/root_build`” and “`~/root_install`” directories (so that there is nothing that belongs to some old version)?

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 27, 2022, 7:10pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/7 "2022-07-27T19:10:34Z")

</div>

I tried de -h

```nohighlight
physicistesraa22@ESRAA:~/root_build$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 337M 1.9M 335M 1% /run
/dev/sdb3 68G 20G 45G 30% /
tmpfs 1.7G 0 1.7G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/sda1 96M 31M 66M 32% /boot/efi
tmpfs 337M 2.4M 335M 1% /run/user/1000
/dev/sdb5 228G 3.1G 225G 2% /media/physicistesraa22/01D8A116E32513C0
/dev/sda3 112G 50G 62G 45% /media/physicistesraa22/0A802A3F802A321D

```

No, I deleted nothing.  
It stopped and I tried to resume it where it was but the errors also appeared.

---

<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:** [July 27, 2022, 7:18pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/8 "2022-07-27T19:18:49Z")

</div>

> [@Esraa22](#):
>
> No, I deleted nothing.  
> It stopped and I tried to resume it where it was but the errors also appeared.

I mean. You now try to build ROOT 6.26/04. If you had an older version (built previously), you should have deleted everything.

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 27, 2022, 7:23pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/9 "2022-07-27T19:23:22Z")

</div>

No, I haven’t any older versions, that’s the first time I install it.

---

<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:** [July 27, 2022, 7:28pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/10 "2022-07-27T19:28:12Z")

</div>

So, it’s something for @Axel

BTW. The ROOT team provides [ready-to-use binary distributions for some systems (see “ **Download a pre-compiled binary distribution** ” therein)](https://root.cern/install/#download-a-pre-compiled-binary-distribution), including various Ubuntu versions, which you just need to download and unpack.  
For Ubuntu 22.04 / x86\_64 / gcc 11.2: [https://root.cern/download/?C=M;O=A;P=\*[uU][bB][uU][nN][tT][uU]\*22\*](https://root.cern/download/?C=M;O=A;P=*%5BuU%5D%5BbB%5D%5BuU%5D%5BnN%5D%5BtT%5D%5BuU%5D*22*)

---

<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:** [July 27, 2022, 8:38pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/11 "2022-07-27T20:38:16Z")

</div>

Maybe one more check … do you have the “`libgsl-dev`” package installed?

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 27, 2022, 8:48pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/12 "2022-07-27T20:48:46Z")

</div>

Yes, it installed.  
`libgsl-dev/jammy,now 2.7.1+dfsg-3 amd64 [installed]`

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [July 28, 2022, 9:34am UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/13 "2022-07-28T09:34:50Z")

</div>

I am not sure I understand yet why you build ROOT yourself. It’s _so_ much simpler to download the binaries as Wile\_E proposed, or even use the binaries that conda offers. Please continue below _only_ if you have a good reason to build ROOT rather than using pre-built binaries that just work.

* * *

> [@Esraa22](#):
>
> `error: unable to open output file '/home/physicistesraa22/root_build/lib/MathMore.pcm': 'Operation not permitted'`

Likely a permission problem; likely because you used `sudo` at some point (you shouldn’t). `ls -l /home/physicistesraa22/root_build/lib/` should tell; or if the file already exists, `ls -l /home/physicistesraa22/root_build/lib/MathMore.pcm`.

You can fix the permissions using `sudo chown -r physicistesraa22:physicistesraa22 /home/physicistesraa22/root_build/`.

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 28, 2022, 6:57pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/14 "2022-07-28T18:57:15Z")

</div>

It works. But more errors appeared in XROOTD and VDT I don’t know why ? I really tried to solve them with no benefit.

Further more I installed conda and followed the steps of installing but it doesn’t work after some time the terminal window closes.  
What I want to say is that I tried to install ROOT more than one time but no one succeeded. In every time, I face different errors and it is my first time so I am not familiar with using it.  
Now, I want to clean all I did and start from the beginning with a successful way.  
I will be grateful for help.  
Thanks in advacne.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [July 29, 2022, 3:53pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/15 "2022-07-29T15:53:11Z")

</div>

It’s terrible to hear how difficult it is for you to install ROOT!

What operating system / distribution do you use - is this Ubuntu? Which version?

Conda should “just work”; it’s very surprising and a bug by itself if this doesn’t work. More details, please!

The problems you see with xrootd and vdt are what exactly? Would you be able to share the error messages?

Cheers, Axel

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 29, 2022, 10:40pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/16 "2022-07-29T22:40:20Z")

</div>

You’re right so, I’m little disappointed as I tried so many times. I can’t understand what is wrong I do?!

Yes, it is ubuntu22.04.  
While installing through conda after creating the environment, the solving of the environment fails and retries again and then it ends with closing the terminal.  
I followed these steps to install ROOT through Conda.

```auto
conda config --set channel_priority strict
conda create -c conda-forge --name ROOT root

```

The errors related to XROOTD and VDT; you can see in the attached photos because I deleted all I did and started again with installation through the main source. It is the only method that works with me.

Also an error appeared related to MathMore.The error is\>

[87%] Generating G\_\_MathMore.cxx, …/…/lib/MathMore.pcm  
\<\<\< cling interactive line includer \>\>\>: fatal error: module file ‘/home/physicistesraa22/root\_build/lib/Rint.pcm’ is out of date and needs to be rebuilt: could not read module signature  
\<\<\< cling interactive line includer \>\>\>: note: imported by module ‘MathCore’ in ‘/home/physicistesraa22/root\_build/lib/MathCore.pcm’  
Error: Module ‘MathCore.pcm’ failed to load.  
Error: Error loading the default rootcling header files.  
make[2]: \*\*\* [math/mathmore/CMakeFiles/G\_\_MathMore.dir/build.make:142: math/mathmore/G\_\_MathMore.cxx] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:26743: math/mathmore/CMakeFiles/G\_\_MathMore.dir/all] Error 2  
make: \*\*\* [Makefile:156: all] Error 2

what should I do to continue installing correctly as this really consumes much time I need it.  
Many thanks for you.

 ![20220728_201613](https://root-forum.cern.ch/uploads/default/original/3X/7/f/7f06d603192add80020e2e376406a8be3776bd05.jpeg)

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [July 30, 2022, 5:45am UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/17 "2022-07-30T05:45:23Z")

</div>

What about downloading [https://root.cern/download/root\_v6.26.06.Linux-ubuntu22-x86\_64-gcc11.2.tar.gz](https://root.cern/download/root_v6.26.06.Linux-ubuntu22-x86_64-gcc11.2.tar.gz) and then just `cd where-you-want-ROOT; tar xzf ~/Downloads/root_v6.26.06.Linux-ubuntu22-x86_64-gcc11.2.tar.gz`?

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 30, 2022, 2:41pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/18 "2022-07-30T14:41:46Z")

</div>

I get the following\>

physicistesraa22@ESRAA:~ mkdir root physicistesraa22@ESRAA:~ cd root/  
physicistesraa22@ESRAA:~/root$ tar xzf ~/Downloads/root\_v6.26.06.Linux-ubuntu22-x86\_64-gcc11.2.tar.gz

gzip: stdin: unexpected end of file  
tar: Unexpected EOF in archive  
tar: Unexpected EOF in archive  
tar: Error is not recoverable: exiting now

---

<div class="post-metadata">

**Author:** ![Esraa22](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Esraa22](https://root-forum.cern.ch/u/Esraa22)\
**Post date:** [July 30, 2022, 2:48pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/19 "2022-07-30T14:48:16Z")

</div>

I want to continue installing from source, it reached 87% …  
But what about the error I want to skip? How can I do that?  
The error is above.

---

<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:** [July 30, 2022, 3:12pm UTC](https://root-forum.cern.ch/t/problem-while-installing-root/50985/20 "2022-07-30T15:12:51Z")

</div>

First, make sure you run: `sudo apt-get install curl wget git`

Then, assuming that “`nproc`” returns 4 or more and you have 8 GB RAM or more (if not, instead of “`-j4`” use “`-j1`”):

> [@Installation error on windows](https://root-forum.cern.ch/t/installation-error-on-windows/50165/4):
>
> Try something like this: rm -rf root\_src root\_build root\_install git clone --branch v6-26-00-patches --depth=1 https://github.com/root-project/root.git root\_src mkdir root\_build cd root\_build cmake -Dall="ON" -DCMAKE\_INSTALL\_PREFIX=../root\_install ../root\_src cmake --build . -- install -j4

[Next page](https://root-forum.cern.ch/t/problem-while-installing-root/50985.md?page=2)
