Ubuntu install error about xrootd


Please read tips for efficient and successful posting and posting code

_ROOT Version:6.18.04
_Platform:Ubuntu 18.04LTS
_Compiler:CMake


Hi Root people

I’m trying to install the latest 6.18.04 root on my Ubuntu 18.04 and meet error when I do the
cmake …/root-6.18.04 -Dall =ON
the Cmake do not complete with the error
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:825 (message):
The Alien plugin requires option ‘xrootd’ to be enabled. Re-run the
configuration with ‘xrootd=ON’
Call Stack (most recent call first):
CMakeLists.txt:159 (include)
I tried to make with -xrootd=ON or -Dxrootd=ON but it doesn’t work else.
I tried to install the xrootd but can’t find the installXrootd.sh in the file as noticed on https://root.cern.ch/installing-xrootd.
I notice there is a version for ubuntu that can use directly unpacked, but it somewhat can not connect the kernel when I use the jupyter notebook.
Both of these problem seems do not happen on the older version 6.16.00
How can I solve this problem if I want to use 6.18.04?

Thanks

Try: -Dbuiltin_xrootd=ON

BTW. The ROOT team provides ready-to-use binary distributions for some systems, including various Ubuntu versions, which you just need to download and unpack (see “Using binaries” therein).

Thank you.
I tried this but still can’t work,
When I use -Dall=ON -Dbuiltin_xrootd=ON the same error come out
When I change the order as -Dbuiltin_xrootd=ON -Dall=ON another error comes

CMake Error at cmake/modules/SearchInstalledSoftware.cmake:1335 (enable_language):
No CMAKE_CUDA_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable “CUDACXX” or the CMake cache entry CMAKE_CUDA_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:159 (include)

If I do not set anything whnn do the cmake it works, but will be error when I want to use Minuit2, I also tried to turn on Minuit2 only when doing cmake but it still can’t work and have same error as when I set -Dall=ON.
For the ready-to-use version yes I tried and it works, but it doesn’t work when I use the jupiter notebook the kernel can not start. This problem do not happen on either 6.16 or 6.18 when I install manually.

Hello everybody, today I’m trying to build Root, using this procedure:

Building

Clone the repo

$ git clone https://github.com/root-project/root.git

$ cd root

$ git checkout -b v6-18-04 v6-18-04 (return in the folder previus cd root)

Make a directory for building

$ mkdir build
$ cd build

Run cmake and make

$ cmake -Dall=ON -Dbuiltin_xrootd=ON ../root
$ make -j4

and so on…

I received the same errors of @Lym :

 -- ROOT default compression algorithm: zlib

CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

>>> Option 'memstat' is deprecated and will be removed in the next release

of ROOT. Please contact root-dev@cern.ch should you still need it.

Call Stack (most recent call first):

CMakeLists.txt:109 (include)

CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:358 (message):

>>> Option 'vmc' is deprecated and will be removed in the next release of

ROOT. Please contact root-dev@cern.ch should you still need it.

Call Stack (most recent call first):

CMakeLists.txt:109 (include)

-- Found a Mac OS X System 10.15

-- Found a 64bit system

-- Found LLVM compiler collection

-- ROOT Platform: macosx

-- ROOT Architecture: macosx64

-- Build Type: RelWithDebInfo

-- Compiler Flags: -std=c++11 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++

-- Looking for ZLib

-- Building freetype version 2.6.1 included in ROOT itself

-- Looking for PCRE

-- Looking for LZMA

-- Found LZMA includes at /opt/local/include

-- Found LZMA library at /opt/local/lib/liblzma.dylib

-- Looking for LZ4

-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)

-- Building AfterImage library included in ROOT itself

-- Looking for python

-- Looking for OpenGL

-- Looking for LibXml2

-- Looking for SQLite

-- Downloading and building XROOTD version

CUDA_TOOLKIT_ROOT_DIR not found or specified

-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")

-- The CUDA compiler identification is unknown

CMake Error at cmake/modules/SearchInstalledSoftware.cmake:1335 (enable_language):

No CMAKE_CUDA_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment

variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full

path to the compiler, or to the compiler name if it is in the PATH.

Call Stack (most recent call first):

CMakeLists.txt:159 (include)

-- Configuring incomplete, errors occurred!

See also "/Users/maurocutuli/Desktop/root_v6/CMakeFiles/CMakeOutput.log".

See also "/Users/maurocutuli/Desktop/root_v6/CMakeFiles/CMakeError.log".

Why this happened?

I’m using macOS Catalina 10.15.2

Thanks for the attention.

This is the problem for you:

Please disable the options you can’t build if you use -Dall=ON (e.g. -Dcuda=OFF -Dtmva-gpu=OFF). In the case of OP, it’s -Dalien=OFF and maybe -Dxrootd=OFF if the builtin one fails to build.

I tried to installed xrootd independently
and reinstalled my nvidia gpu drive and cuda_toolkit
It can build now but still have error at next step of build to 57%
I opened another topic for that problem

I tried but the output is the same, it doesn’t work.

Please try without all=ON, and only enable the options you need.

I tried without setting anything, and another error occour

CMake Error at /usr/share/cmake-3.10/Modules/FindX11.cmake:429 (message):
Could not find X11
Call Stack (most recent call first):
cmake/modules/SearchInstalledSoftware.cmake:9 (_find_package)
cmake/modules/SearchInstalledSoftware.cmake:246 (find_package)
CMakeLists.txt:159 (include)

I followed the https://root.cern.ch/build-prerequisites and installed everything.
I now installed the 6.16.00 version instead. but still fill confused why this happen on the new version
Thanks

Please install dependencies listed here: https://github.com/root-project/root-docker/blob/master/ubuntu/packages. You probably didn’t have development headers for X11, but only the binaries and libraries.

1 Like

You can try to follow this another video guide here . First of all, like @amadio said, install the dependencies.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.