Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 24th, 2004, 10:54 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default php installation problem

Hi,

I've installed an apache2.0 server on my linux system (it works fine) and tried to install php 4.3.4 enabling apache and mysql, when running configure however I got the following error:
  ./configure: line 2425: lex: command not found
  configure: error: cannot find output from lex; giving up
since I'm sort of new to linux I don't know what to do about it...
I was using these installation instructions: http://www.php.net/manual/en/install.apache2.php

Does anyone have any idea what it means and/or how to fix it?
Any help will be greatly appreciated.

Kerux
Reply With Quote
  #2 (permalink)  
Old March 25th, 2004, 07:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It looks like whoever built your version of PHP assumed people would have flex installed. Flex is a free reimplementation of a program callled "Lex" : a tool for generating programs that perform pattern-matching on text. If you install Flex, the compilation of PHP should proceed peacefully.

Zend recommend installing Flex and Bison before installing PHP:
http://www.zend.com/manual/install.unix.php

You don't say which version (if any) of GNU/Linux distribution you are using, but here are debian's notes on flex:
http://packages.debian.org/unstable/devel/flex

I hope that helps
Dan
Reply With Quote
  #3 (permalink)  
Old March 25th, 2004, 10:43 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!
I missed the flex and bison requirements for php, but after installing them php configuration and installation indeed proceeded as expected.

Kerux
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Php-Sql installation problem Dr Robert James Beginning PHP 3 October 16th, 2015 05:01 PM
PHP Installation question EnderX PHP How-To 0 November 9th, 2006 09:47 AM
Problem with PHP installation mek Beginning PHP 0 June 28th, 2005 10:36 AM
php installation problem iswita PHP How-To 1 June 16th, 2003 11:48 AM
Ch. 1: PHP Installation Troubles: php3 vs php manjito BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 June 12th, 2003 03:59 PM



All times are GMT -4. The time now is 10:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.