/bin/sh: LD_LIBRARY_PATH No such file or directory during compilation


ROOT Version: 6.14.02
Platform: Scientific Linux release 7.5 (Nitrogen)
Compiler: gcc (GCC) 4.8.5 20150623


cmake -DCMAKE_INSTALL_PREFIX=~/root_bin  -Dpython_version=3  -DPYTHON_EXECUTABLE=~/python363-GCC-4.8.5/bin/python3 -DPYTHON_LIBRARY=~/python363-GCC-4.8.5/lib/libpython3.6m.so -Droofit=OFF -Dtmva=OFF  -Dpythia8=OFF  ~/root-6.14.02_source/

then when I build I get

[ 98%] Generating tutorials/hsimple.root
/bin/sh: LD_LIBRARY_PATH=~/1tb/root_build/lib:~/libevent/lib:~/1tb/MG5_aMC_v2_5_5/HEPTools/lhapdf6//lib:~/python363-GCC-4.8.5/lib/:~/1tb/ocaml/lib/:~/MG5_aMC_v2_5_5/golem95/lib/:/usr/lib64/:/usr/lib/:~/hepmc2/lib:: No such file or directory
gmake[2]: *** [tutorials/hsimple.root] Error 127
gmake[1]: *** [CMakeFiles/hsimple.dir/all] Error 2

I do not even understand what is the problem, any idea?

It seems that one or more directories in the LD_LIBRARY_PATH or a library needed to run ROOT to make hsimple.root was not found or does not exist. Please run make -j1 and post the error you get and we may be able to identify better what went wrong.

Thanks for stepping in. One directory indeed was missing, but now that I removed that reference I still get the same error.

/bin/sh: LD_LIBRARY_PATH=/storage/local/home/gridrm3/franceschini/1tb/root_build/lib:/storage/local/home/gridrm3/franceschini/libevent/lib:~/1tb/MG5_aMC_v2_5_5/HEPTools/lhapdf6//lib:/storage/local/home/gridrm3/franceschini/python363-GCC-4.8.5/lib/:/storage/local/home/gridrm3/franceschini/1tb/ocaml/lib/:/usr/lib64/:/usr/lib/:/storage/local/home/gridrm3/franceschini/hepmc2/lib:: No such file or directory
gmake[2]: *** [tutorials/hsimple.root] Error 127
gmake[1]: *** [CMakeFiles/hsimple.dir/all] Error 2
gmake: *** [all] Error 2

To my knowledge these dir all exist (see below). I am attaching the output<a class="attachment" href="/uploads/default/original/3X/4/8/48666c831674fc5501e7fa55cd5f5e6fa4545661.txt">log.txt</a> (12.1 KB)
  of make

[Mon Aug 13 20:30]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /storage/local/home/gridrm3/franceschini/python363-GCC-4.8.5/lib/
  File: '/storage/local/home/gridrm3/franceschini/python363-GCC-4.8.5/lib/'
  Size: 512             Blocks: 0          IO Block: 4096   directory
Device: 27h/39d Inode: 8543508     Links: 4
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-13 20:20:29.572579180 +0200
Modify: 2018-08-12 15:30:13.035691000 +0200
Change: 2018-08-12 15:30:13.035737000 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /storage/local/home/gridrm3/franceschini/1tb/ocaml/lib/
  File: '/storage/local/home/gridrm3/franceschini/1tb/ocaml/lib/'
  Size: 512             Blocks: 0          IO Block: 32768  directory
Device: 2eh/46d Inode: 2316909     Links: 3
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-12 14:08:48.609637319 +0200
Modify: 2018-06-04 16:46:41.733457000 +0200
Change: 2018-06-04 16:46:41.733574000 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /usr/lib64/
  File: '/usr/lib64/'
  Size: 131072          Blocks: 264        IO Block: 4096   directory
Device: 828h/2088d      Inode: 703137      Links: 166
Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-08-13 13:56:47.926394612 +0200
Modify: 2018-08-05 06:48:04.727987922 +0200
Change: 2018-08-05 06:48:04.727987922 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /usr/lib/
  File: '/usr/lib/'
  Size: 20480           Blocks: 40         IO Block: 4096   directory
Device: 828h/2088d      Inode: 327041      Links: 55
Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-08-13 14:31:11.474907033 +0200
Modify: 2018-07-12 07:03:36.118375754 +0200
Change: 2018-07-12 07:03:36.118375754 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /storage/local/home/gridrm3/franceschini/hepmc2/lib
  File: '/storage/local/home/gridrm3/franceschini/hepmc2/lib'
  Size: 512             Blocks: 0          IO Block: 4096   directory
Device: 27h/39d Inode: 2427137     Links: 2
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-13 04:54:54.718253196 +0200
Modify: 2018-08-08 10:06:29.646435000 +0200
Change: 2018-08-08 10:06:29.646435000 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /storage/local/home/gridrm3/franceschini/1tb/root_build/lib
  File: '/storage/local/home/gridrm3/franceschini/1tb/root_build/lib'
  Size: 32768           Blocks: 64         IO Block: 32768  directory
Device: 2eh/46d Inode: 3753703     Links: 5
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-13 20:30:38.762283612 +0200
Modify: 2018-08-13 20:28:23.041361000 +0200
Change: 2018-08-13 20:28:23.041361000 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /storage/local/home/gridrm3/franceschini/libevent/lib
  File: '/storage/local/home/gridrm3/franceschini/libevent/lib'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 27h/39d Inode: 391142      Links: 3
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-13 04:54:55.864973503 +0200
Modify: 2017-04-30 10:15:29.123241000 +0200
Change: 2017-04-30 10:15:29.123338000 +0200
 Birth: -
[Mon Aug 13 20:31]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat ~/1tb/MG5_aMC_v2_5_5/HEPTools/lhapdf6//lib
  File: '/storage/local/home/gridrm3/franceschini/1tb/MG5_aMC_v2_5_5/HEPTools/lhapdf6//lib'
  Size: 512             Blocks: 0          IO Block: 32768  directory
Device: 2eh/46d Inode: 5122044     Links: 3
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-12 14:08:48.610688419 +0200
Modify: 2017-07-29 14:17:57.000000000 +0200
Change: 2017-12-12 18:04:41.842942099 +0100
 Birth: -
[Mon Aug 13 20:32]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

root_build>stat /storage/local/home/gridrm3/franceschini/python363-GCC-4.8.5/lib/
  File: '/storage/local/home/gridrm3/franceschini/python363-GCC-4.8.5/lib/'
  Size: 512             Blocks: 0          IO Block: 4096   directory
Device: 27h/39d Inode: 8543508     Links: 4
Access: (0755/drwxr-xr-x)  Uid: ( 1196/franceschini)   Gid: ( 5002/ gridrm3)
Access: 2018-08-13 20:20:29.572579180 +0200
Modify: 2018-08-12 15:30:13.035691000 +0200
Change: 2018-08-12 15:30:13.035737000 +0200
 Birth: -
[Mon Aug 13 20:32]
franceschini@ui7-01.roma3.infn.it:~/1tb/root_build

I have eliminated the LHApdf reference (which I do not use right now anyway) and ROOT compiled.

For completeness let me remark that I had the -Droofit=OFF -Dtmva=OFF -Dpythia8=OFF options because of compilation issues at those stages, but these were probably easy to fix, I just did not need these features and switched off.

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