Warning: File 'src/core/nginx. h & #39; has modification time 1.2e + 07 s in the future, nginx. h1.2e

Source: Internet
Author: User
Tags decompress file openssl library

Warning: File 'src/core/nginx. H' has modification time 1.2e + 07 s in the future, nginx. h1.2e

During Nginx installation, Warning: File 'src/core/nginx. H' has modification time 1.2e + 07 s in the future solution

Problem scenario:

Decompress file: tar-zxvf nginx-1.7.4.tar.gz

nginx-1.7.4/nginx-1.7.4/auto/nginx-1.7.4/conf/tar: nginx-1.7.4/auto: time stamp 2014-08-05 19:13:10 is 12165186.025866769 s in the futurenginx-1.7.4/contrib/tar: nginx-1.7.4/conf: time stamp 2014-08-05 19:13:06 is 12165182.024958914 s in the futurenginx-1.7.4/src/tar: nginx-1.7.4/contrib: time stamp 2014-08-05 19:13:06 is 12165182.020185855 s in the futurenginx-1.7.4/configuretar: nginx-1.7.4/src: time stamp 2014-08-05 19:13:10 is 12165186.019670919 s in the futuretar: nginx-1.7.4/configure: time stamp 2014-08-05 19:13:05 is 12165181.018314486 s in the futurenginx-1.7.4/LICENSEtar: nginx-1.7.4/LICENSE: time stamp 2014-08-05 19:13:06 is 12165182.018083727 s in the futurenginx-1.7.4/READMEtar: nginx-1.7.4/README: time stamp 2014-08-05 19:13:06 is 12165182.017770715 s in the futurenginx-1.7.4/html/nginx-1.7.4/man/tar: nginx-1.7.4/html: time stamp 2014-08-05 19:13:10 is 12165186.017546593 s in the futurenginx-1.7.4/CHANGES.rutar: nginx-1.7.4/man: time stamp 2014-08-05 19:13:10 is 12165186.017422397 s in the futuretar: nginx-1.7.4/CHANGES.ru: time stamp 2014-08-05 19:13:14 is 12165190.01206064 s in the futurenginx-1.7.4/CHANGEStar: nginx-1.7.4/CHANGES: time stamp 2014-08-05 19:13:17 is 12165193.007600125 s in the futurenginx-1.7.4/man/nginx.8tar: nginx-1.7.4/man/nginx.8: time stamp 2014-08-05 19:13:06 is 12165182.007250707 s in the futurenginx-1.7.4/html/50x.htmltar: nginx-1.7.4/html/50x.html: time stamp 2014-08-05 19:13:06 is 12165182.007094338 s in the futurenginx-1.7.4/html/index.htmltar: nginx-1.7.4/html/index.html: time stamp 2014-08-05 19:13:06 is 12165182.006936145 s in the future
The problem is shown here, but I don't care.

Configuration:./configure

./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using --with-pcre=<path> option.
Dependent on PCRE (Perl Compatible Regular Expressions) is a Perl library, including a perl-Compatible Regular Expression Library. It is useful to use the same syntax and semantics as Perl 5 when performing regular expression pattern matching. Boost is too large. After boost regex is used, the Compilation speed of the program is obviously slow. After testing, it takes 3 seconds for a program to compile with boost: regex, but less than 1 second for pcre. Therefore, use pcre to solve the problem of using regular expressions in C Language) Library: www.pcre.org/
Location of the specified database:./configure -- with-pare =/opt/pcre

Configuration summary  + using PCRE library: /opt/pcre  + OpenSSL library is not used  + md5: using system crypto library  + sha1: using system crypto library  + using system zlib library  nginx path prefix: "/usr/local/nginx"  nginx binary file: "/usr/local/nginx/sbin/nginx"  nginx configuration prefix: "/usr/local/nginx/conf"  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"  nginx pid file: "/usr/local/nginx/logs/nginx.pid"  nginx error log file: "/usr/local/nginx/logs/error.log"  nginx http access log file: "/usr/local/nginx/logs/access.log"  nginx http client request body temporary files: "client_body_temp"  nginx http proxy temporary files: "proxy_temp"  nginx http fastcgi temporary files: "fastcgi_temp"  nginx http uwsgi temporary files: "uwsgi_temp"  nginx http scgi temporary files: "scgi_temp"
Compile: make

make -f objs/Makefilemake[1]: Entering directory `/opt/nginx-1.7.4'make[1]: Warning: File `src/core/nginx.h' has modification time 1.2e+07 s in the futurecd /opt/pcre \&& if [ -f Makefile ]; then make distclean; fi \&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \./configure --disable-shared /bin/sh: line 2: ./configure: No such file or directorymake[1]: *** [/opt/pcre/Makefile] Error 127make[1]: Leaving directory `/opt/nginx-1.7.4'make: *** [build] Error 2
View System Time Zone: date-R

China should be more than 0800, but the display is-0800

Modify the time zone:

Cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
The time zone information exists in/usr/share/zoneinfo/, and the local time zone information exists in/etc/localtime.

View system date: date

The date is also incorrect,

Date: date-s 20141118

Modification time: date-s 19:16:55

Delete previous files: rm-rf nginx-1.7.4

Decompress again: tar-zxvf nginx-1.7.4.tar.gz

nginx-1.7.4/nginx-1.7.4/auto/nginx-1.7.4/conf/nginx-1.7.4/contrib/nginx-1.7.4/src/nginx-1.7.4/configurenginx-1.7.4/LICENSEnginx-1.7.4/READMEnginx-1.7.4/html/nginx-1.7.4/man/nginx-1.7.4/CHANGES.runginx-1.7.4/CHANGESnginx-1.7.4/man/nginx.8nginx-1.7.4/html/50x.htmlnginx-1.7.4/html/index.htmlnginx-1.7.4/src/core/nginx-1.7.4/src/event/nginx-1.7.4/src/http/nginx-1.7.4/src/mail/nginx-1.7.4/src/misc/nginx-1.7.4/src/os/nginx-1.7.4/src/os/unix/
The result is displayed.

However, this only solves the warning problem, but the error is not solved.






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.