are u using Linux or Windows?
This code is for Linux and will not run on Windows correctly.