Pear install for macports PHP5

前端 未结 4 1608
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:31

    I wonder why nobody wrote an updated solution, so I do it:

    sudo port install pear-PEAR
    sudo port install php53-pear
    

    Replace 53 with whatever version of PHP you want to use. Then install the pear-package you need with MacPorts! You can get a full list of available packages with

    port echo name:^pear-
    

    As mentioned in a comment of the other answer, go here for more info: https://superuser.com/q/650299/39309

提交回复
热议问题