qmake.conf has modification time 4.5e+8s in the future

在ubuntu 下的QT编译出现如下的错误:
qmake.conf has modification time 4.5e+8s in the future
时查看一下,是系统的时间问题,更正一下系统时间,就要以了

查看系统日期:date

发现日期也不对,

修改日期:date -s 20150118

修改时间:date -s 17:16:55


以下查阅了相关问题的博客:
http://blog.csdn.net/testcs_dn/article/details/41251255
转:Nginx安装时Warning: File `src/core/nginx.h' has modification time 1.2e+07 s in the future问题的解决方法

问题场景:

解压文件:tar -zxvf nginx-1.7.4.tar.gz 

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. nginx-1.7.4/  
  2. nginx-1.7.4/auto/  
  3. nginx-1.7.4/conf/  
  4. tar: nginx-1.7.4/auto: time stamp 2014-08-05 19:13:10 is 12165186.025866769 s in the future  
  5. nginx-1.7.4/contrib/  
  6. tar: nginx-1.7.4/conf: time stamp 2014-08-05 19:13:06 is 12165182.024958914 s in the future  
  7. nginx-1.7.4/src/  
  8. tar: nginx-1.7.4/contrib: time stamp 2014-08-05 19:13:06 is 12165182.020185855 s in the future  
  9. nginx-1.7.4/configure  
  10. tar: nginx-1.7.4/src: time stamp 2014-08-05 19:13:10 is 12165186.019670919 s in the future  
  11. tar: nginx-1.7.4/configure: time stamp 2014-08-05 19:13:05 is 12165181.018314486 s in the future  
  12. nginx-1.7.4/LICENSE  
  13. tar: nginx-1.7.4/LICENSE: time stamp 2014-08-05 19:13:06 is 12165182.018083727 s in the future  
  14. nginx-1.7.4/README  
  15. tar: nginx-1.7.4/README: time stamp 2014-08-05 19:13:06 is 12165182.017770715 s in the future  
  16. nginx-1.7.4/html/  
  17. nginx-1.7.4/man/  
  18. tar: nginx-1.7.4/html: time stamp 2014-08-05 19:13:10 is 12165186.017546593 s in the future  
  19. nginx-1.7.4/CHANGES.ru  
  20. tar: nginx-1.7.4/man: time stamp 2014-08-05 19:13:10 is 12165186.017422397 s in the future  
  21. tar: nginx-1.7.4/CHANGES.ru: time stamp 2014-08-05 19:13:14 is 12165190.01206064 s in the future  
  22. nginx-1.7.4/CHANGES  
  23. tar: nginx-1.7.4/CHANGES: time stamp 2014-08-05 19:13:17 is 12165193.007600125 s in the future  
  24. nginx-1.7.4/man/nginx.8  
  25. tar: nginx-1.7.4/man/nginx.8: time stamp 2014-08-05 19:13:06 is 12165182.007250707 s in the future  
  26. nginx-1.7.4/html/50x.html  
  27. tar: nginx-1.7.4/html/50x.html: time stamp 2014-08-05 19:13:06 is 12165182.007094338 s in the future  
  28. nginx-1.7.4/html/index.html  
  29. tar: nginx-1.7.4/html/index.html: time stamp 2014-08-05 19:13:06 is 12165182.006936145 s in the future  
这里已经显示问题,但我没有在意。

配置:./configure

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. ./configure: error: the HTTP rewrite module requires the PCRE library.  
  2. You can either disable the module by using --without-http_rewrite_module  
  3. option, or install the PCRE library into the system, or build the PCRE library  
  4. statically from the source with nginx by using --with-pcre=<path> option.  
依赖PCRE( PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括  perl  兼容的 正则表达式 库。这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。Boost太庞大了,使用boost regex后,程序的编译速度明显变慢。测试了一下,同样一个程序,使用boost::regex编译时需要3秒,而使用pcre不到1秒。因此改用pcre来解决C语言中 使用正则表达式 的问题)库,下载地址: www. pcre .org/
指定库的位置:./configure --with-pare=/opt/pcre

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. Configuration summary  
  2.   + using PCRE library: /opt/pcre  
  3.   + OpenSSL library is not used  
  4.   + md5: using system crypto library  
  5.   + sha1: using system crypto library  
  6.   + using system zlib library  
  7.   
  8.   nginx path prefix: "/usr/local/nginx"  
  9.   nginx binary file: "/usr/local/nginx/sbin/nginx"  
  10.   nginx configuration prefix: "/usr/local/nginx/conf"  
  11.   nginx configuration file: "/usr/local/nginx/conf/nginx.conf"  
  12.   nginx pid file: "/usr/local/nginx/logs/nginx.pid"  
  13.   nginx error log file: "/usr/local/nginx/logs/error.log"  
  14.   nginx http access log file: "/usr/local/nginx/logs/access.log"  
  15.   nginx http client request body temporary files: "client_body_temp"  
  16.   nginx http proxy temporary files: "proxy_temp"  
  17.   nginx http fastcgi temporary files: "fastcgi_temp"  
  18.   nginx http uwsgi temporary files: "uwsgi_temp"  
  19.   nginx http scgi temporary files: "scgi_temp"  
编译:make

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. make -f objs/Makefile  
  2. make[1]: Entering directory `/opt/nginx-1.7.4'  
  3. make[1]: Warning: File `src/core/nginx.h' has modification time 1.2e+07 s in the future  
  4. cd /opt/pcre \  
  5.     && if [ -f Makefile ]; then make distclean; fi \  
  6.     && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \  
  7.     ./configure --disable-shared   
  8. /bin/sh: line 2: ./configure: No such file or directory  
  9. make[1]: *** [/opt/pcre/Makefile] Error 127  
  10. make[1]: Leaving directory `/opt/nginx-1.7.4'  
  11. make: *** [build] Error 2  
查看系统时区:date -R

中国应该是+0800才对,可是显示的却是-0800

修改时区:

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  
时区的信息存在/usr/share/zoneinfo/下面,本机的时区信息存在/etc/localtime

查看系统日期:date

发现日期也不对,

修改日期:date -s 20141118

修改时间:date -s 19:16:55

把之前的文件删除:rm -rf nginx-1.7.4

再次解压:tar -zxvf nginx-1.7.4.tar.gz

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. nginx-1.7.4/  
  2. nginx-1.7.4/auto/  
  3. nginx-1.7.4/conf/  
  4. nginx-1.7.4/contrib/  
  5. nginx-1.7.4/src/  
  6. nginx-1.7.4/configure  
  7. nginx-1.7.4/LICENSE  
  8. nginx-1.7.4/README  
  9. nginx-1.7.4/html/  
  10. nginx-1.7.4/man/  
  11. nginx-1.7.4/CHANGES.ru  
  12. nginx-1.7.4/CHANGES  
  13. nginx-1.7.4/man/nginx.8  
  14. nginx-1.7.4/html/50x.html  
  15. nginx-1.7.4/html/index.html  
  16. nginx-1.7.4/src/core/  
  17. nginx-1.7.4/src/event/  
  18. nginx-1.7.4/src/http/  
  19. nginx-1.7.4/src/mail/  
  20. nginx-1.7.4/src/misc/  
  21. nginx-1.7.4/src/os/  
  22. nginx-1.7.4/src/os/unix/  
这时显示结果就没问题了。

但这只是解决了警告的问题,但错误并没有解决。


转:http://blog.163.com/qimo601@126/blog/static/15822093201411951135430/

has modification time in the future  

2014-02-19 17:11:35|  分类: linux |  标签:modification  time  has  tim  |举报|字号 订阅

 问题:
Error: ... has modification time in the future
Error: ... qmake.conf has modification time
make[3]: *** Warning: File `Makefile' has modification time in the future (2008-09-11 13:18:07 > 2008-09-11 13:11:02.994558)
make[3]: Nothing to be done for `info-am'.

方法:
出现这个问题的原因是文件的最后修改时间比当前系统的时间要晚,就是在当前时间的将来时间,所以修改一下当前的系统时间即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值