找回密码
 注册
查看: 9|回复: 3

基于openEluer25.03系统安装nginx+mysql+php的webserver环境

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2026-5-10 12:50:01 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-5-10 13:03:19 | 显示全部楼层
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \. `0 t, b0 U2 C- ~7 A
        -o objs/src/core/ngx_murmurhash.o \
+ a9 a  D4 T9 a# I- ]* R' g        src/core/ngx_murmurhash.c
! k$ T, ]% K8 u0 @: E4 ]7 b6 c3 dsrc/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:
- R( Z8 p& _, a0 i( ]  P" Nsrc/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
( }0 S, k1 l) V7 y   37 |         h ^= data[2] << 16;
! k7 T# \; h' u      |         ~~^~~~~~~~~~~~~~~~
+ R0 K7 t/ r9 X& b0 U0 tsrc/core/ngx_murmurhash.c:38:5: note: here: v9 m5 l* [7 V  |0 j  S
   38 |     case 2:1 p4 H& k6 n: Y
      |     ^~~~
- Z7 S: @4 U% U% U) A" a7 d6 Csrc/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]; c& v( y* p! u& p( q- ]- O
   39 |         h ^= data[1] << 8;2 l" d) D  |9 R* H
      |         ~~^~~~~~~~~~~~~~~  s! E- H+ i" j
src/core/ngx_murmurhash.c:40:5: note: here
4 H0 l" y7 g8 u2 p# _( h' C8 ~7 ?   40 |     case 1:
! M# q( z) p( x9 s4 S      |     ^~~~
9 t5 d% K9 t3 J0 Q$ `0 m5 ~cc1: all warnings being treated as errors
0 T7 D( b1 J. L: r8 C' Y! hmake[1]: *** [objs/Makefile:472: objs/src/core/ngx_murmurhash.o] Error 1
6 O5 E( N9 Y* I& k. X6 e  `make[1]: Leaving directory '/usr/src/webback/nginx-1.11.3': c) S( l* J1 C
make: *** [Makefile:8: build] Error 2
& }( p: u6 {& @/ _- O9 t
% A# i7 z5 O: A1 i9 l( p5 s5 c7 A" j1 W9 u" ?& y, V: t1 }1 h
解决办法:
2 I6 H0 I3 `  y1 N  ]5 ?) W0 u. J. y[root@webserver nginx-1.11.3]# vim objs/Makefile ' h. X- P  r9 o3 Q  n
4 p- J( P1 \2 ?  Z
#CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
% ]9 m8 I. O, W; R% FCFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g
$ W& B7 R" K8 H9 y: j/ }* O: k
修改后,再次编译:& K4 {6 u2 V* b# m- E8 P4 m

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-5-10 13:05:30 | 显示全部楼层
        -o objs/src/os/unix/ngx_user.o \
) d: t! t# ~3 J8 u& P        src/os/unix/ngx_user.c* Z, X! c2 p8 T# g5 _1 Y) t
src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:$ L5 [0 j/ Q& S# s
src/os/unix/ngx_user.c:36:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
- L  B8 }. ]# K2 \6 b, q   36 |     cd.current_salt[0] = ~salt[0];; k! z( n5 z9 [- V( l% j8 m
      |       ^, V4 O! W8 n" X$ \% N
make[1]: *** [objs/Makefile:781: objs/src/os/unix/ngx_user.o] Error 1
$ Y% I- S: x# v6 E1 Lmake[1]: Leaving directory '/usr/src/webback/nginx-1.11.3'
3 }# A5 N! j$ x  W: v  ?make: *** [Makefile:8: build] Error 2
1 g6 G( s# f" `" k[root@webserver nginx-1.11.3]# vim objs/Makefile
6 q, }, X" I, b/ p4 C[root@webserver nginx-1.11.3]# dnf install libxcrypt libxcrypt-compat libxcrypt-devel -y
1 D# l  j; p; _- ?Last metadata expiration check: 0:53:41 ago on Sun 10 May 2026 12:10:29 PM CST.  b+ P) N& d4 S$ j* \/ ~) B
Package libxcrypt-4.4.38-2.oe2503.x86_64 is already installed.$ z' `& i+ d) e
No match for argument: libxcrypt-compat
4 ~. F/ w* i& |% P2 u5 E. a8 E$ uPackage libxcrypt-devel-4.4.38-2.oe2503.x86_64 is already installed.
2 w* B8 a8 i% e/ y: _  SError: Unable to find a match: libxcrypt-compat
! f' x' p; P5 C8 O1 z& I[root@webserver nginx-1.11.3]# dnf install libxcrypt  libxcrypt-devel -y4 ]$ i: i9 i$ Y$ i5 Z+ ~* n
Last metadata expiration check: 0:53:55 ago on Sun 10 May 2026 12:10:29 PM CST.( l8 }7 ~. n2 o" }9 ], R8 C6 X
Package libxcrypt-4.4.38-2.oe2503.x86_64 is already installed.
- n1 [$ U# D: E8 t' xPackage libxcrypt-devel-4.4.38-2.oe2503.x86_64 is already installed.0 ]8 x/ O3 y' B' w2 \9 o1 @
Dependencies resolved.
- N1 x9 ~  e$ l. X: v& eNothing to do.; g3 ?) h3 V3 a4 C
Complete!
* f% Z4 l3 s5 @[root@webserver nginx-1.11.3]# ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ld-opt="-lcrypt"
: f# z2 H! P8 \! v/ _2 m+ ochecking for OS
. Q9 g3 v$ p1 E& p2 M, p0 S + Linux 6.6.0-72.6.0.56.oe2503.x86_64 x86_64
" ~! c; `) k# P/ Qchecking for C compiler ... found9 ~- p1 C, U  A( t

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-5-11 22:33:42 | 显示全部楼层
需要最新版本。老版本不兼容。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:34 , Processed in 0.022758 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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