Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install ROOT cluster in Ubuntu14.04

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Ubuntu14.04 how to install ROOT cluster, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Deployment preparation

Modify apt source

Modify / etc/apt/sources.list and replace it with 163domestic sources, the download will be faster and more stable.

# vim / etc/apt/sources.listdeb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted Universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

Then call apt-get update to update the index.

Install gcc,g++

You can skip this step if your system already has gcc and gaming installed.

# apt-get install gcc# apt-get install gaming + installing cmake

Cmake installed directly through apt-get will have problems installing ROOT components, so it is recommended to install it with source code. I am using version 2.8.8 here. Official website download address: https://cmake.org/files/, you can choose your own suitable version.

-decompress: tar xvf cmake-2.8.8.tar.gz- enter the decompression directory: cd cmake-2.8.8-. / bootstrap- make- make install install zlib library

The corresponding zlib library can be downloaded on github (https://github.com/madler/zlib). I use version 1.2.3. The download address is: https://github.com/madler/zlib/archive/v1.2.3.zip-decompress: unzip zlib-1.2.3.zip-enter the decompression directory: cd zlib-1.2.3 -. / configure Note: before make, you need to modify the Makefile, otherwise an error will occur when calling the library. Find the line CFLAGS=-O3-DUSE_MMAP and add-fPIC after it to change to CFLAGS=-O3-DUSE_MMAP-fPIC-make-make install.

Other libraries

Apt-get install procmail

Deploy ROOT cluster install ROOT

Binary installation: https://root.cern.ch/content/release-60606. Select the corresponding OS system compilation package. Extract and move it to the / opt directory:

# tar zxvf root_v6.06.06.Linux-ubuntu14-x86_64-gcc4.8.tar.gz# mv root / opt

Then write the ROOT-related configuration to the initialization file, and add the following statement at the end of / etc/profile.d/root.sh:

Export ROOTSYS=/opt/rootexport PATH=$PATH:$ROOTSYS/binsource $ROOTSYS/bin/thisroot.sh

Source / etc/profile.d/root.sh allows the configuration to take effect. Run the command root-b to test that root is working properly:

# root-broot: error while loading shared libraries: libXpm.so.4: cannot open shared object file: No such file or directory

The libXpm library is missing, run the apt-get install libxpm4 command to install. During installation, you may be prompted for a missing installation package, which has something to do with the local source index, so you need to synchronize with the remote source (run the apt-get update command) before installing the xpm package. Installation succeeded.

# apt-get install libxpm4Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following NEW packages will be installed: libxpm40 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.Need to get 37.0 kB of archives.

Run the root-b command again to test and report the error again.

# root-bERROR in cling::CIFactory::createCI (): cannot extract standard library include pathways invoking: echo | LC_ALL=C C++-pipe-M64-Wall-W-Woverloaded-virtual-fsigned-char-fPIC-pthread-std=c++11-Wno-deprecated-declarations-Wno-comment-Wno-unused-parameter-Wno-maybe-uninitialized-Wno-unused-but-set-variable-Wno-missing-field-initializers-fPIC-fvisibility-inlines-hidden-std=c++11-ffunction-sections-fdata-sections-fno-common-Woverloaded -virtual-Wcast-qual-fno-strict-aliasing-pedantic-Wno-long-long-Wall-W-Wno-unused-parameter-Wwrite-strings-Wno-unused-local-typedefs-O2-DNDEBUG-xc++-E-v-2 > & 1 > / dev/null | awk'/ ^ # include

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report