Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I hope you can help me with this problem.

I am trying to install root in my computer, but I have a problem and I don't know what to do to solve it.

I've downloaded the tar file with the root version that I want to install. I've extracted the files in the tar file. I've run the configure program successfully, but when I run make command, I get this result:

cp /root/root/core/utils/src/RClStl.cxx core/utils/src/RClStl_tmp.cxx 
bin/rmkdepend -R -fcore/utils/src/RClStl_tmp.d -Y -w 1000 -- -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -UR__HAVE_CONFIG -DROOTBUILD -I/root/root/core/utils/src -D__cplusplus -- core/utils/src/RClStl_tmp.cxx
g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -UR__HAVE_CONFIG -DROOTBUILD -I/root/root/core/utils/src -o core/utils/src/RClStl_tmp.o -c core/utils/src/RClStl_tmp.cxx 
In file included from core/utils/src/RClStl.h:28:0, from core/utils/src/RClStl_tmp.cxx:16: core/utils/src/Scanner.h:16:27: 
fatal error: clang/AST/AST.h: No existe el fichero o el directorio compilation terminated. make: * [core/utils/src/RClStl_tmp.o] Error 1 rm core/utils/src/RClStl_tmp.cxx

I don't know what to do. Please, help me.

share|improve this question
add comment

1 Answer 1

I think you're probably missing the clang library: as you can see at the end of the error message it's complaining about not finding the clang/AST/AST.h file. Try to install libclang-dev.

sudo apt-get install libclang-dev
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.