Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx_http_php_module.c:411 #4

Closed
devilmengcry opened this issue Aug 16, 2016 · 4 comments
Closed

ngx_http_php_module.c:411 #4

devilmengcry opened this issue Aug 16, 2016 · 4 comments

Comments

@devilmengcry
Copy link

ngx_http_php_module.c:411: error: expected ‘{’ at end of input
make[1]: *** [objs/addon/src/ngx_http_php_module.o] Error 1
make[1]: Leaving directory `/home/downloads/nginx-1.9.15'
make: *** [build] Error 2

@rryqszq4
Copy link
Owner

@devilmengcry hi,
我这边又跑了一遍测试用例,"PHP_SRC_VERSION=5.3.29 NGINX_SRC_VERSION=1.9.15"这个环境下是编译是没有发现问题。测试地址:https://travis-ci.org/rryqszq4/ngx_php/jobs/152673525

我这边需要你帮我提供一下你的环境如:系统名称, php, nginx的版本等,以及安装的详细步骤,以便能更好的发现问题。

@devilmengcry
Copy link
Author

php5.6.21 nginx1.9.15 centos6.8 64位

export PHP_BIN=/usr/local/php5.6.21/bin
export PHP_INC=/usr/local/php5.6.21/include/php
export PHP_LIB=/usr/local/php5.6.21/lib
./configure --with-ld-opt="-Wl,-rpath,$PHP_LIB" --add-module=./modules/ngx_php/dev/ngx_devel_kit --add-module=./modules/ngx_php

下面是报错
./modules/ngx_php/src/ngx_http_php_core.h:11:23: error: php_embed.h: No such file or directory
make[1]: *** [objs/addon/src/ngx_http_php_module.o] Error 1
make[1]: Leaving directory `/home/downloads/nginx-1.9.15'
make: *** [build] Error 2

@rryqszq4
Copy link
Owner

@devilmengcry
这个问题产生的原因是php需要编译安装,并且编译的时候需要加两个参数--enable-embed=shared和--enable-maintainer-zts 。

@devilmengcry
Copy link
Author

可以了,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants