GithubHelp home page GithubHelp logo

installroot6's Introduction

InstallROOT6

Guide to install Cern root from surces at Debian based Linux

The instal.sh script is generated automatically with the following commands in this file. It can install all if there is not a dependence problem

ROOT requires several external libraries in order to properly run, then it is mandatory to install them - First Update and upgrade the distro
sudo apt-get update && sudo apt-get upgrade

Install Prerequisites

sudo apt-get install cmake git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev gfortran libssl-dev libpcre3-dev \
xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev \
libldap2-dev python3-dev libxml2-dev libkrb5-dev libgsl0-dev python3-pip \
r-base r-base-dev gsl-bin libgsl-dev ocaml libz3-dev libxpm-dev libxft-dev

Getting External Dependencies (Optional)

R dependencies. First runn R
sudo R
Inside the R terminal
install.packages(c('Rcpp','RInside','C50','xgboost','e1071','RSNNS'))
quit()
Install Python dependencies
sudo pip3 install scikit-learn numpy matplotlib scipy jupyter ipython metakernel

Getting the code from github

Clone the code from the repository at GitHub
#git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git
git clone http://root.cern.ch/git/root.git
cd root

Compile and setup

Set the last stable version. At the time of the last modification to this document the lates version was v6-24-00-patches
git checkout v6-28-00-patches
Create a new folder for the installation, and compile. At the last line the 8 is the number of cores, you can change for yours.
mkdir v6-28-00-patches
cd v6-28-00-patches
cmake -Dr=ON -Dpython3=ON -Dhttp=ON ..
#Max threads
make -j $(grep -c processor /proc/cpuinfo)
#for single core or less than max use
#make -j @ #Where @ is the number of cores 

Setup ROOT in your environment

Set the path to root
ROOT_FOLDER_PATH=$(pwd)
THISROOT_PATH="source "$ROOT_FOLDER_PATH"/bin/thisroot.sh"
echo $THISROOT_PATH >> ~/.bashrc
source ~/.bashrc
Setup the pyrootModules
cd $ROOT_FOLDER_PATH/etc/notebook/kernels/
sudo jupyter kernelspec install root
cd $ROOT_FOLDER_PATH

installroot6's People

Contributors

casfisica avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.