Pythia and alibuild

How to build Pythia with alibuild with ROOT connected?
I used the command: aliBuild build pythia in my alice directory. It worked fine and I was able to enter pythia via alienv. but i cannot make main91. It says “main91 requires root”.
I am using Ubuntu 18.