找回密码
 注册
查看: 10|回复: 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 \
1 l' e$ e( \! s( C2 ~" w( c        -o objs/src/core/ngx_murmurhash.o \
- ?$ h1 Y) _: V" E8 a$ Z        src/core/ngx_murmurhash.c
2 P" s% G) r- t3 [% csrc/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:5 M7 j5 o8 I" G; b* V
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]& @5 h5 W' g0 [; N' S+ `' W2 e! b
   37 |         h ^= data[2] << 16;/ ?. P3 |& k$ C0 A! S8 g) ~$ q) P5 Y
      |         ~~^~~~~~~~~~~~~~~~" Q( ~; N  N/ l( T8 V4 R
src/core/ngx_murmurhash.c:38:5: note: here$ f* l3 f2 w( L3 l: e- L
   38 |     case 2:
$ m% K4 K5 V0 }* D& g      |     ^~~~
# d4 B7 g4 N; {& @8 N* ksrc/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
# T, [% _# B5 d% b% O% N  T   39 |         h ^= data[1] << 8;) x- N, I0 ~$ ~9 u  e
      |         ~~^~~~~~~~~~~~~~~
2 h( u5 g1 p" S% d5 d1 g' }( nsrc/core/ngx_murmurhash.c:40:5: note: here/ ~3 Y' Q" \2 g1 h2 F
   40 |     case 1:
. O5 W" T6 f/ |3 w      |     ^~~~
& F1 A4 r. H( V  Xcc1: all warnings being treated as errors
' Q: V8 J4 F9 r( u3 wmake[1]: *** [objs/Makefile:472: objs/src/core/ngx_murmurhash.o] Error 1. j" O+ i0 g# k, i) B3 q
make[1]: Leaving directory '/usr/src/webback/nginx-1.11.3'
5 b6 U3 ^& M, {# O! vmake: *** [Makefile:8: build] Error 29 v7 U+ ?- j8 S& G& O
6 ]0 O1 g4 f( O  Q  \0 B) E# `

9 O5 X# Q9 n2 I% U) Q2 c解决办法:5 E9 S; k" H6 H# y9 f- h
[root@webserver nginx-1.11.3]# vim objs/Makefile
" C9 X4 ?/ u$ u8 K  P( a: [% L6 W7 A4 W& ?+ @
#CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
+ _8 J# l. @$ T# \7 T' ?: FCFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g2 B% r/ @3 A6 P% d" x& a  o0 @* x) Y

; i2 J2 \  o; Y6 J修改后,再次编译:( O2 ]3 \3 H3 L9 L* ?

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2026-5-10 13:05:30 | 显示全部楼层
        -o objs/src/os/unix/ngx_user.o \
1 [/ \/ P# Z& D' {* D; Y0 J        src/os/unix/ngx_user.c" J: }5 w5 `6 O$ K
src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:4 X  Y0 H$ u; ]* |1 y5 K
src/os/unix/ngx_user.c:36:7: error: ‘struct crypt_data’ has no member named ‘current_salt’' y8 r! d' K0 \6 A
   36 |     cd.current_salt[0] = ~salt[0];- t2 R! V! ?3 x( I* G( Y$ K
      |       ^
. L0 X+ w/ B% [* G, \5 Hmake[1]: *** [objs/Makefile:781: objs/src/os/unix/ngx_user.o] Error 1
4 y/ ?$ A& N$ K" A& _& Qmake[1]: Leaving directory '/usr/src/webback/nginx-1.11.3'# ]3 K/ I0 I! z, b
make: *** [Makefile:8: build] Error 20 T% h5 V% ~9 L, |$ l# Q6 Z
[root@webserver nginx-1.11.3]# vim objs/Makefile 1 ]  X9 I+ n4 j4 |
[root@webserver nginx-1.11.3]# dnf install libxcrypt libxcrypt-compat libxcrypt-devel -y
& ~9 \- @" S; m; OLast metadata expiration check: 0:53:41 ago on Sun 10 May 2026 12:10:29 PM CST.8 @. |8 }- E4 q/ e7 h+ ~
Package libxcrypt-4.4.38-2.oe2503.x86_64 is already installed.+ k1 o, c% T6 f# b7 Z- b$ V
No match for argument: libxcrypt-compat
- ?, l( i, k8 @' e: B% V: fPackage libxcrypt-devel-4.4.38-2.oe2503.x86_64 is already installed.
$ k; z+ h: P) eError: Unable to find a match: libxcrypt-compat
$ W6 |9 @5 U7 F; H[root@webserver nginx-1.11.3]# dnf install libxcrypt  libxcrypt-devel -y9 B" j9 O+ Y2 @
Last metadata expiration check: 0:53:55 ago on Sun 10 May 2026 12:10:29 PM CST.
+ s( h  h) Y: |. YPackage libxcrypt-4.4.38-2.oe2503.x86_64 is already installed.
7 D- G/ H; q3 t7 ZPackage libxcrypt-devel-4.4.38-2.oe2503.x86_64 is already installed.: @% n+ C1 G. a% [
Dependencies resolved., U" D" Z9 F2 h& x) L: U
Nothing to do.7 a" d' R2 }! l5 P6 X
Complete!  t  Y1 S5 i+ d+ G2 H
[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"& i' h, R$ k. b0 d
checking for OS
* m- n4 P2 C0 r/ O" R + Linux 6.6.0-72.6.0.56.oe2503.x86_64 x86_644 L* d1 E/ V0 O
checking for C compiler ... found6 ?+ G( j  u5 G8 P2 B' d

1

主题

0

回帖

12

积分

管理员

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

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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