Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 16, 2005 11:33 am 
Offline
Senior Newbie

Joined: Wed Oct 06, 2004 9:16 pm
Posts: 9
WLM: mikki_11@hotmail.com
Yahoo Messenger: mangups
Location: US
i have a redhat small setup as per the guide posted in the 'linux, tips, guide section' of this forum.

I wanted to install php 4.3.10 and i am following guide here
http://www.mkaz.com/reference/php/setup_linux.html and when i do the step

Quote:
.Install PHP as a Module
In PHP src directory (php_4.2.3)
# ./configure --with-mysql \
--with-apxs=/usr/local/apache/bin/apxs
i get these errors as below :

Quote:
[root@li10-60 php-4.3.10]# ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
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... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up

[root@li10-60 php-4.3.10]#



so what do i do now .....should i goto to the./configure and change something ...?? :?:


Last edited by StarGazer on Wed Mar 16, 2005 11:34 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Mar 16, 2005 11:34 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
install "flex".

On RH9 small: apt-get install flex

-Chris


Top
   
 Post subject:
PostPosted: Wed Mar 16, 2005 11:45 am 
Offline
Senior Newbie

Joined: Wed Oct 06, 2004 9:16 pm
Posts: 9
WLM: mikki_11@hotmail.com
Yahoo Messenger: mangups
Location: US
will do and keep it posted ...
thanks


Top
   
 Post subject:
PostPosted: Wed Mar 16, 2005 12:10 pm 
Offline
Senior Newbie

Joined: Wed Oct 06, 2004 9:16 pm
Posts: 9
WLM: mikki_11@hotmail.com
Yahoo Messenger: mangups
Location: US
i did install flex ....

however hit another wall ....

Quote:
[root@li10-60 php-4.3.10]# ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
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... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

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 /usr/local/apache/bin/apxs follows
./configure: line 3169: /usr/local/apache/bin/apxs: No such file or directory
configure: error: Aborting
[root@li10-60 php-4.3.10]#



I have apache( i have it running and see it on webmin) and i have perl ( since i followed the 'redhat small setup guide") ...

so now to enable apache with DSO support .. how do i do it ??


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group