Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 24th, 2004, 10:54 AM
Registered User
 
Join Date: Mar 2004
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
 
Old March 25th, 2004, 07:58 AM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old March 25th, 2004, 10:43 AM
Registered User
 
Join Date: Mar 2004
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.