免费注册 查看新帖 |

Chinaunix

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

[Web] php 和 apache在solaris上 的安裝問題 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-30 13:20 |只看该作者 |倒序浏览
我想在我的sparc solaris9 安裝 mysql+apache+php
我的安裝过程是这样的:
I compile the PHP-4-3-0 procedure as follow:
1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/usr/local/apache --enable-module=so
7. make
8. make install
9. cd ../php-xxx
10. ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
11. make
12. make install
我已經順利的安裝了 mysql + httpd-2.0
但是在
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
遇上了問題, 下面是 configure 問題---------------------------
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 apxs follows
Usage: apxs -g [-S <var>;=<val>;] -n <modname>;
apxs -q [-S <var>;=<val>;] <query>; ...
apxs -c [-S <var>;=<val>;] [-o <dsofile>;] [-D <name>;[=<value>;]]
[-I <incdir>;] [-L <libdir>;] [-l <libname>;] [-Wc,<flags>;]
[-Wl,<flags>;] <files>; ...
apxs -i [-S <var>;=<val>;] [-a] [-A] [-n <modname>;] <dsofile>; ...
apxs -e [-S <var>;=<val>;] [-a] [-A] [-n <modname>;] <dsofile>; ...
configure: error: Aborting
------------------------------------------

在 /usr/local/apache/bin directory 裏面是 apxs 的. 不知怎, 還是有問題.
各位老大, 幫幫我吧!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2003-01-30 17:32 |只看该作者

php 和 apache在solaris上 的安裝問題

parameter wrong.....
./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs
因為你安裝的是apache 2..所以上面要改..
--with-apxs2=

可以用configure --help
查看online help..

如果你要用 GD 畫圖...還要加上
--with-gd=/xxx/xxx/xx
==============
如果前面可通過..則不需要下面的parameter...
但至少要安裝libpng..freetype 這兩個library..

--with-png
--with-freetype
--with-jpeg-->;optional
--with-xpm -->;optional
----------------------------
如果出現找不到某個library..就要手動給他路徑..
這兩天我才把Php+Apache+mod_perl+Mysql
安裝設定好...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP