pisanos
(Silvia Pisano)
April 28, 2020, 10:54am
1
Dear all,
I am trying to install O2 in my Mac (MacOS Mojave) through the command
aliBuild build O2Suite --defaults o2-dataflow
aliDoctor response is ok (only some warnings), but the building fails at ROOT6 ( ROOT@v6-20-02-alice3 ) with the log
https://cernbox.cern.ch/index.php/s/fTYbyJVpFw5rrsn
Does anyone have any suggestion on how to fix it?
Thanks a lot in advance,
silvia
eulisse
(Giulio Eulisse)
April 28, 2020, 12:14pm
2
Dear silvia,
it looks like you have root installed from the system and sourced when you start compiling with aliBuild. Can you disable that?
–
Ciao,
Giulio
pisanos
(Silvia Pisano)
April 28, 2020, 2:13pm
3
Dear Giulio,
thanks a lot for the feedback. Looking into my bash configuration file, .bashrc (I work with the bash shell:
garibaldi:~ pisanos$ echo SHELL
/bin/bash
garibaldi:~ pisanos
) I see
export PATH="/usr/local/opt/gettext/bin:/usr/local/bin:$PATH"
Execute alidock within the appropriate Python virtual environment
function alidock() {( source “/Users/pisanos/.virtualenvs/alidock/bin/activate” && command alidock "@"; exit ?; )}
source /usr/local/root/bin/thisroot.sh
export ALIBUILD_WORK_DIR="$HOME/alice/sw"
eval “alienv shell-helper
”
export PATH="/usr/local/sbin:$PATH"
I tried to comment/remove the line
source /usr/local/root/bin/thisroot.sh
and reopen a new terminal, but I got the same error message as before when trying to build O2. Actually, even if I open a new terminal after the modification, I still see my ROOTSYS variable set to
garibaldi:alice pisanos$ echo ROOTSYS
/usr/local/root
garibaldi:alice pisanos
Isn’t it the proper way to implement your suggestion? If not, could you indicate me the correct one?
Thanks a lot in advance,
silvia
eulisse
(Giulio Eulisse)
April 28, 2020, 3:15pm
4
Can you please reformat your message using code blocks?
pisanos
(Silvia Pisano)
April 29, 2020, 9:05am
5
Dear Giulio,
thanks a lot for the feedback. Looking into my bash configuration file, .bashrc, I see
export PATH="/usr/local/opt/gettext/bin:/usr/local/bin:$PATH"
# Execute alidock within the appropriate Python virtual environment
function alidock() {( source "/Users/pisanos/.virtualenvs/alidock/bin/activate" && command alidock "$@"; exit $?; )}
source /usr/local/root/bin/thisroot.sh
export ALIBUILD_WORK_DIR="$HOME/alice/sw"
eval "`alienv shell-helper`"
export PATH="/usr/local/sbin:$PATH"
I tried to comment/remove the line
source /usr/local/root/bin/thisroot.sh
and reopen a new terminal, but I got the same error message as before when trying to build O2. Actually, even if I open a new terminal after the modification, I still see my ROOTSYS variable set to
garibaldi:alice pisanos$ echo ROOTSYS /usr/local/root garibaldi:alice pisanos
Isn’t it the proper way to implement your suggestion? If not, could you indicate me the correct one?
Thanks a lot in advance,
silvia
eulisse
(Giulio Eulisse)
May 5, 2020, 10:16pm
6
I am not sure how you can get ROOTSYS in the environment. Maybe you have something else setting it?
mkruger
(Mario Krüger)
July 4, 2020, 5:11pm
7
Hello Silvia,
in case you havent found a solution yet, I had the same issue:
TGLIncludes.h:21:10: fatal error: 'GL/glew.h' file not found
#include <GL/glew.h>
^~~~~~~~~~~
1 error generated.
You can fix this by adding the following line to root.sh in alidist:
committed 04:37PM - 04 Jul 20 UTC
There seems to be some kind of incompatibility when cmake tries to find a system version of glew on Mac. Current root master would give you a warning about this:
root-project:v6-20-00-patches
← oshadura:fix-mac-glew
opened 08:17AM - 15 Apr 20 UTC
Hope this helps.
Cheers,
Mario