Pear install for macports PHP5

前端 未结 4 1615
Happy的楠姐
Happy的楠姐 2021-02-12 18:17

I have PHP5 installed via macports in /opt/local/..the default location for macports. There\'s no portfile for pear. If I do a standard pear install from the pear site what dire

4条回答
  •  面向向阳花
    2021-02-12 18:36

    I had a similar issue just now, and went for installing PEAR in exactly the directory you mentioned.

    curl -O http://pear.php.net/go-pear.phar
    sudo php go-pear.phar
    

    I changed the installation base directory ($prefix) to point to /opt/local and ran the installer. It amended my php.ini file to include the PEAR path.

    My bash path already contained /opt/local/bin, so PEAR just worked!

提交回复
热议问题