Solution for System Time Error When Compiling Packages


I was trying to recompile Nginx today, But I got a very wierd error that I couldn't pass it.

This is the error information,

configure: error: newly created file is older than distributed files!
Check your system clock

It seems that the file I created is older than the distributed files, then I checked the system clock, I found the timezone was wrong, so I reseted the timezone with:

sudo dpkg-reconfigure tzdata

Choose your current timezone, and it will update your system clock.

Awesome, it works.

Posted at 02 Jan 2012

blog comments powered by Disqus