Can't compile

Generally, you should use a package manager rather than install things from source. Also, copying files from one place to another is a good way to screw some things up.

What distro do you have? How does it suggest to install packages?