Ask a Question related to PHP Development, Design and Development.
-
Tom Harrington #1
Re: PHP PEAR in OSX - newbie question
In article <tooooomuchcoffee-E44FAE.14313326062003@news.newsguy.com>,
ToooooMuchCoffeeMan <tooooomuchcoffee@yahoo.com> wrote:
Your problem is pretty clearly defined. You must have installed PHP,> Here's the situation:
>
> OS X 10.2.6 with Apache 1.3.27 and PHP 4.3.0 installed and running.
>
> I'm looking in the O'Reilly book PHP Cookbook whre it says (p. 553) that
> version 4.3 of PHP comes with PEAR bundled. On the next page the book
> says that I can execute the PEAR package manager by simply issuing the
> command 'pear'.
>
> So I fire up the terminal and type 'pear': command not found. After some
> futzing around I determine there is a file named pear in /usr/bin:
>
> -r-xr-xr-x 1 root wheel 10012 Jul 27 2002 pear
>
> So it should be executable, right? But it isn't. Upon examination, it
> appears to be a script designed to be fed into PHP; the first line of
> the file is
>
> #!/usr/bin/php -Cq
>
> which to my limited Unix knowledge seems to say that the contents of the
> file are to be processed by the command php in /usr/bin. Of course, I
> have no such command in /usr/bin or anywhere else that I can determine
> on my system.
>
> My goal is simple: I want to have PEAR running on my system. Any help
> will be greatly appreciated.
since 4.3 isn't included with Mac OS X. If you didn't install the
binary that pear wants, you need to go back to the PHP installer and
figure out how to get it. There might be a configure option or
something. Or it's possible that you actually have /usr/local/bin/php
or something.
--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.
See [url]http://www.atomicbird.com/[/url]
Tom Harrington Guest
-
PEAR newbie
I did what is instructed. PHP base directory: c:\php4 Then I ran "php.exe PEAR\go-pear.php" and follow the instruction(default ->... -
[PHP-DEV] [PEAR-DEV] karma question
On Thu, 10 Jul 2003, Allowee wrote: You submitted two account requests with the same email address. The insert on the second one will fail... -
[PHP-DEV] [PEAR-DEV] karma question
it doesn't work that fine for me.... The request doesn't appear on internals@lists.php.net and I can re-submit without 'userid already exists'... -
[PHP-DEV] [PEAR-DEV] karma question
It works fine. But since only a couple of people approve CVS accounts (which is very much on purpose) it takes a little while for them to go... -
[PHP-DEV] [PEAR-DEV] karma question
Yesteray I requested an CVS account on www.php.net/cvs-php.php but nothingh showed up at internals@lists.php.net I also could re-submit the form... -
Tom Harrington #2
Re: PHP PEAR in OSX - newbie question
In article <tooooomuchcoffee-E44FAE.14313326062003@news.newsguy.com>,
ToooooMuchCoffeeMan <tooooomuchcoffee@yahoo.com> wrote:
Your problem is pretty clearly defined. You must have installed PHP,> Here's the situation:
>
> OS X 10.2.6 with Apache 1.3.27 and PHP 4.3.0 installed and running.
>
> I'm looking in the O'Reilly book PHP Cookbook whre it says (p. 553) that
> version 4.3 of PHP comes with PEAR bundled. On the next page the book
> says that I can execute the PEAR package manager by simply issuing the
> command 'pear'.
>
> So I fire up the terminal and type 'pear': command not found. After some
> futzing around I determine there is a file named pear in /usr/bin:
>
> -r-xr-xr-x 1 root wheel 10012 Jul 27 2002 pear
>
> So it should be executable, right? But it isn't. Upon examination, it
> appears to be a script designed to be fed into PHP; the first line of
> the file is
>
> #!/usr/bin/php -Cq
>
> which to my limited Unix knowledge seems to say that the contents of the
> file are to be processed by the command php in /usr/bin. Of course, I
> have no such command in /usr/bin or anywhere else that I can determine
> on my system.
>
> My goal is simple: I want to have PEAR running on my system. Any help
> will be greatly appreciated.
since 4.3 isn't included with Mac OS X. If you didn't install the
binary that pear wants, you need to go back to the PHP installer and
figure out how to get it. There might be a configure option or
something. Or it's possible that you actually have /usr/local/bin/php
or something.
--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.
See [url]http://www.atomicbird.com/[/url]
Tom Harrington Guest



Reply With Quote

