Running root

_

ROOT Version: root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3
Platform: Ubuntu 20.04

I’m trying to run root

parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin$ source thisroot.sh
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin$ 
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin$ ./root
bash: ./root: cannot execute binary file: Exec format error
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin$ 

I wonder what is wrong ?

after sourcing thisroot.sh, the root command is in your PATH.
Instead of typing ./root, typing simply root should be enough.

Thank you for your help.
I typed root but error still exists
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin$ root
bash: /home/parallels/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin/root: cannot execute binary file: Exec format error

Try this: go to the root/bin folder and run:

 uname -a; file root; gcc --version

What do you get?

This is my result:
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root/bin$ uname -a; file root; gcc --version
Linux ubuntu-linux-20-04-desktop 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:40:54 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
root: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2b5a22d8d8a193ebda2fdafc06b2d912e739603b, for GNU/Linux 3.2.0, not stripped
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Try to take the newest (as of today, 22.04.28) “root_v6.26.02.Linux-ubuntu20-x86_64-gcc9.4” binaries.
After unpacking, “cd root/bin” and “ls -al” (check if the files have appropriate permissions).

Thank you
I just ran as you construct and here is my result.
total 1204
drwxrwxr-x 2 parallels parallels 4096 Apr 13 01:28 .
drwxr-xr-x 17 parallels parallels 4096 Apr 13 01:28 …
-rwxr-xr-x 1 parallels parallels 325496 Apr 13 01:10 g2root
-rwxr-xr-x 1 parallels parallels 17424 Apr 13 01:17 genreflex
-rwxr-xr-x 1 parallels parallels 306432 Apr 13 01:21 h2root
-rwxr-xr-x 1 parallels parallels 77368 Apr 13 01:21 hadd
-rwxr-xr-x 1 parallels parallels 47048 Apr 13 01:27 hist2workspace
-rwxr-xr-x 1 parallels parallels 1919 Apr 13 00:24 prepareHistFactory
-rwxr-xr-x 1 parallels parallels 3140 Apr 13 00:54 proofserv
-rwxr-xr-x 1 parallels parallels 22568 Apr 13 01:19 proofserv.exe
-rwxr-xr-x 1 parallels parallels 60424 Apr 13 01:10 rmkdepend
-rwxr-xr-x 1 parallels parallels 49000 Apr 13 01:10 root
-rwxr-xr-x 1 parallels parallels 822 Apr 13 00:54 rootbrowse
-rwxr-xr-x 1 parallels parallels 17424 Apr 13 01:17 rootcint
-rwxr-xr-x 1 parallels parallels 17424 Apr 13 01:17 rootcling
-rwxr-xr-x 1 parallels parallels 34650 Apr 13 00:54 root-config
-rwxr-xr-x 1 parallels parallels 2108 Apr 13 00:54 rootcp
-rwxr-xr-x 1 parallels parallels 3078 Apr 13 00:54 rootdrawtree
-rwxr-xr-x 1 parallels parallels 3350 Apr 13 00:54 rooteventselector
-rwxr-xr-x 1 parallels parallels 17936 Apr 13 01:15 root.exe
-rwxr-xr-x 1 parallels parallels 2017 Apr 13 00:54 rootls
-rwxr-xr-x 1 parallels parallels 1322 Apr 13 00:54 rootmkdir
-rwxr-xr-x 1 parallels parallels 1929 Apr 13 00:54 rootmv
-rwxr-xr-x 1 parallels parallels 34176 Apr 13 01:15 rootnb.exe
-rwxr-xr-x 1 parallels parallels 17904 Apr 13 01:19 rootn.exe
-rwxr-xr-x 1 parallels parallels 2653 Apr 13 00:54 rootprint
-rwxr-xr-x 1 parallels parallels 1393 Apr 13 00:54 rootrm
-rwxr-xr-x 1 parallels parallels 821 Apr 13 00:54 roots
-rwxr-xr-x 1 parallels parallels 26856 Apr 13 01:19 roots.exe
-rwxr-xr-x 1 parallels parallels 2380 Apr 13 00:54 rootslimtree
-rw-r–r-- 1 parallels parallels 3834 Apr 13 00:54 setxrd.csh
-rw-r–r-- 1 parallels parallels 3046 Apr 13 00:54 setxrd.sh
-rw-r–r-- 1 parallels parallels 7502 Apr 13 00:54 thisroot.csh
-rw-r–r-- 1 parallels parallels 1756 Apr 13 00:54 thisroot.fish
-rw-r–r-- 1 parallels parallels 5529 Apr 13 00:54 thisroot.sh
-rwxr-xr-x 1 parallels parallels 37144 Apr 13 01:20 xpdtest

Just to make sure … do you see “x86_64” in: uname -a
Try “source thisroot.sh” and then “ldd root.exe” (and “ldd root”).
If this works, you should be able to execute “root.exe” (and “root”).

For the first question,yes I did.
For the second one,the result is
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root_v6.26.02.Linux-ubuntu20-x86_64-gcc9.4/root/bin$ ldd root.exe
not a dynamic executable

Can it be that you unpacked the binaries on some “network drive” which prevents “executable permissions”?

I don’t think so.

Do you have enough RAM on your machine?
Try also “ulimit -a -H” and “ulimit -a -S

I just tried, the result is:
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root_v6.26.02.Linux-ubuntu20-x86_64-gcc9.4/root/bin$ ulimit -a -H
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15242
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 15242
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
parallels@ubuntu-linux-20-04-desktop:~/Downloads/MG5_aMC_v3.4.0.RC2/MG5_aMC_v3_4_0_RC2/HEPTools/root_v6.26.02.Linux-ubuntu20-x86_64-gcc9.4/root/bin$ ulimit -a -S
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15242
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15242
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

This doesn’t say how much RAM you have. Try: free -h

The result is
total used free shared buff/cache available
Mem: 3.8Gi 1.1Gi 514Mi 133Mi 2.3Gi 2.5Gi
Swap: 2.0Gi 260Mi 1.7Gi

It seems I’m lost.
Just to make sure … what do you get from:
uname -a; cat /etc/issue.net

This is a Linux for ARM (see “aarch64”), but the ROOT binary you have is for x86_64. You probably have to compile your own ROOT from source.

I did ask … do you see “x86_64” in: uname -a … and you said “yes”. :face_with_symbols_over_mouth:

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