Show that $\int_{2}^x\frac{\pi(t)}{t(t-1)}dt=\log \log x+ O(1)$
Do you use the fact that $\pi(t) = \frac{t}{\log t} + O\left(\frac{t}{\log^2t}\right)$ and then
$\int_{2}^x\frac{\pi(t)}{t(t-1)}dt= \int_2^x\left(\frac{t}{\log t} + O\left(\frac{t}{\log^2t}\right)\right)\left(\frac{1}{t(t-1)}\right)dt$
and work from there?