• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

安装PHP-4.3.3的问题?

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 21次 | 进入软件测试论坛讨论

领测软件测试网
solaris8(sparc)下安装php-4.3.3,执行,显示好像少什么flex,那是什么东西?

# ./configure --with-mysql=/usr/local/mysql --enable-track-vars --with
-charset=gb2312 --with-xml --enable-url-includes --disable-debug --enable-ftp -
-with-apxs=/var/apache/htdocs/apxs
显示以下错误:
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for ranlib... :
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parser
s.
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... ./configure: lex: not found
configure: error: cannot find output from lex; giving up

【发表回复】【查看CU论坛原帖】【添加到收藏夹】【关闭】
 老同志lawson 回复于:2004-01-17 15:21:08
下面是我的一个文档,你可以参考一下:
环境:solaris2.8
1 安装mysql,使用tar不要用sun自己的,而是用gnu的tar解压缩。可以下已经编译好的包。
mysql-3.23.58-sun-solaris2.8-sparc.tar.gz
解压缩后,然后将其copy到/usr/local/mysql
添加用户,组mysql,然后赋予他们
/usr/local/mysql的属性,然后运行./configure
然后./mysqladmin -u root password "root"创建root的密码,然后mysql -u root -p
就可以进入mysql了。
2 安装apache,使用动态安装dso。
动态(DSO) 
APACHE编译: 
#cd apache_1.3.27 
#./configure --prefix=/usr/local/apache --enable-shared=max 
#make 
#make install 
3 安装Php
#cd ../php-4.2.3 
#./configure --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars --with-mysql 
#make 
#make install 
cd ../php-4.2.3 
  for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini 
  for PHP 4: cp php.ini-dist /usr/local/lib/php.ini 
vi /usr/local/lib/php.ini 
display_errors = On       ----->display_errors = Off 
register_globals = Off    ----->register_globals = On 

vi /home/apache/conf/httpd.conf  
     For PHP 3:   AddType application/x-httpd-php3 .php3 
     For PHP 4:   AddType application/x-httpd-php .php
编写脚本Info.php测试
< ? 
phpinfo(); 
?>  
放到apache文件目录下,运行apache,就可以看到信息,证明,php安装成功。

安装httpd-2.0.46.tar也是这样,
cd apache_1.3.27 
#./configure --prefix=/usr/local/apache2 --enable-shared=max 
#make 
#make install 


#cd ../php-4.2.3 
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars --with-mysql 
#make 
#make install 

可以正常使用!

 cwmould 回复于:2004-01-18 10:13:59
谢谢,我已经自己解决了,原来是差了一个flex的软件包,也不知道这个软件包是做什么的?

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网