免费注册 查看新帖 |

Chinaunix

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

请高手们帮忙看看我的php编译问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-31 01:05 |只看该作者 |倒序浏览
环境:freebsd-4.7-release apache-2.0.44
悲剧如下:
#cd php-4.3.1
#./configure --with-mysql --with-oci8=/opt/oracle/product/9.2.0 --with-apxs2=/usr/local/apache2/bin/apxs
显示结果:
...
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| In order to build PHP as a Apache2 module on FreeBSD, you have to  |
| add  --with-tsrm-pth to your ./configure line. Therefore you need  |
| to install gnu-pth from /usr/ports/devel/pth.                      |
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You chose to compile PHP with the built-in MySQL support.  If you  |
| are compiling a server module, and intend to use other server      |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,         |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and   |
| instead build it with your local MySQL support files, by adding    |
| --with-mysql=/path/to/mysql to your configure line.                |
+--------------------------------------------------------------------+
| Notice:                                                            |
| If you encounter <defunc>; processes when using a local Oracle-DB   |
| please recompile PHP and specify --enable-sigchild when configuring|
| (This problem has been reported under Linux using Oracle >;= 8.1.5) |
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+
|                          *** NOTE ***                              |
|            The default for register_globals is now OFF!            |
|                                                                    |
| If your application relies on register_globals being ON, you       |
| should explicitly set it to on in your php.ini file.               |
| Note that you are strongly encouraged to read                      |
| http://www.php.net/manual/en/security.registerglobals.php          |
| about the implications of having register_globals set to on, and   |
| avoid using it if possible.                                        |
+--------------------------------------------------------------------+


Thank you for using PHP.


#make
/usr/libexec/elf/ld: cannot find -ldl
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/pjz/php-4.3.1.

论坛徽章:
0
2 [报告]
发表于 2003-04-03 00:15 |只看该作者

请高手们帮忙看看我的php编译问题

安装之前先安装pth(在FreeBSD的FTP上就有最新的pth port)
FreeBSD必须安装elf兼容

  1. #./configure --with-mysql --with-oci8=/opt/oracle/product/9.2.0 --with-apxs2=/usr/local/apache2/bin/apxs --with-tsrm-pth --with-mysql=MySQL安装路径
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP