容器技术交流

 找回密码
 立即注册
查看: 4909|回复: 2

Famp不能加装php_screw!

[复制链接]
发表于 2009-9-11 09:17:43 | 显示全部楼层 |阅读模式
本帖最后由 magic535 于 2009-9-11 10:07 编辑

测试平台:C566,256M,40G
( 这个环境机装Famp要6-7小时)


网上留传的教程很多都是缺字或错误的!
我再补了一下!
但到make时就不成功!

  1. [root@localhost php_screw-1.5]# make
  2. /bin/sh /root/php_screw-1.5/libtool --mode=compile gcc -I. -I/root/php_screw-1.5 -DPHP_ATOM_INC -I/root/php_screw-1.5/include -I/root/php_screw-1.5/main -I/root/php_screw-1.5 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/php/include/php -DHAVE_CONFIG_H -g -O2 -c /root/php_screw-1.5/php_screw.c -o php_screw.lo
  3. mkdir .libs
  4. gcc -I. -I/root/php_screw-1.5 -DPHP_ATOM_INC -I/root/php_screw-1.5/include -I/root/php_screw-1.5/main -I/root/php_screw-1.5 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/php/include/php -DHAVE_CONFIG_H -g -O2 -c /root/php_screw-1.5/php_screw.c -fPIC -DPIC -o .libs/php_screw.o
  5. /root/php_screw-1.5/php_screw.c: In function 'pm9screw_compile_file':
  6. /root/php_screw-1.5/php_screw.c:78: error: too few arguments to function 'org_compile_file'
  7. /root/php_screw-1.5/php_screw.c:84: error: too few arguments to function 'org_compile_file'
  8. /root/php_screw-1.5/php_screw.c:93: error: too few arguments to function 'org_compile_file'
  9. make: *** [php_screw.lo] 错误 1
复制代码


有洞友安装过php_screw吗?
发表于 2010-6-2 18:33:25 | 显示全部楼层
我靠,世界太小了。竟然找到了这里,我也用的FAMP5.1安装php_screw时出现这错误

需要修改php_screw.c

把第78,84,93行的org_compile_file(file_handle, type);
修改为:
org_compile_file(file_handle, type TSRMLS_CC);

然后再make就成功了。
发表于 2010-6-2 18:34:23 | 显示全部楼层
解决方法来源于官方BUG列表:http://sourceforge.net/tracker/i ... 025&atid=465440
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 09:54 , Processed in 0.029471 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表