VPS侦探论坛

 找回密码
 注册
查看: 3286|回复: 1

upgrade.sh 执行第二次升级nginx 报错,【已解决】

[复制链接]
发表于 2017-7-21 14:33:56 | 显示全部楼层 |阅读模式

第一次运行成功了。
由于某些原因,我想重新再升级一次(相同版本),在执行make的时候报如下错误:

make -f objs/Makefile
make[1]: Entering directory `/root/lnmp1.4-full/src/nginx-1.12.1'
cd /root/lnmp1.4-full/src/openssl-1.0.2l/ \
&& if [ -f Makefile ]; then make clean; fi \
&& ./config --prefix=/root/lnmp1.4-full/src/openssl-1.0.2l//.openssl no-shared  \
&& make \
&& make install_sw LIBDIR=lib
make[2]: Entering directory `/root/lnmp1.4-full/src/openssl-1.0.2l'
Makefile is older than Makefile.org, Configure or config.
Reconfigure the source tree (via './config' or 'perl Configure'), please.
make[2]: *** [Makefile] Error 1
make[2]: Leaving directory `/root/lnmp1.4-full/src/openssl-1.0.2l'
make[1]: *** [/root/lnmp1.4-full/src/openssl-1.0.2l//.openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/root/lnmp1.4-full/src/nginx-1.12.1'
make: *** [build] Error 2



config命令如下
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-openssl=/root/lnmp1.4-full/src/openssl-1.0.2l/ --add-module=../ngx_brotli --add-module=../nginx-ct-1.3.2

config的输出结果:
  1. checking for OS
  2. + Linux 3.10.0-514.16.1.el7.x86_64 x86_64
  3. checking for C compiler ... found
  4. + using GNU C compiler
  5. + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
  6. checking for gcc -pipe switch ... found
  7. checking for -Wl,-E switch ... found
  8. checking for gcc builtin atomic operations ... found
  9. checking for C99 variadic macros ... found
  10. checking for gcc variadic macros ... found
  11. checking for gcc builtin 64 bit byteswap ... found
  12. checking for unistd.h ... found
  13. checking for inttypes.h ... found
  14. checking for limits.h ... found
  15. checking for sys/filio.h ... not found
  16. checking for sys/param.h ... found
  17. checking for sys/mount.h ... found
  18. checking for sys/statvfs.h ... found
  19. checking for crypt.h ... found
  20. checking for Linux specific features
  21. checking for epoll ... found
  22. checking for EPOLLRDHUP ... found
  23. checking for EPOLLEXCLUSIVE ... not found
  24. checking for O_PATH ... found
  25. checking for sendfile() ... found
  26. checking for sendfile64() ... found
  27. checking for sys/prctl.h ... found
  28. checking for prctl(PR_SET_DUMPABLE) ... found
  29. checking for sched_setaffinity() ... found
  30. checking for crypt_r() ... found
  31. checking for sys/vfs.h ... found
  32. checking for poll() ... found
  33. checking for /dev/poll ... not found
  34. checking for kqueue ... not found
  35. checking for crypt() ... not found
  36. checking for crypt() in libcrypt ... found
  37. checking for F_READAHEAD ... not found
  38. checking for posix_fadvise() ... found
  39. checking for O_DIRECT ... found
  40. checking for F_NOCACHE ... not found
  41. checking for directio() ... not found
  42. checking for statfs() ... found
  43. checking for statvfs() ... found
  44. checking for dlopen() ... not found
  45. checking for dlopen() in libdl ... found
  46. checking for sched_yield() ... found
  47. checking for SO_SETFIB ... not found
  48. checking for SO_REUSEPORT ... found
  49. checking for SO_ACCEPTFILTER ... not found
  50. checking for SO_BINDANY ... not found
  51. checking for IP_BIND_ADDRESS_NO_PORT ... not found
  52. checking for IP_TRANSPARENT ... found
  53. checking for IP_BINDANY ... not found
  54. checking for IP_RECVDSTADDR ... not found
  55. checking for IP_PKTINFO ... found
  56. checking for IPV6_RECVPKTINFO ... found
  57. checking for TCP_DEFER_ACCEPT ... found
  58. checking for TCP_KEEPIDLE ... found
  59. checking for TCP_FASTOPEN ... found
  60. checking for TCP_INFO ... found
  61. checking for accept4() ... found
  62. checking for eventfd() ... found
  63. checking for int size ... 4 bytes
  64. checking for long size ... 8 bytes
  65. checking for long long size ... 8 bytes
  66. checking for void * size ... 8 bytes
  67. checking for uint32_t ... found
  68. checking for uint64_t ... found
  69. checking for sig_atomic_t ... found
  70. checking for sig_atomic_t size ... 4 bytes
  71. checking for socklen_t ... found
  72. checking for in_addr_t ... found
  73. checking for in_port_t ... found
  74. checking for rlim_t ... found
  75. checking for uintptr_t ... uintptr_t found
  76. checking for system byte ordering ... little endian
  77. checking for size_t size ... 8 bytes
  78. checking for off_t size ... 8 bytes
  79. checking for time_t size ... 8 bytes
  80. checking for AF_INET6 ... found
  81. checking for setproctitle() ... not found
  82. checking for pread() ... found
  83. checking for pwrite() ... found
  84. checking for pwritev() ... found
  85. checking for sys_nerr ... found
  86. checking for localtime_r() ... found
  87. checking for posix_memalign() ... found
  88. checking for memalign() ... found
  89. checking for mmap(MAP_ANON|MAP_SHARED) ... found
  90. checking for mmap("/dev/zero", MAP_SHARED) ... found
  91. checking for System V shared memory ... found
  92. checking for POSIX semaphores ... not found
  93. checking for POSIX semaphores in libpthread ... found
  94. checking for struct msghdr.msg_control ... found
  95. checking for ioctl(FIONBIO) ... found
  96. checking for struct tm.tm_gmtoff ... found
  97. checking for struct dirent.d_namlen ... not found
  98. checking for struct dirent.d_type ... found
  99. checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
  100. checking for openat(), fstatat() ... found
  101. checking for getaddrinfo() ... found
  102. configuring additional modules
  103. adding module in ../ngx_brotli
  104. + ngx_brotli was configured
  105. adding module in ../nginx-ct-1.3.2
  106. + ngx_ssl_ct_module was configured
  107. checking for PCRE library ... found
  108. checking for PCRE JIT support ... found
  109. checking for zlib library ... found
  110. creating objs/Makefile

  111. Configuration summary
  112.   + using system PCRE library
  113.   + using OpenSSL library: /root/lnmp1.4-full/src/openssl-1.0.2l/
  114.   + using system zlib library

  115.   nginx path prefix: "/usr/local/nginx"
  116.   nginx binary file: "/usr/local/nginx/sbin/nginx"
  117.   nginx modules path: "/usr/local/nginx/modules"
  118.   nginx configuration prefix: "/usr/local/nginx/conf"
  119.   nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  120.   nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  121.   nginx error log file: "/usr/local/nginx/logs/error.log"
  122.   nginx http access log file: "/usr/local/nginx/logs/access.log"
  123.   nginx http client request body temporary files: "client_body_temp"
  124.   nginx http proxy temporary files: "proxy_temp"
  125.   nginx http fastcgi temporary files: "fastcgi_temp"
  126.   nginx http uwsgi temporary files: "uwsgi_temp"
  127.   nginx http scgi temporary files: "scgi_temp"

  128. ./configure: warning: the "--with-ipv6" option is deprecated
复制代码

[ 本帖最后由 mycisco 于 2017-7-21 15:14 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-7-21 14:42:10 | 显示全部楼层


谢谢 问题已解决在脚本里把path后的openssl目录里的Make开头的文件都touch 一下。

[ 本帖最后由 mycisco 于 2017-7-21 15:13 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 00:23 , Processed in 0.025679 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表