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

Problems to install larcv #30

Open
Gui1402 opened this issue Oct 15, 2018 · 5 comments
Open

Problems to install larcv #30

Gui1402 opened this issue Oct 15, 2018 · 5 comments

Comments

@Gui1402
Copy link

Gui1402 commented Oct 15, 2018

Hi guys,

I am beginner in Linux and python so I have some problems with larcv installation.

I was trying to install larcv following this link :
My first attempt was using Linux Mint 19
Then I cloned the repository, used source configure.sh and make but did not work.

Error:
`
Building core...

Compiling Base...
make[1]: Entering directory '/home/guilherme/larcv2/larcv/core/Base'
<< checking dependencies>>
<< generating dict >>
In file included from input_line_12:6:
In file included from /home/guilherme/larcv2/larcv/core/Base/ConfigManager.h:18:
In file included from /home/guilherme/larcv2/larcv/core/Base/larcv_base.h:19:
In file included from /home/guilherme/larcv2/larcv/core/Base/larcv_logger.h:21:
In file included from /home/guilherme/larcv2/larcv/core/Base/LArCVTypes.h:22:
In file included from /home/guilherme/anaconda3/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../include/c++/4.8.3/climits:41:
In file included from /home/guilherme/anaconda3/include/limits.h:125:
In file included from /home/guilherme/anaconda3/etc/cling/lib/clang/3.7.0/include/limits.h:37:
/usr/include/limits.h:145:17: error: token is not a valid binary operator in a
preprocessor subexpression
#if __GLIBC_USE (IEC_60559_BFP_EXT)
~~~~~~~~~~~ ^
Error: rootcling: compilation failure (/home/guilherme/larcv2/build/lib/libLArCVBase784ddeac21_dictUmbrella.h)
/home/guilherme/larcv2/Makefile/GNUmakefile.CORE:41: recipe for target '/home/guilherme/larcv2/build/Base/BaseDict.cxx' failed
make[1]: *** [/home/guilherme/larcv2/build/Base/BaseDict.cxx] Error 1
make[1]: Leaving directory '/home/guilherme/larcv2/larcv/core/Base'
GNUmakefile:34: recipe for target 'obj' failed
make: *** [obj] Error 2
`

So my next attempt was to use Ubuntu 16.04 and did not have problems to install larcv but when I import larcv on Jupyter(or spyder) the kernel crashed.

Did someone have the same problem?

@drinkingkazu
Copy link
Contributor

drinkingkazu commented Oct 15, 2018

A few comments:

  1. I am happy to help debugging. Shall we focus first on Ubuntu? Would you share the error message (which shows up on the terminal that runs jupyter notebook, not on notebook itself)?

  2. Have you considered using our singularity image? We use singularity software container to address a few issues including reproducibility of analysis and distribution of a software. What's related to your issue is that a container is designed to deliver you a working larcv development (as well as analysis) environment without having you install dependent libraries.

I use singularity on my laptop, a GPU server, and even on a GPU cluster / cloud. If you are interested in but don't know what it is, here's introduction tutorial and our singularity recipe repository as well as built image repository.

@coreyjadams
Copy link
Member

coreyjadams commented Oct 15, 2018 via email

@coreyjadams
Copy link
Member

coreyjadams commented Oct 15, 2018 via email

@Gui1402
Copy link
Author

Gui1402 commented Oct 16, 2018

Thank you for reply guys

Really I never heard about singularity image, maybe it can help me because I would like to run this example:

http://deeplearnphysics.org/Blog/tutorials/tutorial-02.html

Do I need to install VirtualBox(or similar programs) to run a singularity image?

But when I after put from larcv import larcv on Jupyter notebook, the jupyter's terminal shows:
*** Break *** bus error [I 23:30:07.095 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports kernel 431c86fd-3727-43cb-8bd3-f3cabb344225 restarted

@coreyjadams
Copy link
Member

You should check out the singularity site for information on how to run it: http://singularity.lbl.gov/docs-run

And, Kazu's wiki page for the larch singularity in detail:
https://github.com/DeepLearnPhysics/playground-singularity/wiki

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

3 participants