Fail to use ROOT in Makefile on CERN lxplus cluster

I am trying to create a makefile and these errors have occurred:

[jhossain@lxplus136 run02]$ make -f make_corsika
rm -f *.o anacorsika_1 core
g++ -c anacorsika_1.cc `/bin/root-config --cflags` -Wall -DDPA -D_GNU_SOURCE
/bin/sh: /bin/root-config: No such file or directory
anacorsika_1.cc:53:19: error: TFile.h: No such file o

I am currently using Ubuntu 14.04 operating system.
Please give a solution to this issue.

Thank you very much.

But you are running that on lxplus, not on Ubuntu?

Which root version do you expect to use? You probably want to select one from /cvmfs/sft.cern.ch/

Then set that up using . .../bin/thisroot.sh and invoke root-config without specifying a path in front.

Let us know if those instructions were not detailed enough and I’ll crank up the level of detail :slight_smile:

Cheers, Axel

…and anyway, of these are the problems you are struggling with then you should simply do

root -l
.x anacorsica_1.cc

after renaming the function main inside anacorsica_1.cc into anacorsica_1().

Axel

I am running that on lxplus.Current root version is 5.34/36.

Should I reinstall root on lxplus though it was installed by default?

Thank you.

The version provided by the lxplus people is very old. They refuse to remove it, causing more problems than they solve…

You can take a much more recent ROOT e.g. from cvmfs:

log on to lxplus7 (not lxplus) and do:

ssh lxplus7
. /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.08.06/x86_64-centos7-gcc48-opt/root/bin/thisroot.sh
root -l
.x anacorsica_1.cc

Cheers, Axel.

1 Like

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