SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PEAR installation

    Hey guys,
    i know this probably comes up a lot, but i havent found a simple answer to my PEAR installation problem.


    i'm working on an intel macbook and just installed the php5 package (entropy-php-5.2.2-1) which is working fine. its installed in usr/local/php5.

    now i'm trying to install PEAR, which I didnt even know existed till a few hours ago, but i need to use it for my new job....


    i tried running the installation using curl http://go-pear.org | php in unix, which works fine unless i change any of the folders. the default folders are the following:

    1. Installation prefix ($prefix) : /Users/fabian9
    2. Temporary files directory : $prefix/temp
    3. Binaries directory : $prefix/bin
    4. PHP code directory ($php_dir) : $prefix/PEAR
    5. Documentation base directory : $php_dir/docs
    6. Data base directory : $php_dir/data
    7. Tests base directory : $php_dir/tests

    however, on this website: http://www.macdevcenter.com/pub/a/ma...ar_macosx.html i read that i need to change those folders so that pear and php will be in the same location. but when i try to change numbers 1 and 4 accordingly, i get an installation error.

    isnt there an easier way to install pear?! anybody fancy giving me a simple step by step guide on how to do it? it'd be much appreciated!! i need this urgently...

    thanks a lot!

    fabian

  2. #2
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    run the curl http://go-pear.org | php command from the php directory as root. then those variables will automatically be correct.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks! but i cant copy anything into the root php folder, it's protected somehow. so i was thinking of uninstalling php and then installing it again in another folder? does that sound feasable?

  4. #4
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you need to su to root or whoever owns the folder. that is why you are getting the error.


Bookmarks

Posting Permissions

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