Re: Installing with CLI
| From: | Keith Roberts | Date: | Mon, 03 Dec 2007 08:28:19 +0000 |
| Subject: | Re: Installing with CLI | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18412@lists.php.net to get a copy of this message | ||
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