Error:newly created file is older than distributed files! when compiling resin

Source: Internet
Author: User

error:newly created file is older than distributed files! when compiling resin

#./configure--prefix=/usr/local/resin--with-java=/usr/local/src/jdk1.8.0_65/
checking build system type ... I686-redhat-linux-gnu
checking host system type ... I686-redhat-linux-gnu
checking target system type ... I686-redhat-linux-gnu
checking for a bsd-compatible install .../usr/bin/install-c
checking whether build environment is sane ...configure:error:newly created file is older than distributed files!
Check your system clock


search on the internet a bit, many of them by updating the system time to solve, but did not explain the cause of the problem.

In fact, it's because the file modification time in my resin directory is ctime later than my Linux system time.

The reason for this is that my Linux is suspended with VMware virtual machines, and the time of the system will be the pending time after each suspension.

I am now virtual machine Time December 01, 2015 Tuesday 13:38:43, while some files in the resin-pro-4.0.46 directory are time December 03, 2015
System Time

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/78/40/wKioL1Z497jQkcwiAABmw2iTpsQ404.jpg "title=" 01.jpg "alt=" Wkiol1z497jqkcwiaabmw2itpsq404.jpg "/>



File time (ls-l) What is the time to see the file? Ctime,atime,mtime?)
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/78/42/wKiom1Z498XhP45mAAD5on-y6SU589.jpg "title=" 02.jpg "alt=" Wkiom1z498xhp45maad5on-y6su589.jpg "/>

Workaround:
First, the resin directory to modify the file time to the current system time (with the touch command to modify the Atime,ctime or Mtime?) )
[[email protected]/usr/local/src/resin-pro-4.0.46]

# Touch *


then compile, without error message prompt, compile successfully.

second, the current system time is fixed later than the resin directory file time.
2.1 Set the system time with the date command and write the system time to CMOS with clock.

# date-s "2015-12-08 14:51:00" # clock-w



2.2 Update the system time with Ntpdate as standard network time. After this command, add the available standard network time server address, see the resources map.

# ntpdate Time.windows.com



Third, the virtual machine restarts, so that the virtual machine automatically updated to the host's system time.

# init 6


If you later compile additional software, you encounter configure:error:newly created file is older than distributed files! Check your system clock prompts, can follow the above ideas and methods to solve.

References:
http://blog.csdn.net/pjchen/article/details/7199804
http://blog.itpub.net/10617542/viewspace-960296/
http://vbird.dic.ksu.edu.tw/linux_server/0440ntp.php
Http://www.stdtime.gov.tw/Time/ntp/resource.htm

double-click Windows Time to view available standard network time server addresses
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/78/40/wKioL1Z49-fC_so3AAAnLWIQ24E383.png "title=" 03.png "alt=" Wkiol1z49-fc_so3aaanlwiq24e383.png "/>


When compiling resin error:newly created file is older than distributed files!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.