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.
Axel
March 27, 2017, 8:50pm
2
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
Cheers, Axel
Axel
March 27, 2017, 8:52pm
3
…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.
Axel
March 28, 2017, 6:07am
5
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
system
Closed
April 11, 2017, 6:08am
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.