$\displaystyle (a,b),[a,b),[a,b],(a,b],[a,\infty ),(a,\infty ),(\infty ,b],(\infty ,b)$
One of those is compact. As a space $\displaystyle \mathbb{R}$ is itself not compact.