添加留言
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]
               

 
菠菜
2008-3-25 09:51
我真的帮你赚钱了
jorsen_gong Email
2008-3-19 17:19
按照您在Nginx 0.5.33 + PHP 5.2.5(FastCGI)搭建胜过Apache 10倍的Web服务器(第2版)[原创]中所说的步骤安装Nginx+PHP,PHP已经安装好了,但是编译Nginx的时候出错了,编译过程如下,非常紧急,希望张老师能指点一下,在线等啊。。。先谢了!!!  MSN:jorsen_gong@hotmail.com

我需要进行交叉编译,并希望把PCRE编译进去:

安装路径:/usr/local
工程路径:/home/gsw/nginx-php
交叉编译器:/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc


cd /home/gsw/nginx-php/nginx-0.5.33

方法一:
执行./configure --user=www --group=www  --prefix=/usr/local/webserver/nginx --with-pcre=/home/gsw/nginx-php/pcre-7.2 --with-http_stub_status_module --with-zlib=/usr/local后结果为

.............
Configuration summary
 + threads are not used
 + using PCRE library: /home/gsw/nginx-php/pcre-7.2
 + OpenSSL library is not used
 + md5 library is not used
 + sha1 library is not used
 + using zlib library: /usr/local

 nginx path prefix: "/usr/local/webserver/nginx"
 nginx binary file: "/usr/local/webserver/nginx/sbin/nginx"
 nginx configuration file: "/usr/local/webserver/nginx/conf/nginx.conf"
 nginx pid file: "/usr/local/webserver/nginx/logs/nginx.pid"
 nginx error log file: "/usr/local/webserver/nginx/logs/error.log"
 nginx http access log file: "/usr/local/webserver/nginx/logs/access.log"
 nginx http client request body temporary files: "/usr/local/webserver/nginx/client_body_temp"
 nginx http proxy temporary files: "/usr/local/webserver/nginx/proxy_temp"
 nginx http fastcgi temporary files: "/usr/local/webserver/nginx/fastcgi_temp"

然后再执行make CC=/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc

结果出现以下错误:

make -f objs/Makefile
make[1]: Entering directory `/home/gsw/nginx-php/nginx-0.5.33'
cd /home/gsw/nginx-php/pcre-7.2 \
       && if [ -f Makefile ]; then make distclean; fi \
       && CC="/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
       ./configure --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... /opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [/home/gsw/nginx-php/pcre-7.2/Makefile] Error 1
make[1]: Leaving directory `/home/gsw/nginx-php/nginx-0.5.33'
make: *** [build] Error 2


方法二:(不加PCRE)
执行./configure --user=www --group=www  --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-zlib=/usr/local
后结果为

Configuration summary
 + threads are not used
 + PCRE library is not found
 + OpenSSL library is not used
 + md5 library is not used
 + sha1 library is not used
 + using zlib library: /usr/local

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

然后再执行make CC=/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc

结果出现以下错误:
/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local -I objs -I src/http -I src/http/modules \
               -o objs/src/http/modules/ngx_http_rewrite_module.o \
               src/http/modules/ngx_http_rewrite_module.c
src/http/modules/ngx_http_rewrite_module.c: In function 'ngx_http_rewrite':
src/http/modules/ngx_http_rewrite_module.c:313: error: 'ngx_http_script_regex_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:313: error: (Each undeclared identifier is reported only once
src/http/modules/ngx_http_rewrite_module.c:313: error: for each function it appears in.)
src/http/modules/ngx_http_rewrite_module.c:313: error: 'regex' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:314: error: 'ngx_http_script_regex_end_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:314: error: 'regex_end' undeclared (first use in this function)
cc1: warnings being treated as errors
src/http/modules/ngx_http_rewrite_module.c:332: warning: implicit declaration of function 'ngx_regex_compile'
src/http/modules/ngx_http_rewrite_module.c:339: error: 'ngx_http_script_regex_start_code' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:410: warning: implicit declaration of function 'ngx_regex_capture_count'
src/http/modules/ngx_http_rewrite_module.c:414: error: 'ngx_regex_capture_count_n' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:414: error: expected ')' before string constant
src/http/modules/ngx_http_rewrite_module.c:446: error: 'ngx_http_script_regex_end_code' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c: In function 'ngx_http_rewrite_if_condition':
src/http/modules/ngx_http_rewrite_module.c:656: error: 'ngx_http_script_regex_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:656: error: 'regex' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:765: error: 'NGX_REGEX_CASELESS' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:773: error: 'ngx_http_script_regex_start_code' undeclared (first use in this function)
make[1]: *** [objs/src/http/modules/ngx_http_rewrite_module.o] Error 1
make[1]: Leaving directory `/home/gsw/nginx-php/nginx-0.5.33'
make: *** [build] Error 2
jacksuc Email
2008-3-19 01:06
启动正常了,可是还是不知道怎么回事,打不开php的东西。不知道是不是还是没有设置好呢。请赐教。 我的msn:zwatcq0311@hotmail.com
jacksuc Email Homepage
2008-3-11 17:59
你好,我的APMServ5.2安装后,Apache启动老是失败,不知道怎么回事,这个版本已经是近1年多前的事了,不知道什么时候出下一个新的版本呢?谢谢回答。!!!!!
kevin
2008-3-10 18:51
HttpWatch Professional 5.2.17 Licens..
我在VISTA平台下安装不了,不知道是LICENSE的问题还是程序本身的问题。。

我们可以说是老乡了。。也是负责系统方面的工作,有时间交流。可以的话,加我一下MSN:jaryer@hotmail.com
5383538
2008-3-5 09:01
您好,第一次来您的blog,好热闹啊!以后会常来讨教grin
Meteor
2008-2-28 13:38
張宴妳好,我叫張宏義,是廣西南寧某學校的學生,
請教一個問題,妳是用什麽軟件改DR.COM的?我覺得每次聯網它都彈個網頁,很煩,很流氓.我想改了它,
妳只要告訴我用什麽軟件來改就可以了.謝謝.
85952701@qq.com
甘肃
2008-2-27 23:06
您好  久仰大名:   请教您一个问题  我以前用的电信宽带家里两台电脑同时可以上网,最近改用广电宽带不能同时上网了 只能一台上了     我安装你的说明设置了drcom登录认证客户端  没有成功,你的3.46破解版估计我用不成,提示登录超时无法链接,再次恳请您帮助知道.我用的登录认证客户端下载地址http://www.lzcatv.com/download.asp
使用
2008-2-27 10:43
APMserv 启动了“支持asp",但结果还是无法支持,

原因在哪里?
蓝风 Email Homepage
2008-2-26 23:13
现在在本地调试的话都用APMServ,真的太方便了,不过有一个问题,就是每次把AllowOverride None改为AllowOverride All,只要新增主机或修改主机,一保存,又变回AllowOverride None了!unhappy
分页: 2206/2221 第一页 上页 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 下页 最后页