HEP-FCC / fcc-edm

FCC Event Data Model
3 stars 22 forks source link

Issues in the local installation of the standalone packages #34

Open Arturo91 opened 7 years ago

Arturo91 commented 7 years ago

Dear All, I have trying to do the local installation of the FCCSW following the tutorial in http://fccsw.web.cern.ch/fccsw/tutorials/ . I installed successfully PODIO and EDM packages, however, after going through the fcc-physics packge installation, there are two missing header files, the JetParticleAssociationCollection.h JetUtils.h See snapshot.

These files are in the cbernet branch of the fcc-edm, so I would like to recommend a fixing of this issue for the installation of the software locally. Please let me know how to fix this. I am working on my thesis in Cuba, so I need the local installation, because my connection is very slow.

output

jlingema commented 7 years ago

Hi Arturo,

Thanks for getting in touch and trying out our tutorials. Can you let me know which versions of podio, fcc-edm and fcc-physics you are using? If you use the master branches of the repositories in HEP-FCC, it should work. If you're using something else, could you let us know which tutorial specifically you were following?

Thanks, Joschka

Arturo91 commented 7 years ago

Hi Joschka,

Thanks a lot for your soon reply! To be sincere, I don't know what are the versions of the software I'm using (could you please indicate me how to figure out this?), what I do know is that I'm using the master branches of the repositories in HEP-FCC, I downloaded the packages and then I started the installation following the tutorial http://fccsw.web.cern.ch/fccsw/tutorials/fcc-tutorials/installing-fcc.html, which automatically drives me to the installation of the prerequisites, PODIO (https://github.com/HEP-FCC/podio), FCC-EDM (https://github.com/HEP-FCC/fcc-edm) and FCC-PHYSICS (https://github.com/HEP-FCC/fcc-physics#installing-required-software), for each of these packages I have been trying the instruction in the links between parenthesis, and I've always got the same errors.

Please let me know anything else you need, sorry for my late reply, we have 6 hours of difference.

Thanks in advance Arturo

From: "Joschka Lingemann" notifications@github.com To: "HEP-FCC/fcc-edm" fcc-edm@noreply.github.com Cc: "Arturo91" arturorguez@instec.cu, "Author" author@noreply.github.com Sent: Thursday, December 8, 2016 2:40:52 PM Subject: Re: [HEP-FCC/fcc-edm] Issues in the local installation of the standalone packages (#34)

Hi Arturo,

Thanks for getting in touch and trying out our tutorials. Can you let me know which versions of podio, fcc-edm and fcc-physics you are using? If you use the master branches of the repositories in HEP-FCC , it should work. If you're using something else, could you let us know which tutorial specifically you were following?

Thanks, Joschka

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

-- Arturo Rodríguez Rodríguez Nuclear Physics Department Instituto Superior de Tecnologías y Ciencias Aplicadas (InSTEC) Ave. Salvador Allende y Luaces, 10400, Plaza de la Revolucion, La Habana, Cuba

jlingema commented 7 years ago

Hi Arturo,

Alright, I see that we have a typo in the tutorial. I fixed it here. The website is also updated.

Can you give it another try, making sure that the environment variable $FCC points to your working directory, and checking that the paths in setup.sh look sensible?

Cheers, Joschka

Arturo91 commented 7 years ago

Hi Joschka,

Thanks. Sure, I'll try it again, and I'll let you know asap.

Cheers, Arturo

Arturo91 commented 7 years ago

Hi Joschka

I think the problem I've been having is with the package installation, specifically with the fcc-physics package, for the installation of this one, I'm following the steps in https://github.com/HEP-FCC/fcc-physics#installing-required-software. Could you please check this also? It seems that there are some headers files missing. Bellow you can find the output I've got

teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master$ source ./init.sh 
FCCPHYSICS is unset, setting to /home/teorica2/Simulations/FCC/fcc-physics/fcc-physics-master/install
platform detected: Linux
teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master$ mkdir build
teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master$ mkdir install
teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master$ cd build/
teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master/build$ cmake -DCMAKE_INSTALL_PREFIX=../install ..
-- The CXX compiler identification is GNU 4.8.4
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found podio: /home/teorica2/Simulations/FCC/podio/podio-master/install/lib  
-- Found podio: /home/teorica2/Simulations/FCC/podio/podio-master/install/cmake
-- Found fcc-edm: /home/teorica2/Simulations/FCC/fcc-edm/fcc-edm-master/install/cmake
-- Found ROOT: /usr/local/bin/root-config  
-- Looking for HepMC...
-- Looking for HepMC... - found /usr/local/lib/libHepMC.so
-- Looking for HepMC... - found /usr/local/include
-- Found Pythia8: /usr/local/include  
-- Found fastjet-config, FastJet location is /usr/local
-- Found FastJet library: /usr/local/lib/libfastjet.so
-- Found FastJet library: /usr/local/lib/libfastjettools.so
-- Found FastJet library: /usr/local/lib/libsiscone.so
-- Found FastJet library: /usr/local/lib/libsiscone_spherical.so
-- Found FastJet library: /usr/local/lib/libfastjetplugins.so
-- Found FASTJET headers in /usr/local/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/teorica2/Simulations/FCC/fcc-physics/fcc-physics-master/build
teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master/build$ make -j 4 install
[ 11%] Scanning dependencies of target fcc-physics-read
Scanning dependencies of target fcc-physics-read-delphes
[ 22%] Generating fccphysics-MyAnalysisDict.cpp
Generating fccphysics-toolsDict.cpp
[ 33%] [ 44%] Building CXX object example/CMakeFiles/fcc-physics-read.dir/read.cc.o
Building CXX object example/CMakeFiles/fcc-physics-read-delphes.dir/read_delphes.cc.o
/home/teorica2/Simulations/FCC/fcc-physics/fcc-physics-master/example/read_delphes.cc:4:56: fatal error: datamodel/JetParticleAssociationCollection.h: No existe el archivo o el directorio
 #include "datamodel/JetParticleAssociationCollection.h"
                                                        ^
compilation terminated.
/home/teorica2/Simulations/FCC/fcc-physics/fcc-physics-master/example/read.cc:4:56: fatal error: datamodel/JetParticleAssociationCollection.h: No existe el archivo o el directorio
 #include "datamodel/JetParticleAssociationCollection.h"
                                                        ^
compilation terminated.
make[2]: *** [example/CMakeFiles/fcc-physics-read-delphes.dir/read_delphes.cc.o] Error 1
make[1]: *** [example/CMakeFiles/fcc-physics-read-delphes.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
make[2]: *** [example/CMakeFiles/fcc-physics-read.dir/read.cc.o] Error 1
make[1]: *** [example/CMakeFiles/fcc-physics-read.dir/all] Error 2
Scanning dependencies of target fccphysics-myanalysis
[ 55%] [ 66%] Building CXX object example-lib/CMakeFiles/fccphysics-myanalysis.dir/MyAnalysis.cc.o
Building CXX object example-lib/CMakeFiles/fccphysics-myanalysis.dir/fccphysics-MyAnalysisDict.cpp.o
/home/teorica2/Simulations/FCC/fcc-physics/fcc-physics-master/example-lib/MyAnalysis.cc:11:32: fatal error: utilities/JetUtils.h: No existe el archivo o el directorio
 #include "utilities/JetUtils.h"
                                ^
compilation terminated.
Scanning dependencies of target fccphysics-tools
[ 77%] [ 88%] Building CXX object tools/CMakeFiles/fccphysics-tools.dir/JetClusterizer.cc.o
Building CXX object tools/CMakeFiles/fccphysics-tools.dir/fccphysics-toolsDict.cpp.o
make[2]: *** [example-lib/CMakeFiles/fccphysics-myanalysis.dir/MyAnalysis.cc.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[1]: *** [example-lib/CMakeFiles/fccphysics-myanalysis.dir/all] Error 2
Linking CXX shared library libfccphysics-tools.so
[ 88%] Built target fccphysics-tools
make: *** [all] Error 2
teorica2@H81-M1:~/Simulations/FCC/fcc-physics/fcc-physics-master/build$ 

Cheers, Arturo

jlingema commented 7 years ago

It looks like your external dependencies are all found correctly, but the fcc-physics code you are trying to compile is outdated (the first include error is from an include that's no longer there). Which is confusing if you followed the tutorial. Have you really set up a fresh work directory and cloned the repositories from scratch?

Can you tell me what you get when you do the following in the fcc-physics-master directory:

git remote -v
git rev-parse --verify HEAD 

In any case, you probably need to update (in the fcc-physics directory):

git remote add hep-fcc https://github.com/HEP-FCC/fcc-physics
git fetch hep-fcc
git merge hep-fcc/master

Let me know how it goes.

Cheers, Joschka

Arturo91 commented 7 years ago

Hi,

This is what I got when I did

teorica2@H81-M1:~/Simulations/FCC/fcc-physics$ git remote -v
origin  https://github.com/HEP-FCC/fcc-physics.git (fetch)
origin  https://github.com/HEP-FCC/fcc-physics.git (push)
teorica2@H81-M1:~/Simulations/FCC/fcc-physics$ git rev-parse --verify HEAD 
042ace62b66cf0bd8db21be2b14b76951ec44540
teorica2@H81-M1:~/Simulations/FCC/fcc-physics$ 

I'm doing everything from scratch. Cheers, Arturo

jlingema commented 7 years ago

Hi again,

Hm, what you get from the commands looks correct. But is it possible that you have the code twice? Once in ~/Simulations/FCC/fcc-physics and once in ~/Simulations/FCC/fcc-physics/fcc-physics-master? At least it looks like the compilation copy & paste was from the latter and the git commands you issued in the former.

Cheers, Joschka

Arturo91 commented 7 years ago

Hi!!

Well, I just have the first one, the one in ~/Simulations/FCC/fcc-physics I just used the git clone option, I did the same for all the packages. I also found that I need C++ 14, so I have to install it too! Is that wrong?

Cheers, Arturo

Arturo91 commented 7 years ago

Hi again, Well, I solved all the previous issues by installing Ubuntu 16.04, I mean that all the packages needed were installed successfully, however, the init_fcc_stack.sh script does nothing, it just prints

teorica2@teorica2-H81-M1:~/Simulations/FCC$ ./setup.sh INFO - Defaulting to afs as file system. Platform detected: Linux teorica2@teorica2-H81-M1:~/Simulations/FCC$ so, can please you tell me what is wrong now? for the record, I following the http://fccsw.web.cern.ch/fccsw/tutorials/fcc-tutorials/installing-fcc.html tutorial.

Cheers, Arturo

jlingema commented 7 years ago

Hi Arturo,

Sorry for not coming back to you on your previous message.

The setup script created by the bash snippet in the tutorial creates a setup.sh that sets a couple of environment variables which are used in the init_fcc_stack.sh to set the usual path-like variables: PATH, LD_LIBRARY_PATH and PYTHONPATH. Are you sure that after sourcing the setup.sh these paths were not updated?

Cheers, Joschka

jlingema commented 7 years ago

Just to clarify: I don't expect any additional output from the script you were sourcing. As a quick check you could have a look if the path to which you installed the software (if you followed the tutorial $FCC/install) is correctly picked up by checking that it is in:

echo $CMAKE_PREFIX_PATH

You can also paste the output of that command here, if you aren't sure :-)

jlingema commented 7 years ago

Hi Arturo,

Did you have a chance to check? Please let us also know if it now works for you. Then we can close the issue.

Thanks, Joschka

Arturo91 commented 7 years ago

Hi Joschka,

I couldn't be able to install the software, I'm kind of stuck with it.

Cheers, Arturo

De: "Joschka Lingemann" notifications@github.com Para: "HEP-FCC/fcc-edm" fcc-edm@noreply.github.com CC: "Arturo Rodríguez Rodríguez" arturorguez@instec.cu, "Author" author@noreply.github.com Enviados: Lunes, 9 de Enero 2017 9:20:51 Asunto: Re: [HEP-FCC/fcc-edm] Issues in the local installation of the standalone packages (#34)

Hi Arturo,

Did you have a chance to check? Please let us also know if it now works for you. Then we can close the issue.

Thanks, Joschka

— You are receiving this because you authored the thread. Reply to this email directly, [ https://github.com/HEP-FCC/fcc-edm/issues/34#issuecomment-271295520 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AXVB4aeb2JlGGatUDN2NDHgIN_7wSkVTks5rQkJDgaJpZM4LIMPT | mute the thread ] .

jlingema commented 7 years ago

Hi Arturo,

That's unfortunate! If you could answer the question I had asked before the christmas break, maybe that could get us a step further.

Otherwise, we're currently working on another solution to use the software through a docker container. If you prefer you can also wait ~2 weeks until that is ready and try if that suits you better.

Cheers, Joschka

Arturo91 commented 7 years ago

Hi Joschka,

Sorry again for my late reply, but my Interner connection is getting worse every day, so I believe is a way better for me to wait for the new solution, so please let me know when it is ready and if I could help with something.

Cheers, Arturo

De: "Joschka Lingemann" notifications@github.com Para: "HEP-FCC/fcc-edm" fcc-edm@noreply.github.com CC: "Arturo Rodríguez Rodríguez" arturorguez@instec.cu, "Author" author@noreply.github.com Enviados: Viernes, 13 de Enero 2017 3:23:07 Asunto: Re: [HEP-FCC/fcc-edm] Issues in the local installation of the standalone packages (#34)

Hi Arturo,

That's unfortunate! If you could answer the question I had asked before the christmas break, maybe that could get us a step further.

Otherwise, we're currently working on another solution to use the software through a docker container. If you prefer you can also wait ~2 weeks until that is ready and try if that suits you better.

Cheers, Joschka

— You are receiving this because you authored the thread. Reply to this email directly, [ https://github.com/HEP-FCC/fcc-edm/issues/34#issuecomment-272386904 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AXVB4elN4MDeLMP-sTDHiDwVzGmqJ2Csks5rRzRrgaJpZM4LIMPT | mute the thread ] .