找回密码
 注册
查看: 11|回复: 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 \
" `5 q8 B, Z6 h- Q8 E+ R$ v! z; u        -o objs/src/core/ngx_murmurhash.o \' @- e, H* j/ H) H. ]; ~
        src/core/ngx_murmurhash.c
- u, T2 H9 Z2 r& {9 ^src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:1 `2 b0 \1 m. T) H
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
) k" \: i% Q5 W' n/ @1 \# p4 _3 q5 L   37 |         h ^= data[2] << 16;
, O, @1 n4 x: i      |         ~~^~~~~~~~~~~~~~~~0 y% {) K# O4 U1 C0 ?$ Z) b6 |( r; ?( }
src/core/ngx_murmurhash.c:38:5: note: here
  V4 ~5 n$ z- c, n" W   38 |     case 2:: J1 s8 r* i! u
      |     ^~~~
( t( w, V* \( a5 P/ Z5 n: Psrc/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]5 N" K$ O% ]- S2 P+ Q1 b2 k
   39 |         h ^= data[1] << 8;+ Y( D) d4 ?3 K4 m
      |         ~~^~~~~~~~~~~~~~~
4 |" {6 G6 r2 s" _- Ysrc/core/ngx_murmurhash.c:40:5: note: here: {% Z8 P' w9 s1 y* d; R# x
   40 |     case 1:3 \( |; c) J7 t5 d- q) s% _. k
      |     ^~~~
, K. ~% x* R5 U, h: v# t5 R+ g5 Acc1: all warnings being treated as errors
6 g6 @  t; o/ s  f$ o7 Xmake[1]: *** [objs/Makefile:472: objs/src/core/ngx_murmurhash.o] Error 1
% U/ K/ c+ d' E& y2 j9 nmake[1]: Leaving directory '/usr/src/webback/nginx-1.11.3'! {1 E* h. ^$ k7 s, r) ?9 i
make: *** [Makefile:8: build] Error 22 _4 c1 n/ ]0 j9 o  }! J

( v; `$ M/ ~9 |: B8 F( q$ Z/ k3 e& Q/ L. y" B* b
解决办法:
) M5 B; ~" u- g4 r( o[root@webserver nginx-1.11.3]# vim objs/Makefile ( t2 w$ Y$ u9 B& u( y- ]6 x

8 L1 N2 V* S* _3 G' Z% U#CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g . y: }9 @' H" B3 u* n5 |
CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g3 h9 }1 j( m5 o" s
) H- g4 O% H' g$ K
修改后,再次编译:
" V6 v# C/ ^6 K/ q% L* j: p# K; j

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-5-10 13:05:30 | 显示全部楼层
        -o objs/src/os/unix/ngx_user.o \
1 i3 d2 P3 [/ }+ E' ~- C        src/os/unix/ngx_user.c& V% C, a/ S% u7 x1 d  S
src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:! a2 X: ~& N* w5 i5 n1 L: M8 j
src/os/unix/ngx_user.c:36:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
) U- ?0 F3 x9 N: y( Z   36 |     cd.current_salt[0] = ~salt[0];" m5 S5 h' ]' {" O
      |       ^
* D6 K2 x1 @/ Q, ?6 v2 w# Dmake[1]: *** [objs/Makefile:781: objs/src/os/unix/ngx_user.o] Error 1
% K3 }3 }3 T. F% y" Xmake[1]: Leaving directory '/usr/src/webback/nginx-1.11.3'
- D/ q, n9 @/ _( @. P+ Wmake: *** [Makefile:8: build] Error 2
6 j0 W8 K5 e2 S8 k[root@webserver nginx-1.11.3]# vim objs/Makefile
- D: T/ @) S1 c7 N) L! Y( Y( V$ p' j[root@webserver nginx-1.11.3]# dnf install libxcrypt libxcrypt-compat libxcrypt-devel -y$ _' c+ C( ^" O0 d5 L" U# A
Last metadata expiration check: 0:53:41 ago on Sun 10 May 2026 12:10:29 PM CST.
6 F- e$ @8 C0 x7 y. j- `Package libxcrypt-4.4.38-2.oe2503.x86_64 is already installed.
6 O* x9 y5 q/ Y6 D. F% J5 TNo match for argument: libxcrypt-compat
: ]- M! I3 x- TPackage libxcrypt-devel-4.4.38-2.oe2503.x86_64 is already installed.
$ W4 L# a0 h& m* ^  {2 IError: Unable to find a match: libxcrypt-compat
0 ?4 o1 @. @( _% R/ Z; g& L# O" x[root@webserver nginx-1.11.3]# dnf install libxcrypt  libxcrypt-devel -y
0 z! N4 {# M" \7 w% PLast metadata expiration check: 0:53:55 ago on Sun 10 May 2026 12:10:29 PM CST.
# C+ s/ @2 g* O2 y; APackage libxcrypt-4.4.38-2.oe2503.x86_64 is already installed.$ t; }# w5 C/ G9 A/ U
Package libxcrypt-devel-4.4.38-2.oe2503.x86_64 is already installed.
+ h: x# p* V8 B( o) g! {3 q- U( [Dependencies resolved.& o& S) D8 K& c
Nothing to do.
) k: J# d' F4 H0 \$ b5 t0 Q0 sComplete!
6 L2 K4 }: `3 w2 _/ o% l# f# ?[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"5 b* W9 k' a- g6 }
checking for OS1 I% `6 F2 s: [. O
+ Linux 6.6.0-72.6.0.56.oe2503.x86_64 x86_64
7 T/ S' z$ Q! }* schecking for C compiler ... found
+ E% W/ h4 g8 l4 ^

1

主题

0

回帖

12

积分

管理员

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

本版积分规则

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

GMT+8, 2026-6-12 00:39 , Processed in 0.021017 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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