一,配置时报错:
1,报错
configure: error: Package requirements (xpm) were not met:Package 'xpm', required by 'virtual:world', not found
解决:
[root@blog ~]# dnf install libXpm-devel
2,报错:
checking for icu-uc >= 50.1 icu-io icu-i18n... no
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:Package 'icu-uc', required by 'virtual:world', not found
Package 'icu-io', required by 'virtual:world', not found
Package 'icu-i18n', required by 'virtual:world', not found
解决:
[root@blog ~]# yum install -y libicu-devel
二,编译时报错:
1,
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `mb_utf16be_to_wchar' with pointer equality in
`ext/mbstring/libmbfl/filters/mbfilter_utf16.o' can not be used when making an executable;
recompile with -fPIE and relink with -pie
collect2: error: ld returned 1 exit status
make: *** [Makefile:283: sapi/cli/php] Error 1
按提示:
修改Makefile文件
原内容:
CC = cc
BUILD_CC = cc
修改为
CC = cc -fPIE -pie
BUILD_CC = cc -fPIE -pie