Compiling from C++

Hi!
I’ve tried to install the last version of ROOT on Ubuntu 16.04 LTS. I’ve programs that works on ROOT, because in another computer they compile computer does not. When I try to compile a program it appears this:

/usr/bin/ld: impossibile trovare -lGraf3d
/usr/bin/ld: impossibile trovare -lPostscript
/usr/bin/ld: impossibile trovare -lPhysics
collect2: error: ld returned 1 exit status

I don’t know what it means in first place. In second place I don’t know how to solve the problem. Can you help me?

What do you get when you try:
root-config --libs

-L/usr/lib/x86_64-linux-gnu -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic

I get this

It seems to me that you try to use Ubuntu’s provided ROOT 5… If that’s the case, you probably miss some of its packages (i.e. you need to install them).
However, I think you’d better uninstall Ubuntu’s ROOT 5 and take the latest ROOT 6 (the ROOT Team provides a “ready to use” binary distribution for Ubuntu 16.04).

How can I uninstall it from the terminal?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.