免费注册 查看新帖 |

Chinaunix

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

配置suse环境记录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-02 09:47 |只看该作者 |倒序浏览
编译PHP按如下方法:
# ./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --with-pear=/usr/share/php --with-bz2 --with-mysql=/usr/local/mysql/ --with-curl=/usr/local/curl --enable-ftp --with-libxml-dir=/usr/local/libxml2 --with-expat-dir=/usr/lib --enable-soap --with-xsl=/usr/local/libxslt --enable-xslt --with-gd=/usr/local/gd2/ --enable-gd-native-ttf --enable-gd-jis-conv --with-jpeg-dir=/usr/local/jpeg6/ --with-zlib-dir=/usr/lib --with-png --with-freetype-dir=/usr/local/freetype --with-config-file-path=/etc --with-iconv --disable-ipv6 --enable-static --enable-maintainer-zts --enable-zend-multibyte --enable-inline-optimization --enable-zend-multibyte --enable-sockets --enable-soap
提示错误:
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
安装bzip2
cd /usr/local/src
tar -zxvf bzip2-1.0.3.tar.gz
cd bzip2-1.0.3
make -f Makefile-libbz2_so
make ;make install
重新回去编译Php
提示成功,但有点小问题:
Thank you for using PHP.
Notice: Following unknown configure options were used:
--with-expat-dir=/usr/lib
--enable-xslt
--with-png

整合Apache与PHP时出错:
/etc/rc.d/xinetd restart
Shutting down xinetd:                                                done
Starting INET services. (xinetd)                                     failed
linux-nh19:/etc #
测试:
rcxinetd status
Checking for service xinetd:                                         unused
linux-nh19:/etc #
为ftp错误,
check /var/log/xinetd.conf , and /var/log/messges 无相关日志
可能是因为服务器没有安装ftp所致,
先不管《估计要去yast去开启xinetd服务》
==================================================================================
linux的/etc/rc.d/init.d 相当于suse的/etc/rc.d (或/etc/init.d有点奇怪)为开机启动目录,mysqld放于其中
安装过程中只需改变目录即可
suse的开机启动文件不同于redhat的/etc/rc.d/init.d/rc.local\
是/etc/init.d/boot.local或/etc/rc.d/boot.local
装tomcat时。添加环境变量非redhat的/etc/profile,而是需要建立/etc/profile.local添加。

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/104642/showart_2108993.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP