oneinstack icon indicating copy to clipboard operation
oneinstack copied to clipboard

安装php后,再单独安装xdebug报错

Open xiebruce opened this issue 5 years ago • 4 comments

[xdebug-2.9.2.tgz] found
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/xiebruce/oneinstack/src/xdebug-2.9.2':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
PHP xdebug module install failed, Please contact the author!
LSB Version:	:core-4.1-amd64:core-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.6.1810 (Core)
Release:	7.6.1810
Codename:	Core
[xprober.php] found
####################Congratulations########################
Total OneinStack Install Time: 0 minutes

我应该更新cpp吗?可是我试了yum install cpp,提示:

软件包 cpp-4.8.5-39.el7.x86_64 已安装并且是最新版本

并且/lib/cpp是存在的

跟linux内核是否有关?我的内核:

Linux 4.14.129-bbrplus #1 SMP Tue Jun 25 12:23:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

好吧,yum update && yum upgrade后,安装php7.4,前面的报错没了,现在报:

No package 'oniguruma' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

这里的方法解决了,不过这个应该要集成进oneinstack里好点。

xiebruce avatar Apr 22 '20 06:04 xiebruce

默认 有oniguruma-devel依赖 , yum -y install oniguruma-devel

oneinstack avatar Apr 25 '20 04:04 oneinstack

默认 有oniguruma-devel依赖 , yum -y install oniguruma-devel

对,我是这样解决的,只不过我觉得,有依赖应该要放到脚本里自动安装一下,因为这个脚本本来就是为了方便自动化的呀🤣

xiebruce avatar Apr 25 '20 10:04 xiebruce

这个有加的

oneinstack avatar Apr 26 '20 02:04 oneinstack

哦哦,那不知道为什么我这边安装的时候没有,没事,我就提醒一下,有加就行。

xiebruce avatar Apr 26 '20 11:04 xiebruce