PHP PEAR in OSX - newbie question

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Re: PHP PEAR in OSX - newbie question

    In article <tooooomuchcoffee-E44FAE.14313326062003@news.newsguy.com>,
    ToooooMuchCoffeeMan <tooooomuchcoffee@yahoo.com> wrote:
    > 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.
    Your problem is pretty clearly defined. You must have installed PHP,
    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

  2. Similar Questions and Discussions

    1. 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 ->...
    2. [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...
    3. [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'...
    4. [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...
    5. [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...
  3. #2

    Default Re: PHP PEAR in OSX - newbie question

    In article <tooooomuchcoffee-E44FAE.14313326062003@news.newsguy.com>,
    ToooooMuchCoffeeMan <tooooomuchcoffee@yahoo.com> wrote:
    > 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.
    Your problem is pretty clearly defined. You must have installed PHP,
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139