Error showing in installation of root by source code build in ubuntu 22.10

cmake --build . --target install -j4
[  0%] Built target VDT
[  0%] Built target AFTERIMAGE
[  0%] Built target TBB
[  0%] Performing build step for 'LZMA'
[  0%] Built target copymodulemap
[  0%] Built target move_header_roofit_hs3
[  0%] Built target OPENUI5
CMake Error at /home/baba/root/LZMA-prefix/src/LZMA-stamp/LZMA-build-Release.cmake:49 (message):
  Command failed: 2


  See also


gmake[2]: *** [CMakeFiles/LZMA.dir/build.make:86: LZMA-prefix/src/LZMA-stamp/LZMA-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7377: CMakeFiles/LZMA.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[  0%] Built target builtin_nlohmann_json_incl
[  0%] Built target PCRE
[  0%] Building C object builtins/xxhash/CMakeFiles/xxhash.dir/xxhash.c.o
[  0%] Linking C static library ../../lib/libxxhash.a
[  0%] Built target xxhash
gmake: *** [Makefile:156: all] Error 2

→ this is not work for me
/home/baba/root/LZMA-prefix/src/LZMA/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: ‘aclocal-1.15’ is missing on your system.
You should only need it if you modified ‘acinclude.m4’ or
‘’ or m4 files included by ‘’.
The ‘aclocal’ program is part of the GNU Automake package:
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
gmake[3]: *** [Makefile:514: aclocal.m4] Error 127

sudo apt install automake

1 Like
 sudo apt install automake
[sudo] password for baba: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
automake is already the newest version (1:1.16.5-1.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

It is showing like this

So, try (it should then use the system provided “lzma” and “lz4”):
sudo apt install liblzma-dev liblz4-dev libxxhash-dev
Note: you need to configure it from scratch again.


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