Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in the local installation of the standalone packages #34

Open
Arturo91 opened this issue Dec 8, 2016 · 16 comments
Open

Issues in the local installation of the standalone packages #34

Arturo91 opened this issue Dec 8, 2016 · 16 comments

Comments

@Arturo91
Copy link

Arturo91 commented Dec 8, 2016

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
Copy link
Contributor

jlingema commented Dec 8, 2016

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
Copy link
Author

Arturo91 commented Dec 9, 2016 via email

@jlingema
Copy link
Contributor

jlingema commented Dec 9, 2016

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
Copy link
Author

Arturo91 commented Dec 9, 2016

Hi Joschka,

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

Cheers,
Arturo

@Arturo91
Copy link
Author

Arturo91 commented Dec 9, 2016

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
Copy link
Contributor

jlingema commented Dec 9, 2016

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
Copy link
Author

Arturo91 commented Dec 9, 2016

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
Copy link
Contributor

jlingema commented Dec 9, 2016

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
Copy link
Author

Arturo91 commented Dec 9, 2016

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
Copy link
Author

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
Copy link
Contributor

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 jlingema reopened this Dec 16, 2016
@jlingema
Copy link
Contributor

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
Copy link
Contributor

jlingema commented Jan 9, 2017

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
Copy link
Author

Arturo91 commented Jan 12, 2017 via email

@jlingema
Copy link
Contributor

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
Copy link
Author

Arturo91 commented Jan 16, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants