| 投稿者 | 
			投稿 | 
		
		
			| 
				
			 | 
			
				
				#1 2007 年 9 月 29 日(土) 4:28  
			 | 
		
		
			| 
				会員
				
				 登録者: 9 2007 
				返信数: 2 
				
			 | 
			
				 はじめまして。
  FreeBSD6.1にて、php4.4.7をインストールしようとしたところ、立ち行かなくなりました。 apacheは、2.0.61でインストール、起動確認済みです。 bison 2.3、m4 1.4.9、gmake 3.81です。
  ./configure --with-apxs2=/usr/local/apache2/bin/apxs は終了するのですが、makeでerrorがでます。以下に示します。
   admin@TEST-SV01 /usr/home/admin/php-4.4.7#make gcc  -Iext/standard/ -I/usr/home/admin/php-4.4.7/ext/standard/ -DPHP_ATOM_INC -I/usr/home/admin/php-4.4.7/include -I/usr/home/admin/php-4.4.7/main -I/usr/home/admin/php-4.4.7 -I/usr/home/admin/php-4.4.7/ext/xml/expat -I/usr/home/admin/php-4.4.7/TSRM -I/usr/home/admin/php-4.4.7/Zend -g -O2 -c /usr/home/admin/php-4.4.7/ext/standard/info.c -o ext/standard/info.o  && echo > ext/standard/info.lo byacc -p zend -v -d /usr/home/admin/php-4.4.7/Zend/zend_language_parser.y -o Zend/zend_language_parser.c usage: yacc [-dlrtv] [-b file_prefix] [-o output_filename]             [-p symbol_prefix] filename make: *** [Zend/zend_language_parser.c] Error 1
  確かにconfigureの際、以下のwarningが出ていました。以下抜粋です。 checking for bison... byacc configure: warning: You will need bison if you want to regenerate the PHP parsers. Configuring Zend configure: warning: You will need bison if you want to regenerate the Zend parser.
  bisonは以下の様に起動確認済です。 admin@TEST-SV01 /usr/home/admin/php-4.4.7#bison --version bison (GNU Bison) 2.3 Written by Robert Corbett and Richard Stallman.
  Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. admin@TEST-SV01 /usr/home/admin/php-4.4.7#
  色々検索等してみたのですが、似たような事例が見当たりませんでした。
  解決に至るヒントでも構いませんので、どなたかご教授いただけないでしょうか。 
			 | 
		
		
			| 
				
			 | 
			
				
				#2 2007 年 10 月 1 日(月) 14:04  
			 | 
		
		
			| 
				会員
				
				 登録者: 9 2007 
				返信数: 9 
				
			 | 
			
				>You will need bison if you want to regenerate the Zend parser. http://www.php.net/manual/ja/install.unix.php実は2.xじゃなくて1.xでないと反応しないというオチかも?  
			 | 
		
		
			| 
				
			 | 
			
				
				#3 2007 年 10 月 2 日(火) 5:19  
			 | 
		
		
			| 
				会員
				
				 登録者: 9 2007 
				返信数: 2 
				
			 | 
			
				 SAYKA様。 御返答ありがとうございます。 確かに1.28推奨とありました。ついでにflexも2.5.4に合わせました。
  結論から申し上げますと、インストール出来るに至りました。 しかしながら、私のくだらないミスで、核心的なポイントを皆様にお知らせ出来なくなってしまいました。 恥を忍んで、以下にhistoryを晒します。    12:12   tar -zxvf bison-1.28.tar.gz    12:12   cd bison-1.28    12:12   cat INSTALL    12:12   ./configure    12:13   make    12:13   make check    12:13   make install    12:13   bison --version    12:13   cd ..    12:13   cd php-4.4.7/    12:14   ./configure --with-apxs2=/usr/local/apache2/bin/apxs    12:22   make    12:23   bison --version    12:23   make clean    12:23   make    12:25   flex --version    12:36   ./configure --with-apxs2=/usr/local/apache2/bin/apxs
  実はこの段階でも、./configureは checking for bison... (cached) byacc configure: warning: You will need bison if you want to regenerate the PHP parsers. Configuring Zend configure: warning: You will need bison if you want to regenerate the Zend parser.
  以上の内容でした。これを受けて、迷走します。
      12:37   ./configure --help     12:45   ./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-inline-optimization     12:45   make     12:45   ./configure --help     12:48   rm ./config.cache     12:56   cat config.status | less     12:58   cd ..     12:59   tar zxvf zlib-1.2.3.tar.tar     12:59   cd zlib-1.2.3     12:59   cat README     13:01   ./configure     13:01   make    13:01   make check    13:02   make install    13:02   cd ..    13:02   cd php-4.4.7/
  血迷って、--disable-inline-optimizationを付けたり、zlib-1.2.3をインストールしたりしてしまいました。 ところが、この後のconfigureにて    13:11   ./configure --with-apxs2=/usr/local/apache2/bin/apxs
  checking for bison... bison -y checking bison version... 1.28 (ok) Configuring Zend checking bison version... 1.28 (ok)
  warningが消えていました。そこで、本当にbison-2.3が核心的な原因なのか、再度ver.2.3をインストールして、確認することにしました。
      13:12   cd ..     13:13   cd bison-2.3    13:13   ./configure     13:13   make     13:13   make check     13:15   make install     13:15   cd ..     13:15   cd php-4.4.7/     13:15   bison --version
  admin@TEST-SV01 /usr/home/admin/php-4.4.7#bison --version bison (GNU Bison) 2.3 Written by Robert Corbett and Richard Stallman.
  ver.2.3に戻ってます。
      13:16   rm config.cache     13:16   ./configure --with-apxs2=/usr/local/apache2/bin/apxs
  configureの結果は
  checking for bison... bison -y checking bison version... configure: warning: You will need bison 1.28 2.3 (ok) Configuring Zend checking bison version... 2.3 (ok)
  何故か通ってます。
      13:19   make     13:21   make test     13:22   php     13:22   make install     13:23   php --version     13:23   php     13:25   cp php.ini-dist /usr/local/lib/php.ini     13:25   php     13:26   man php     13:26   locate php     13:27   whereis php     13:27   /usr/local/bin/php     13:27   /usr/local/bin/php --version
  そして、結果ですが
  admin@TEST-SV01 /usr/home/admin/php-4.4.7#/usr/local/bin/php --version PHP 4.4.7 (cli) (built: Oct  2 2007 13:20:28) Copyright (c) 1997-2007 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies admin@TEST-SV01 /usr/home/admin/php-4.4.7#
  何故か、bison-2.3でインストール出来てしまいました。
  恐らく、"rm config.cache"が、影響していると考えておりますが、100%bisonのver.違いによるものと、断定出来ませんでした。
  動いちゃって、どうもすいません:P 
			 |