For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > December 2007 > Re: [PHP-INSTALL] Installing with CLI









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] Installing with CLI
Keith Roberts

2007-12-03, 4:07 am

On Sun, 2 Dec 2007, Andrew Peterson wrote:

> To: php-install@lists.php.net
> From: Andrew Peterson <gretschdrummer@gmail.com>
> Subject: [PHP-INSTALL] Installing with CLI
>
> I'm hoping someone can help me out. I'm trying to instal PHP 5.2.5 on OS
> X Leopard with apache 2x and MySQL 5x
>
> Here's the config command I use:
>
> ./configure
> --prefix=/usr/local/php5.2.5
> --with-apxs2=/usr/local/apache2/bin/apxs
> --with-openssl
> --with-curl
> --with-curlwrappers
> --enable-exif
> --with-gd=/usr/local
> --enable-mbstring
> --with-mysql=/usr/local/mysql
> --with-mysql-sock=/tmp
> --with-pspell=/usr/local
> --enable-soap
> --with-snmp
> --with-jpeg-dir=/usr/local
> --with-png-dir=/usr/local
> --with-freetype-dir=/usr/local
> --with-pear
> --enable-cli
>
> Everything seems to configure, make, and make install fine. However,
> when I got to /usr/local/php5.2.5/bin, the php command is not there.
>
> Any ideas?


Do you have any error messages at all?

If you want to use php as a CLI script interpreter you will
also need to add the '--with-readline' option to configure.
Otherwise php will execute scripts OK, but you will not be
able to use php as an interactive interpreter for debugging
single lines of php code, like a BASIC interpreter for
example.

Regards

Keith Roberts
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com