CERN ROOT Installation in Ubuntu 18.04 and Enabling all libraries

preview_player
Показать описание
In this video, we have explained about CERN ROOT installation in Ubuntu 18.04 and enabling all libraries. The commands used can be found in the following article:

If you are interesting in learning about ROOT then you may watch the following tutorial:

CERN ROOT Tutorial 1 - Getting Started with ROOT Macro and Compilation

Update Fri Dec 20, 2019:

Dear all,

This method of -Dall=ON was working fine in the earlier versions like 6.10.04. Nowadays -Dall=ON is not skipping the libraries if prerequisites are incomplete.
So, I would recommend going with basic compilation of root if you are a beginner and don't want any other specific library.

cmake ../root-6.18.04/

You can still add specific libraries using -D flag for e.g.

cmake ../root-6.18.04/ -Dminuit2=ON

The remaining commands are the same.

mkdir root
cd root
cmake ../root-6.18.04/
make -j8
make install

Follow us on:
Рекомендации по теме
Комментарии
Автор

Dear all,

This method of -Dall=ON was working fine in the earlier versions like 6.10.04. Nowadays -Dall=ON is not skipping the libraries if prerequisites are incomplete.
So, I would recommend going with basic compilation of root if you are a beginner and don't want any other specific library.

cmake ../root-6.18.04/

You can still add specific libraries using -D flag for e.g.

cmake ../root-6.18.04/ -Dminuit2=ON

The remaining commands are the same.

mkdir root
cd root
cmake ../root-6.18.04/
make -j8
make install

Techforcurious
Автор

I was stuck for about a week and have gone through those README stuff 10 times. Thank you so much it worked so great. Love. It worked only after I did sudo apt update and sudo apt upgrade...may be my systems was not up to date.

tilak
Автор

Thank you so much for the video! You saved a life in Brazil.

giovanigarcia
Автор

Its the best video on root installation. I watched all the other videos and try to do what they did, but it didn't work. Thanks for helping mate

iftikharahmad
Автор

Good job Anil! Just a comment for some users when to use "cmake --build . -- -j7" (where 7 is the users machine generation) the run may stops. It happen if the system has less RAM. In that case just run with j2 or j3 where your machine could be higher generation.

debashis.sahoo.
Автор

Thank you very much for the tutorial! (I'm using Ubuntu 17) I follow exactly your step, however I have a problem when doing the cmake --build -j8 step.

It shows error that



"CMake Error at (message):
libXft and Xft headers must be installed.


I tried 'sudo apt-get install libxft-dev '
then it shows


E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"


I also looked up in stackoverflow, there isn't an answer to that. Are you able to help me with this? Big thanks!

frogfrog
Автор

Very nice step-by-step installation instruction. great help.

kundansingh
Автор

Any suggestions for the following?
I get errors saying cmake can't find the libstdc++.so.6 files it needs, for example:
version `GLIBCXX_3.4.14' not found (required by cmake)

eccesignumrex
Автор

Thank you so much!!! It worked just fine. This tutorial was very clear. Congrats

leticiabragadarosa
Автор

thanks a lot. i would have been lost without your help

stefanocarini
Автор

i get this error :
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Any Solutions?

mustaphabiyabi
Автор

Thank you very much, dude! It helped me a lot

XSheibi
Автор

What are the prerequisites libs for Arch Linux system?

sadashivsahoo
Автор

Hello, in the final part (the one with percentages) at 55% it gives me "virtual memory exhausted: cannot allocate memory" even if I have 100 Gb for the root part of my partition given to ubuntu and 25 Gb for the home part... Can you help me? Thanks for the very helpful content

davideormenese
Автор

Thanks! Very Helpful. Keep making more

yashrajmotwani
Автор

Thank you for the video and keeping it updated here in the comments :)

sirhenri
Автор

Could I ask you if there is any way to add c++17 support to compile macros once I have built ROOT without the flag -Dcxx17=ON, other than deleting everything and building it again?

_kim_
Автор

Post installation is it safe to delete the root-6.xx.xx folder (not the root folder which contains all the installed files)?

debajyotisg
Автор

Hello! Could you help me? Iḿ trying to install the root source code, but an error always has occoured:
-- Configuring incomplete, errors occurred!
See also
See also

lucascordeiroromao
Автор

Excellent! Very clean instruction! Thank you very much sir.

chwinner