免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6770 | 回复: 5
打印 上一主题 下一主题

[WebServer] 移植php到arm linux的问题,请教各位大虾 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-09 08:41 |只看该作者 |倒序浏览
arm-linux-gcc 4.3.2
php-5.2.9
apache-1.3.41
apache的配置信息如下:
CC=arm-linux-gcc ./configure –prefix=/usr/local/apache/ --without-execstrip –-enable-module=so
交叉编译很顺利,但是配置Php时就是不能通过,如下:

  CC=arm-linux-gcc ./configure --with-apxs=/usr/local/apache-arm2/bin/apxs --prefix=/usr/local/php-arm2 --with-libxml-dir=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/ --with-pdo-sqlite=/home/liubonan/arm/sqlite-3.3.8/ --with-iconv-dir=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/ --with-zlib-dir=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/ --host=arm-linux  
   
configure都没过。。。就报这个错误说是httpd不能执行,一直卡在这里,即使把configure的错误都注释掉,make install时还是有这个问题,httpd不能执行,无法install,大侠帮看看呗?~  

Configuring SAPI modules  
checking for AOLserver support... no  
checking for Apache 1.x module support via DSO through APXS...   
   
Sorry, I was not able to successfully run APXS. Possible reasons:  
   
1. Perl is not installed;  
2. Apache was not compiled with DSO support (--enable-module=so);  
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs  
The output of /usr/local/apache-arm2/bin/apxs follows  
/usr/local/apache-arm2/bin/httpd: /usr/local/apache-arm2/bin/httpd: cannot execute binary file  
apxs:Error: Sorry, no DSO support for Apache available  
apxs:Error: under your platform. Make sure the Apache  
apxs:Error: module mod_so is compiled into your server  
apxs:Error: binary `/usr/local/apache-arm2/bin/httpd'.  
configure: error: Aborting

论坛徽章:
0
2 [报告]
发表于 2011-09-09 11:45 |只看该作者
--with-apxs=/usr/local/apache-arm2/bin/apxs 可以试试不加这个啊,我以前移植的时候没加这个选项

论坛徽章:
0
3 [报告]
发表于 2011-09-09 15:51 |只看该作者
回复 2# 无痕linux


    你好!我是过不加,就是以cgi模式编译吧,最后生成的php-cgi在板子上可以直接解析.php的文件,在apache的httd.conf里设置好后,用网页访问就解析不了.php了。。访问的形式大概是这样的:192.168.1.1/bin/php-cgi/test.php
不知道您时怎么用的?

论坛徽章:
0
4 [报告]
发表于 2011-09-13 09:57 |只看该作者
http://www.justwinit.cn/post/2020/,你可以参考下这个博客的内容移植下,应该是没什么问题的

论坛徽章:
0
5 [报告]
发表于 2011-09-13 21:24 |只看该作者
回复 4# 无痕linux


    非常感谢!已经移植成功了,正是按您给的链接完成的!非常感谢

论坛徽章:
0
6 [报告]
发表于 2011-09-14 09:21 |只看该作者
回复 5# liubonan


    呵呵,ok了就行
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP