LoginSignup
0
1

More than 3 years have passed since last update.

ROOT installation on Ubuntu 18.04

Posted at

久しぶりにROOTのアップデートをしてみた。インストールしたのは、root 6.24/00。
ほぼいつも通りの作業。

wget https://root.cern/download/root_v6.24.00.source.tar.gz
tar zxvf root_v6.24.00.source.tar.gz
mkdir root-6.24.00_build
cd root-6.24.00_build
cmake ../root-6.24.00
cmake --build . -- -j8

これでUbuntu 20.04では問題なくインストールできたのだが、Ubuntu 18.04ではなぜかコンパイルエラーを起こす。

CMake Error at /opt/root/root-6.24.00_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-Release.cmake:16 (message):
  Command failed: 2

   'make'

  See also

    /opt/root/root-6.24.00_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-*.log


CMakeFiles/XROOTD.dir/build.make:111: recipe for target 'XROOTD-prefix/src/XROOTD-stamp/XROOTD-build' failed
make[2]: *** [XROOTD-prefix/src/XROOTD-stamp/XROOTD-build] Error 1
CMakeFiles/Makefile2:362: recipe for target 'CMakeFiles/XROOTD.dir/all' failed
make[1]: *** [CMakeFiles/XROOTD.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 79%] Built target RIO
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

解決策はこちらにあった。

解決するには、uuid-devというのを入れる必要があるのと、入れた後にXROOTD-prefixディレクトリを削除する。

sudo apt-get install uuid-dev
rm -rf XROOTD-prefix
cmake ../root-6.24.00
cmake --build . -- -j8

これでインストールできるはず。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1