Trouble with Root 5.30.06 on Ubuntu 10.04.3

By checking other posts, it sounds like I have to link a few libraries.
[url]Failed compilation from RooFit since ROOTv5.28
In the /root/Makefile, I tried

ROOTLIBS     := $(BOOTLIBS) -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad \
                -lTree -lMatrix -lThread -lMinuit -lFoam -lRooFit -lRooFitCore -lMathMore

However, this didn’t work as it did for others. Am I linking these libraries correctly?